WordPress plugin intelligence profile

JVM Protected Media

Restrict access to all your media files and implement your own custom file access rules.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.0
Current version1.0.6
WordPress coverageTested up to WordPress 6.0
Minimum stackWP 4.4.1 · PHP —
Directory statusactive
Last directory update28 Sept 20224y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
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 JVM Protected Media version 1.0.6 as active, updated 4y ago and tested up to WordPress 6.0.

Overview

About this plugin

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.

htacess files. Add the following code:

jvm_protected_media_file=$1; }

Hooks

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.

php:

function my_file_access_rule($file_info) { // Implement your own logic here $userHasAccess = true;

if($userHasAccess) { // Send the file output if users has access to the file JVM_Protected_Media::send_file_output($file_info['path']); } }

add_action( 'jvm_protected_media_file', 'my_file_access_rule');

The jvm_protected_media_file action has one parameter with the following file information:

Array ( [id] => id_of_the_file [url] => full/url/to/your/file [path] => full/path/to/your/file [is_resized_image] => bool (true if the requested file is a image thumbnail or resized version of an image) )

Actions

Available actions:

  • jvm_protected_media_loaded (fires as soon as the plugin is loaded)
  • jvm_protected_media_file (fires when a file is requested)

Functions

To send the output of a file to you can call:

JVM_Protected_Media::send_file_output($fullPathToFile)

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • attachments
  • files
  • media
  • protect
  • protection
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.0
Minimum requirementsWordPress 4.4.1 · PHP not listed
Update activity28 Sept 20224y 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.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.