Restrict access to all your media files and implement your own custom file access rules.
As of April 2026, JVM Protected Media is a WordPress files plugin with 0 active installations and a 0/5 rating0. It has been downloaded 1.6K+ times in total. Requires WordPress 4.4.1+ and PHP false+. Available on WordPress.org since 2018. Last updated 3 years ago — may have compatibility concerns. Top alternative: File Manager Pro – Filester.
Protect access to all your media files and implement your own custom file access rules using a hook. Works for apache with mod rewrite or nginx with some custom configuration. No Multisite support. This plugin is more or less a development tool for defining your own custom file access rules.
For nginx you will need to modify the config file as nginx does not handle .htacess files. Add the following code:
location ~ "^/wp-content/uploads/(.*)$" {
rewrite ^/wp-content/uploads(/.*\.\w+)$ /index.php?jvm_protected_media_file=$1;
}
Without a custom hook all file access will be disabled. The user will see the 404 page for all requested files. Adding a hook is needed to handle your own file access rules. A simple example that could go into your functions.php:
function my_file_access_ru…| WordPress | 4.4.1+ requiredTested up to 6.0.11 |
| PHP | false+ required |
Added nginx check and admin notice for nginx users.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.