WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Media Vault

Protect attachment files from direct access using powerful and flexible restrictions. Offer safe download links for any file in your uploads folder.

Protected Attachment Files

Media Vault cordons off a section of your WordPress uploads folder and secures it, protecting all files within by passing requests for them through a powerful, flexible and completely customizable set of permission checks.

After activating the plugin, to protect attachment files with Media Vault you can:

  • use the Media Uploader admin page to upload new protected attachments,
  • use the Media Vault metabox to toggle file protection on the 'Edit Media' admin page,
  • use the the Media Vault Protection Settings fields in the new Media Modal, or,
  • using bulk actions in your Media Library page, you can change file protection on multiple pre-existing attachments at once.

By default the only permission check that the plugin does on media files is that the user requesting them be logged in. You can change this default behavior from the 'Media Settings' page in the 'Settings' menu of the WordPress Admin. You can also change the restrictions set on attachments on an individual basis by means of either the Media Vault metabox on the 'Edit Media' page or the Media Vault Protection Settings fields in the new Media Modal.

You can also write your own custom restrictions using the mgjp_mv_add_permission() function. See this support question for more details.

Safe Download Links

Creating a cross-browser compatible download link for a file is a harder task than might be expected. Media Vault handles this for you, and it does so while preserving all the file security features discussed earlier like blocking downloads to people who should not have access to the file.

The download links are available through a simple shortcode that you can use in your post/page editor screen:

[mv_dl_links ids="1,2,3"]

where 'ids' are the comma separated list of attachment ids you would like to make available for download in the list.

Note: Plugin comes with styles ready for WordPress 3.8+!

Note: Now supports WordPress MultiSite!

Requires: 3.5.0 or higher
Compatible up to: 3.8.3
Last Updated: 2014-2-18
Downloads: 2,541

Ratings

4 stars
4.9 out of 5 stars

Support

0 of 7 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 50,2,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,2,2 100,1,1
100,1,1