Title: Files still accessible
Last modified: August 21, 2016

---

# Files still accessible

 *  [iamtmc](https://wordpress.org/support/users/iamtmc/)
 * (@iamtmc)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/)
 * For some reason this plugin isn’t working for me. I downloaded the plugin, installed
   it and set some media files to “Logged-in users” within the Media Vault Protection
   Settings but if I email a link of the File URL to someone and they click on the
   link BAM! it opens right up even though they aren’t logged in. What am I doing
   wrong?
 * [http://wordpress.org/plugins/media-vault/](http://wordpress.org/plugins/media-vault/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/files-still-accessible/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/files-still-accessible/page/2/?output_format=md)

 *  Plugin Author [Max GJ Panas](https://wordpress.org/support/users/max-gjp/)
 * (@max-gjp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467793)
 * Hey,
 * Have you tried disabling the other plugins and perhaps switching to a default
   theme to see if that solves your problem. Remember to backup any data you might
   lose when doing this.
 * Can you verify that the files are correctly being served from the Media Vault
   protected folder (ie: does the url contain a directory like ../_mediavault/..)
 * Can you verify that the Media Vault rewrite rules are present in your site’s .
   htaccess file (they begin with `# Media Vault Rewrite Rules` and end with `# 
   Media Vault Rewrite Rules End`).
 * Can you provide a link to some dummy content that is supposed to be protected
   but nevertheless is not?
 * Thanks, hope I can help
 *  Thread Starter [iamtmc](https://wordpress.org/support/users/iamtmc/)
 * (@iamtmc)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467794)
 * Thanks for getting back to me. Yes, the files are being served from subfolders(
   Year and Month) in the mediavault folder. I’m assuming the Media Vault installation
   moved them there since they were simply in the Uploads folder before. I’m using
   the Twenty Twelve theme. I’ve searched thru the WordPress folder and can’t find
   an .htaccess file. Maybe that’s the issue. Where should I find that file?
 *  Plugin Author [Max GJ Panas](https://wordpress.org/support/users/max-gjp/)
 * (@max-gjp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467795)
 * .htaccess is an Apache thing, so first you need to make sure that you’re on an
   Apache server. Then the file should be in the root folder of your site. Are you
   using FTP to view the files? You may need to enable showing hidden files to view
   it.
 *  Thread Starter [iamtmc](https://wordpress.org/support/users/iamtmc/)
 * (@iamtmc)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467830)
 * Sorry for the delay. I’m running WordPress on a Synology NAS. I don’t think I
   currently have an .htaccess file. Can I simply create one somehow and reinstall
   the plugin and it work?
 * Sorry if these are remedial questions but I’m a newbie at this WordPress thing
   and I’m using it to create an FAQ site for our small company. Our Synology NAS
   came with WordPress as an application that we can install and create sites on
   our NAS.
 *  Plugin Author [Max GJ Panas](https://wordpress.org/support/users/max-gjp/)
 * (@max-gjp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467835)
 * Hey, sorry for my delay as well!
 * I am not familiar with the Synology NAS so I am going to ask a different question:
   Do you have the latest Media Vault version? and Did Media Vault require you to
   go through “extra activation steps” to activate it?
 * Currently Media Vault is set-up to work out of the box with Apache servers, if
   your NAS is running something else like Windows ISS server or NGINX or whatever,
   then the plugin requires some manual work to complete the activation. This is
   not to say the plugin cannot work with these setups just that it is not built
   to do so automatically in the current version.
 *  Thread Starter [iamtmc](https://wordpress.org/support/users/iamtmc/)
 * (@iamtmc)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467836)
 * The plugin shows version 0.8.8. It didn’t require “extra activation steps”.
 *  Plugin Author [Max GJ Panas](https://wordpress.org/support/users/max-gjp/)
 * (@max-gjp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467838)
 * That should mean that your WordPress installation is running on an Apache server,
   so I would say try adding the .htaccess file like you said in the root folder
   of your WordPress installation, that’s usually the directory containing your 
   wp-config.php file. Are you using [Pretty Permalinks](http://codex.wordpress.org/Using_Permalinks)
   on your FAQ website? I hope this helps!
 *  [igpjc](https://wordpress.org/support/users/igpjc/)
 * (@igpjc)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467863)
 * Hi Max, thanks also for sharing your plugin. I am experiencing the same problem
   above – protected files are still accessible via a direct URL even though users
   are not logged in. In my situation:
    - I am using a child theme of twentythirteen
    - I am trying to protect PDF files
    - files are being served from the Media Vault protected folder e.g. `sitename/
      wordpress/wp-content/uploads/_mediavault/2014/02/filename.pdf`
    - the Media Vault rewrite rules are present in the .htaccess file
    - I am using pretty permalinks
 * Note: I do have an additional .htaccess file in my theme’s directory – this is
   the one provided with HTML5 Boilerplate v4.3.0. Could this be causing the issue?
 * Please let me know what I can do to fix this. Many thanks.
 *  [round2future](https://wordpress.org/support/users/round2future/)
 * (@round2future)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467868)
 * Was this issue ever resolved? I am experiencing a similar issue. Thank you.
 *  [3r1c](https://wordpress.org/support/users/3r1c/)
 * (@3r1c)
 * [12 years ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467870)
 * I was just experiencing a similar issue. Looking at my .htaccess file this is
   what I had:
 *     ```
       # Media Vault Rewrite Rules
       RewriteRule ^assets(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
       RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$
       RewriteRule ^assets(/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
       # Media Vault Rewrite Rules End
       ```
   
 * Investigating the **assets** directory I noticed the file that should have been
   protected didn’t even exist there. It was in the wp-content/uploads/ directory.
 * What solved my problem was simply deactivating and reactivating the plugin. My.
   htaccess file was updated and files are protected as expected.
 *     ```
       # Media Vault Rewrite Rules
       RewriteRule ^wp-content/uploads(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
       RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$
       RewriteRule ^wp-content/uploads(/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
       # Media Vault Rewrite Rules End
       ```
   
 *  [goodmuyis](https://wordpress.org/support/users/goodmuyis/)
 * (@goodmuyis)
 * [12 years ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467871)
 * The Last ^^ Post Resolve the Problem, Mark [resolved] Please
 *  [YOUniverse](https://wordpress.org/support/users/youniverse/)
 * (@youniverse)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467872)
 * Didn’t fix PDF protect for me.
 *  [MBV](https://wordpress.org/support/users/mbv/)
 * (@mbv)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467873)
 * First time install. Didn’t work/fix for me either, direct links not protected.
   Would really like this plug-in to work…
 * Files are being served from the Media Vault protected folder e.g. sitename/wordpress/
   wp-content/uploads/_mediavault/2014/02/filename.pdf
    The Media Vault rewrite 
   rules are present in the .htaccess file I am using pretty permalinks Running 
   on WordPress 3.9.1
 *  [MBV](https://wordpress.org/support/users/mbv/)
 * (@mbv)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467874)
 * I found a fix for my issue, at least for file types other than PDF files. I’ve
   installed wordpress in another directory, lets say /core, and so I edited the.
   htaccess to reflect in the code then, like:
 *     ```
       # Media Vault Rewrite Rules
       RewriteRule ^core/wp-content/uploads(/_mediavault/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
       RewriteCond %{QUERY_STRING} ^(?:.*&)?mgjp_mv_download=safeforce(?:&.*)?$
       RewriteRule ^core/wp-content/uploads(/.*\.\w+)$ index.php?mgjp_mv_file=$1 [QSA,L]
       # Media Vault Rewrite Rules End
       ```
   
 * That fixed my issue with direct download links, hope that helps some of you if
   you have your WordPress installed in an extra folder.
    I don’t know why PDF files
   are still not being protected, while other file types are….? If you are only 
   testing with PDF, try testing with jpg or some other file type as well.
 *  [MBV](https://wordpress.org/support/users/mbv/)
 * (@mbv)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/files-still-accessible/#post-4467875)
 * Got it working with pdf files now… I’m not sure, I played around with adding
   `
   AddType application/pdf .pdf` to .htaccess. Tt still works even when I remove
   that code. Don’t really know what happened, I just googled and stabbed in the
   dark but it’s working! Got the idea from [this thread](http://wordpress.org/support/topic/pdfs-can-still-be-opened?replies=4)
   Thanks for this plugin! I’ll test out some more before I give a review.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/files-still-accessible/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/files-still-accessible/page/2/?output_format=md)

The topic ‘Files still accessible’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/media-vault_e6e2db.svg)
 * [Media Vault](https://wordpress.org/plugins/media-vault/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-vault/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-vault/)
 * [Active Topics](https://wordpress.org/support/plugin/media-vault/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-vault/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-vault/reviews/)

 * 16 replies
 * 8 participants
 * Last reply from: [YOUniverse](https://wordpress.org/support/users/youniverse/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/files-still-accessible/page/2/#post-4467876)
 * Status: not resolved