Plugin: BuddyPress Private Community

Join this plugin group to follow comments, support topics and reviews.

Images and downloads protection (2 posts)

Started 1 year, 8 months ago by: Builder

  • Profile picture of Builder Builder said 1 year, 8 months ago:

    Hi NM,
    You’ve done some nice work with your plugin. From your descriptions, it can be easy seen that you have fun with it like with a hobby. Do you plan to hide also images in posts (in future they might be also be uploads functions in bbpress), and images in BP Album+ etc. areas and download? Just asking. Anyway, thank you.

  • @Builder, I’m not sure what you mean.

    Your images on private pages won’t be shown as the the private page will be blocked, so no image will be shown.

    What the plugin can’t do is stop access to images and files that are accessed directly:

    http://my-domain.com/wp-content/uploads/2010/06/image_1.jpg

    This is because no PHP code is run in this call to the server. To protect your uploaded files, you’d have to use some server code in your .htaccess file. I’m not sure what the best way of doing this is at the moment.

    It’s quite difficult to get right as ideally, logged in users should be able to access there images directly while logged out users can’t at all. This would require some tricky .htaccess code.

    If anyone knows the best way to do this, let me know and I’ll add the instructions to the main plugin description.

    Cheers