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 level of security where you can choose either cookie base restriction or session base restriction.
Also we support Apache, NGINX and IIS server to prevent the media files.

It prevent downloads of the media files from the public access and only the logged in users can access and downloads the files.

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.
  • User Base Restriction – A single user can access only a single folder. (Admin would be able to access all the folders)
  • Role Base Restriction – All the users of the particular role can access only a single folder. (Admin would be able to access all the folders)

We support LearnDash and other LMS to restrict files and folders according to different groups.

Also, We provide Page and Post Restriction which provides content control for WordPress sites.
This provides Page Restriction and Post Restriction i.e. control on content access based on User Roles. It also allows providing content access to only Logged In Users to specific or all pages and posts.

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

This functionality operates at the server level, thus if the Apache server rules doesn’t work, or also The WPengine, Siteground and other servers like this runs on a nginx server, which requires the use of nginx configuration rules. If you face any issues Please email us at or We would recommend you to please ensure your PHP server and rules first which will work on your server before purchasing it or else contact us we will help you to set up the plugin according to your requirements on your site.


  • 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.


1 desembre 2021
The plugin works very well. I first had problems that were due to my hoster. The service of Prevent file recognized this immediately and was able to help me quickly. I am very satisfied with the excellent support.
11 setembre 2021
I've had a few complicated use cases (e.g. SSO with unique user naming requirements, Prevent File Access with multiple folder and file locations) and the support (initials of D.B.and A.S.) team was great. We worked through the complicated issues with either a fix, or a customized solution. Would recommend this product and this support team highly. GW
2 setembre 2021
Dhruv helped to resolved issues with the plugin in my GoDaddy managed wp environment, even providing a temporary plugin that solved the issues.
14 maig 2021
Plugin doesnt work. Contacted support for 2 days in a row before using a different plugin which worked out of the box. They refuse to refund! I'm trying a credit card charge back. Hopefully this goes through! They are flat out refusing a refund. What a scam of a company!
21 abril 2021
Outstanding support on a great plugin. Got in touch with a small problem, which ended up being my own mistake, but support got me up and running in no time at all. Highly recommended.
Llegiu totes les 23 ressenya

Col·laboradors i desenvolupadors

"Prevent files / folders access" és programari de codi obert. La següent gent ha contribuït en aquesta extensió.


Registre de canvis


  • Security Improvements


  • Minor issues
  • SEO changes


  • WordPress 5.6 Compatibility


  • Bug fixes
  • Added support for NGINX server within the premium and Enterprise 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