Active installations40Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org
Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →
WP PlugIndex currently records Private Media version 1.2 as active, updated 7y ago and tested up to WordPress 4.9.
Overview
About this plugin
Ever wanted to make your media truely private? Make sure images, videos and other files are only accessible to chosen roles, or cannot be hotlinked, with permissions specifically set per item.
This plugin adds the following major features to WordPress:
Media Privacy: Lock access to items in the Media Library by preventing hotlinks only or by limiting access to files to selected user roles.
User-friendly forbidden handler: Images set to private do not break on the frontend. Instead, they are replaced by a simple access denied SVG picture – the forbidden handler can be replaced using the filter hooks pvtmed_forbidden_response_content ( apply_filters( 'pvtmed_forbidden_response_content', $forbidden_response_content, $file ); ) and pvtmed_forbidden_mimetype ( apply_filters( 'pvtmed_forbidden_mimetype', 'image/svg+xml' ); ).
Customizable for more granularity: Restricted media will be checked for autorization – plugin developers can hook into the pvtmed_is_authorized filter ( apply_filters( 'pvtmed_is_authorized', $authorized, $attachment_id ); ) to apply more complex conditions for authorization.
Optimized private media delivery: Files with access restriction are served using streams without loading the file entirely in memory before delivery, and WordPress files are loaded as lightly as possible for an optimised server memory usage.
Fallbacks: Restricted files are kept in an alternate wp-content/pvtmed-uploads folder (or equivalent if WP_CONTENT_DIR is not the default); fallbacks are in place to make sure:
moving a media to private does not break previously embedded media (javascript dynamic fallback with notice on post edit screen – Classic Editor only).
deactivating the plugin does not break previously embedded media (database update).
deleting the plugin does not break previously embedded media (database update).
php is installed automatically to make sure WordPress is loaded as lightly as possible when requesting restricted media items. Developers can safely edit it to enable their plugin to execute during such request if necessary.
The media privacy policy is set per media item – therefore, this plugin is not a replacement for general image hotlink prevention plugins, but is ideal for anyone looking for preventing direct links to files depending on specific conditions.
WordPress.org metadata
Plugin tags
Topics listed for this plugin in the WordPress.org directory.
media
private
uploads
Compatibility & maintenance
Compatibility & maintenance
Tested up to WordPress 4.9
Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.9.
Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.9
Minimum requirementsWordPress 4.9.8 · PHP 7.0
Update activity22 Jan 20197y ago
“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.
Changes recorded by WP PlugIndex
Recent tracked changes
No tracked version or compatibility changes have been recorded by WP PlugIndex yet.
Tracking & source
WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.