I'd like to set my WordPress (self-hosted) site up so that you can only view images if you're logged in. I want it to be impossible to view the images without being authorized as a user of the site. This plugin is exactly what I need, but it's been abandoned and no longer works.
What I want is:
- All logged in users can view all images
- All anonymous visitors can view no images
Something a bit more granular than the above would be nice (for example, authorizing a few specific images for public viewing,) but that's the baseline.
In essence, I want the Visibility editor, which is available for Posts and Pages:
..to be available for Files as well.
I want the user to be able to view a post without the images if he's not logged in.
Is there a plugin or modification that does this? Google returned nothing.
http://example.com/wp-content/uploads/2014/01/cars.jpg
, is to modify the webserver (apache, nginx, ... ) with authentication, for example, or stream the images through a PHP file, similar to what happened inside thems-files.php
in WordPress multisite (pre 3.5). Some other CMS store the images in the database.