Title: Prevent files / folders access
Author: miniOrange
Published: <strong>2019年9月10日</strong>
Last modified: 2025年6月24日

---

プラグインを検索

![](https://ps.w.org/prevent-file-access/assets/banner-772x250.png?rev=2154375)

![](https://ps.w.org/prevent-file-access/assets/icon-128x128.png?rev=2154375)

# Prevent files / folders access

 作者: [miniOrange](https://profiles.wordpress.org/cyberlord92/)

[ダウンロード](https://downloads.wordpress.org/plugin/prevent-file-access.2.6.1.zip)

 * [詳細](https://ja.wordpress.org/plugins/prevent-file-access/#description)
 * [レビュー](https://ja.wordpress.org/plugins/prevent-file-access/#reviews)
 * [開発](https://ja.wordpress.org/plugins/prevent-file-access/#developers)

 [サポート](https://wordpress.org/support/plugin/prevent-file-access/)

## 説明

[WordPress Prevent files/ folders](https://plugins.miniorange.com/wordpress-media-restriction)
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 page** – _We can redirect users to any WordPress custom page
   when they try to access 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._

### Private Directory/Protected folder

 * Our plugin also gives you a [Private Directory](https://plugins.miniorange.com/wordpress-media-restriction#mediarestriction)
   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.

### Folder Based Protection

 * WordPress Prevent files/ folders access allows you to protect your folders too,
   the **wp-content or uploads** folder where all the wordpress media files like
   images, videos, and document files are stored will also be protected.
 * Users have the option to **protect a particular month’s media files or sub folder
   in uploads directory.**.
 * **User-Based Restriction** – A particular user can access only a particular folder.(
   Admin would be able to access all the folders)
 * **Role Base folder access** – Uploads folder or subfolders can be restricted 
   for public access and allowed folder access to users with specific role. (Admin
   would be able to access all the folders)

We support **[LearnDash](https://www.learndash.com/)** and other LMS to restrict
files and folders according to different groups and specific user roles.

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

This functionality operates at the server level, thus if the Apache server rules
don’t work, or also the WP Engine, Siteground, and other servers like this run on
an Nginx server, which requires the use of Nginx configuration rules. If you face
any issues please email us at _info@xecurify.com_ or _oauthsupport@xecurify.com_.
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.**

FREE VERSION FEATURES

 * WordPress Prevent Files/Folder Access allows you to protect your wordpress media
   files, libraries and folders from public access.
 * **File Extensions Restricted** – Can restrict five standard extensions (.png,.
   jpg, .gif, .pdf, .doc).
 * **Redirection of non-logged-in users**: Can redirect non-logged-in users to any
   page of your WordPress site.
 * **Protected Folder**: Can keep selected files in a protected folder and they 
   will be restricted from the public users.
 * **Supported Servers**: You can configure the plugin on the Apache server easily.
 * **Security Level Base**: Plugin will check if a user is logged in or not through
   Cookie.

PREMIUM VERSION FEATURES

 * WordPress Prevent Files/Folder Access allows you to protect your media files 
   and folders from public access.
 * **File Extensions Restricted** – Media restricton to unlimited extensions is 
   supported.
 * **Redirection of non-logged-in users**: You can redirect the non-logged-in users
   to any page of your WordPress site or to the WordPress login page.
 * **Folder Restriction**: Can restrict access to wordpress media library from non-
   logged-in users.
 * **Protected Folder**: Can store unlimited files in a private directory/protected
   folder and they will be restricted from the public users and indexing on search
   engine.
 * **Supported Servers**: You can configure plugins on Apache and NGINX servers 
   easily.
 * **Security Level Base**: Plugin will check if a user is logged in or not through
   Cookie.

ENTERPRISE VERSION FEATURES

 * WordPress Prevent Files/Folder Access allows you to protect your WordPress media
   files and folders from public access.
 * **File Extensions Restricted** – Media restriction to unlimited extensions is
   supported.
 * **Redirection of non-logged-in users**: You can redirect non-logged-in users 
   to any page of your WordPress site or to the WordPress login page or to SAML/
   OAuth login page.
 * **Folder Restriction**: Can restrict access to the WordPress uploads folder or
   any other folder in your WordPress instance from non-logged-in users by enabling
   user access restrictions.
 * **Protected Folder**: Can keep unlimited files in a protected folder and they
   will be restricted from the public users to prevent direct access to specific
   user roles.
 * **Supported Servers**: You can configure plugins on Apache and NGINX servers 
   easily.
 * **Security Level Base**: Plugin will check if a user is logged in or not through
   Cookie or Session.

ALL INCLUSIVE VERSION FEATURES

 * WordPress Prevent Files/Folder Access allows you to protect your WordPress media
   files and folders from public access.
 * **File Extensions Restricted** – Media restricton to unlimited extensions is 
   supported.
 * **Redirection of non-logged-in users**: You can redirect non-logged-in users 
   to any page of your WordPress site or to the WordPress login page or to SAML/
   OAuth login page.
 * **Folder Restriction**: Can restrict access to the WordPress uploads folder or
   any other folder in your WordPress instance from non-logged-in users by enabling
   user access restrictions.
 * **Protected Folder**: Can keep unlimited files in a protected folder and they
   will be restricted from the public users to prevent direct access to specific
   user roles.
 * **Supported Servers**: You can configure plugins on Apache and NGINX servers 
   easily.
 * **Security Level Base**: Plugin will check if a user is logged in or not through
   Cookie or Session.
 * **Media Management**: You can create custom folders and subfolders to organize
   your media library and control access of the created folders and subfolders.
 * **Download Logs**: You can view logs for uploading, downloading, and deleting
   files.
 * **Membership Based Media Restriction**: Compatible with Paid Memberships Pro,
   ARMember Membership, WordPress Membership, and WooCommerce Subscriptions.

DOCUMENTATION AND SUPPORT

 * For documentation go to our [Documentation](https://plugins.miniorange.com/wordpress-media-restriction#mediarestriction)
 * If you have any questions or want to request new features, contact us via email
   at [oauthsupport@xecurify.com](https://ja.wordpress.org/plugins/prevent-file-access/oauthsupport@xecurify.com?output_format=md)

## スクリーンショット

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

## FAQ

### Can I prevent access to any particular folder?

Yes. You can prevent access to any WordPress folder that you want.

### Is there a limit on the number of files that can be protected?

No. You can protect unlimited files.

### Are the licenses perpetual?

Yes, the perpetual license and the Support Plan are valid for 12 months. Along with
support from the development team, you also get version updates. You can renew the
support plan after 12 months at 50% of the current license cost. [Check more](https://plugins.miniorange.com/end-user-license-agreement).

### Why should I buy the premium/Enterprise/All Inclusive plugin?

The premium plan offers a range of advanced features, including WordPress Custom
Folder Restriction, Media Restriction, User-Based Folder Restriction, Roles-Based
Folder Restriction, Display Custom Page, Redirect to SSO (SAML or OAuth) Login Page,
and numerous others.

### Can I customize the plugin according to my needs?

Please email us at info@xecurify.com or [Contact us](http://miniorange.com/contact).
You can also submit your query from the plugin’s configuration page.

### Do you provide customer support?

Yes, we at miniOrange provide high-quality customer support. Please email us at 
info@xecurify.com or [Contact us](http://miniorange.com/contact). You can also submit
your query from the plugin’s configuration page.

## 評価

![](https://secure.gravatar.com/avatar/8377729334b9a1ccce4f862edaf0bc97de96bd0aa15666ce947db46003801c6b?
s=60&d=retro&r=g)

### 󠀁[Persistant Support](https://wordpress.org/support/topic/persistant-support/)󠁿

 [jonmxm](https://profiles.wordpress.org/jonmxm/) 2025年12月6日

I will give this a 5 star rating only because of the support. The support was very
good and they where able to work through all of the issues with our site/host and
they were finally able to resolve all of our issues. However, I am in the US Central
time zone. It took about 4 weeks to resolve our issues because of the time delay.
Again, the support was great but you will need to be patient!

![](https://secure.gravatar.com/avatar/75134204f23d1efab7132b632225fcb8b5170bdc4da6c7303a7c6f0286fe89da?
s=60&d=retro&r=g)

### 󠀁[SUPER](https://wordpress.org/support/topic/super-3084/)󠁿

 [baritono](https://profiles.wordpress.org/baritono/) 2025年5月10日

Cercavo proprio un plugin di questo genere, è ottimo! Però vedo che non è aggiornato
da un anno ((( L’avete abbandonato?

![](https://secure.gravatar.com/avatar/021e24520bc7adf037442165eb7f32c625703a1fb9c80afe179f0c726f031d55?
s=60&d=retro&r=g)

### 󠀁[Resolved Install Issue](https://wordpress.org/support/topic/resolved-install-issue/)󠁿

 [mpisner](https://profiles.wordpress.org/mpisner/) 2024年12月3日

I had an issue with conflicting plugins that were keeping me from installing/activating
this one. This team quickly arranged a conference call with me and their developers
and helped me work through my issue. They were patient and thorough and I could 
not have received better support. Incredibly friendly team and I am so thankful 
for them.

![](https://secure.gravatar.com/avatar/51ac2418665922d251586b7e523d47a2b6b36f300296aa4de6d2c6643e257ae4?
s=60&d=retro&r=g)

### 󠀁[Excellent Customer Support](https://wordpress.org/support/topic/excellent-customer-support-186/)󠁿

 [sjmccabe](https://profiles.wordpress.org/sjmccabe/) 2024年9月20日

My organization is using the Private Directory feature of Prevent files / folders
access to protect PDF files that need to be accessible by our members only, and 
not via URL on the open Internet. While setting up the plug-in I had two issues 
and they were both solved within 24 hours by the developers. Thank you very much!

![](https://secure.gravatar.com/avatar/c22e6c2182ff009259b75261b47c89742a31c7407bf52173914b840bb5fe08c4?
s=60&d=retro&r=g)

### 󠀁[Amazing tech support](https://wordpress.org/support/topic/amazing-tech-support-7/)󠁿

 [candyteacher](https://profiles.wordpress.org/candyteacher/) 2024年5月29日

It took us a couple of weeks to get this set up exactly how we wanted, but we’ve
had amazing tech support every step of the way thanks to Saurabh, who has gone above
and beyond to make sure all the code was working perfectly. Recommendable.

![](https://secure.gravatar.com/avatar/c9a4ff5646646f097ef02369aaf67740a4379e3b73533aab2165ae8d157b3ba4?
s=60&d=retro&r=g)

### 󠀁[Best SSO Plugin ever used](https://wordpress.org/support/topic/best-sso-plugin-ever-used/)󠁿

 [deliuselite](https://profiles.wordpress.org/deliuselite/) 2024年4月2日

miniOrange has the best SSO plugin that we have ever used. They integrate with a
lot of services and are willing to write an application if a service is not available.
Would use them for all future clients. Plugin = 10/10 Service = 10/10 Ease of use
= 8/10

 [ 35件のレビューをすべて表示 ](https://wordpress.org/support/plugin/prevent-file-access/reviews/)

## 貢献者と開発者

Prevent files / folders access はオープンソースソフトウェアです。以下の人々がこの
プラグインに貢献しています。

貢献者

 *   [ miniOrange ](https://profiles.wordpress.org/cyberlord92/)

[“Prevent files / folders access” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/prevent-file-access)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/prevent-file-access/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/prevent-file-access/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/prevent-file-access/)を
[RSS](https://plugins.trac.wordpress.org/log/prevent-file-access/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 2.6.1

 * Security fixes

#### 2.6.0

 * Added Compatibility with WordPress 6.8
 * URL migration

#### 2.5.4

 * Added Compatibility with WordPress 6.5
 * Handled server rules removal on plugin deactivation.

#### 2.5.3

 * Added an advertisement for the All Inclusive Plan.
 * Updated the endpoint for premium license plan.

#### 2.5.2

 * Added Compatibility with WordPress 6.3
 * Security Fixes

#### 2.5.1

 * Fixed the feedback form issue.

#### 2.5.0

 * New plugin UI introduced.
 * Security Fixes.
 * Compatible with WP 6.2

#### 2.4.8

 * UI improvements in plugin dashboard.
 * Compatible with WP 6.1.

#### 2.4.7

 * Added Advertisement for IP restriction.
 * Added Advertisement for all the available add-on.

#### 2.4.6

 * Nginx Demo Rules.
 * Feature Doc for individual feature.
 * Improvement in role base restriction demo.

#### 2.4.5

 * Security fixes.
 * UI Improvements.

#### 2.4.4

 * UI improvements.
 * Some minor fixes in Licensing plans, File Restriction tabs

#### 2.4.3

 * Added Compatibility with WordPress 5.9
 * Some minor fixes

#### 2.4.2

 * Security Improvements

#### 2.4.1

 * Minor issues
 * SEO changes

#### 2.3.1

 * WordPress 5.6 Compatibility

#### 2.3.0

 * Bug fixes
 * Added support for NGINX server within the premium and Enterprise plugin

#### 2.2.0

 * Bug fixes
 * New Enterprise plan

#### 2.1.0

 * Fix file permissions issue for the protected folder

#### 1.1.4

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

#### 1.1.3

 * Change method of writing rules in htaccess file

#### 1.1.2

 * File Deletion issue fixed

#### 1.1.1

 * Initial release

## メタ

 *  バージョン **2.6.1**
 *  最終更新日 **10か月前**
 *  有効インストール数 **1,000+**
 *  WordPress バージョン ** 3.0.1またはそれ以降 **
 *  検証済み最新バージョン: **6.8.5**
 *  PHP バージョン ** 5.6またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/prevent-file-access/)
 * タグ
 * [content restriction](https://ja.wordpress.org/plugins/tags/content-restriction/)
   [protect uploads](https://ja.wordpress.org/plugins/tags/protect-uploads/)[secure files](https://ja.wordpress.org/plugins/tags/secure-files/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/prevent-file-access/advanced/)

## 評価

 5つ星中4.6つ星

 *  [  30 5-星レビュー     ](https://wordpress.org/support/plugin/prevent-file-access/reviews/?filter=5)
 *  [  2 4-星レビュー     ](https://wordpress.org/support/plugin/prevent-file-access/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/prevent-file-access/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/prevent-file-access/reviews/?filter=2)
 *  [  3 1-星レビュー     ](https://wordpress.org/support/plugin/prevent-file-access/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/prevent-file-access/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/prevent-file-access/reviews/)

## 貢献者

 *   [ miniOrange ](https://profiles.wordpress.org/cyberlord92/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/prevent-file-access/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://miniorange.com)