Prevent files / folders access


WordPress Prevent files /folders access provides an easiest way to protect your wordpress files from public users so that your content can be accessed only by WordPress logged in users.

For restricted access you can choose to redirect users to 403 forbidden page, your custom page, SSO login page (if you are using OAuth or SAML SSO).

No change required or no manual work needed to create a private link to protect your files. Our plugin take care of everything.

We support any level of customization according to your requirement.

File Based Protection

WordPress Prevent file/folder access developed in a way that it allows you to protect many types of files in your customized way. It will protect files based on their extension.
You can protect file types below:

  • Images – Every type of image files can be protected. eg: jpeg, jpg, gif, png, bmp, webp, pfg, ico, psd, etc.
  • Videos – Every type of video files can be protected. eg: mp4, m4a, m4v, f4v, f4a, m4b, m4r, f4b, mov, 3gp, avi etc.
  • Documents – Every type of document files can be protected. eg: doc, docx, html, pdf, txt, ppt, xls, xlsx, pptx, odt.


WordPress Prevent file/folder access allows you to customize redirect option after the files restriction.

  • 403 forbidden page (DEFAULT) – Users will be shown with 403 forbidden page with restricted access messasge.
  • Display custom page – We can redirect users to any WordPress custom page when they try to access a restricted files or folders.
  • WordPress login – Users will be redirected to the WordPress default login page.
  • IDP login – Users will redirect to the selected IDP (SAML/OAuth) login page and after IdP authentication they can see the restricted content.

Protected folder

  • Our plugin also gives you a protected folder where you can add all file type extensions and restriction will be applied to all files inside protected folder.

Folder Based Protection

  • WordPress Prevent files / folders access allows you to protect your folders too, the wp-content or uploads folder where all the media files like image, video and document files stored will also be protected.
  • Users have option to protect particular month’s media files.

You can customize the restriction rules and use it as per needs.


  • Configuration
  • Permission to update htaccess file
  • Rules preview based on configuration
  • Upload files in protected folder
  • Folder based restriction
  • Contact us or support


I need to customize the plugin or I need support and help?

Please email us at or Contact us. You can also submit your query from plugin’s configuration page.


September 10, 2020
The free version of the plugin did not work on our server although it is an Apache server. However, it works perfectly on BlueHost. For that reason I am not giving it 5 stars. The customer support was very good, and worked with me to see why the plugin would not work on the server. I appreciate all the time they spent helping us.
August 25, 2020
Dhruv was extremely helpful even though I was using the free version of their plugin. His expert advice helped me solve my file access problem.
August 14, 2020
This plugin works exactly like it should! I had an issue with a third party embed plugin that needed access to my PDF's and the support went out of their way to help me out. Great stuff! PS. the piece of code I needed to add in the HTAcces was: RewriteCond %{REQUEST_URI} ./wp-content/plugins/[name-of-plugin-that-needs-access] Big thanks to support team!
May 22, 2020
The plugin works great and I got a fast and accurate response to configure the plugin using NGINX. Thank you very much
March 18, 2020
Awesome plugin, it works flawlessly. And thumbs up for the support.
Read all 12 reviews

Contributors & Developers

“Prevent files / folders access” is open source software. The following people have contributed to this plugin.




  • Bug fixes
  • New Enterprise plan


  • Fix file permissions issue for the protected folder


  • Fix the Bootstrap conflict with the WP-admin and Permission issue


  • Change method of writing rules in htaccess file


  • File Deletion issue fixed


  • Initial release