WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by miniOrange v2.6.5

Prevent Files / Folders Access

Prevent public access to WordPress files and folders. Protect downloads from public access, Role-based folder access, and User base folder access.

Prevent Files / Folders Access

The facts

Rating
4.6★ from 35
Active installs
1k+
Price
Free
Last updated
25 Aug 2026
Added
Sep 2019
Requires WP
4.7
Tested up to
WP 7.1
Requires PHP
5.6
Downloads
41,191

Our analysis

AI-assisted

Prevent Files / Folders Access is a WordPress plugin designed to secure files and folders within your media library from public access. It allows only logged-in users or those with specific roles to access protected content, preventing unauthorized downloads and Google indexing of sensitive files.

The plugin offers various redirection options for restricted users, including a default 403 forbidden page and custom pages. It supports cookie-based and session-based restrictions and is compatible with both Apache and Nginx servers. This plugin is suitable for anyone needing to protect media files, such as ebooks and documents, on their WordPress site.

Best for: This plugin is best for WordPress site owners who need to restrict access to media files and folders.

What it does well

  • Protects media files from public access
  • Supports various file types, including images, videos, and documents
  • Offers multiple redirection options for restricted access
  • Compatible with Apache and Nginx servers
  • Allows customization based on user roles and membership

Where it falls short

  • Limited information on specific setup requirements
  • No details on support or documentation availability

Verdict

Prevent Files / Folders Access provides a straightforward solution for securing media content on WordPress sites. Its features cater well to users looking to control file access based on user roles.

From the developer

miniOrange's own description of Prevent Files / Folders Access, lightly tidied.

WordPress Prevent files/ folders access provides the easiest way to protect WordPress files from public users so that your wordpress media library can be accessed only by WordPress logged in users or users with specific roles/capabilities. Your ebooks, pdfs, other important files, etc., can be protected from google indexing so that data is protected from getting stolen. Control users access to media library, Control users access to the WordPress upload folder or sub folders, and restrict all the files published on your WordPress site.

For restricted Content you can choose to redirect users to 403 forbidden page, your custom page, WordPress login 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 wordpress media file. Our plugin takes care of your media library or via Media, Pages, or Posts.

We support a level of security where you can choose either cookie-based restriction or session-based restriction.
Also, we support Apache and Nginx servers to prevent direct access to the WordPress media library and therefore protect the media library for public or restricted users.

It prevents private download of the media files from public access and only the logged-in users or specific user roles can access and download the wordpress media files.

We also support media/files/folders Restriction based on NFT holding in the user crypto wallet. We support any level of customization according to your requirement.

File-Based Protection

WordPress Prevent file/folder access is developed to allow you to protect wordpress media file in your customized way. It will prevent direct access from media library 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.

Redirect

WordPress Prevent file/folder access provides redirect options. This allow you to redirect the restricted users to any WordPress page of your website.

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

Private Directory/Protected folder

  • Our plugin also gives you a Private Directory where you can add files of all extension types and restrictions will be applied to all files inside the private directory.

Membership Based Media Restriction.

  • WordPress Prevent files/ folder allows you to secure media library and control wp-content/uploads access based on the membership purchased by the user.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for managing URLs.

All in One SEO

AIOSEO is the WordPress SEO plugin. Boost SEO rankings with AI SEO tools, schema, meta descriptions, XML sitem...

Free 2M+ installs 4.7★ (5,201)
301 Redirects

Manage 301 & 302 redirects. Simple redirection & redirects validation. Includes redirect stats & 4...

Free 300k+ installs 4.7★ (578)
Redirection for Contact Form 7

Redirect to any page or URL, execute scripts after submission, save data to the database, and unlock additiona...

Free 200k+ installs 4.7★ (275)
Permalink Manager Lite

Permalink Manager enhances WordPress’s built-in URL system, allowing you to change the URLs of native and cust...

Free 100k+ installs 4.8★ (176)
WP Encryption

Lifetime SSL solution - Free SSL certificate & HTTPS redirect, fix insecure site / SSL errors, Security he...

Free 50k+ installs 4.9★ (1,143)
Redirection

Manage 301 redirects, track 404 errors, and improve your site. No knowledge of Apache or Nginx required.

Free 2M+ installs 4.4★ (703)