=== Prevent Files / Folders Access ===
Contributors: cyberlord92
Donate link: https://miniorange.com
Tags: protect uploads, secure-files, content-restriction, protect-folders, media restriction, media management, download logs
Requires at least: 3.0.1
Tested up to: 7.0
Requires PHP: 5.6
Stable tag: 2.6.3
License: Expat
License URI: https://plugins.miniorange.com/mit-license

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

== Description ==
[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](mailto:oauthsupport@xecurify.com)

== Frequently Asked Questions ==
= 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 <a href="http://miniorange.com/contact" target="_blank">Contact us</a>. 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 <a href="http://miniorange.com/contact" target="_blank">Contact us</a>. You can also submit your query from the plugin's configuration page.

== Screenshots ==

1. Configuration
2. Permission to update htaccess file
3. Rules preview based on configuration
4. Upload files in protected folder
5. Folder based restriction
6. Contact us or support

== Changelog ==
= 2.6.3 = 
* Fixed file extension upload issue.
* Added Compatibility with WordPress 7.0

= 2.6.2 = 
* Added Compatibility with WordPress 6.9
* Security fixes

= 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

== Upgrade Notice ==
= 2.6.3 = 
* Fixed file extension upload issue.
* Added Compatibility with WordPress 7.0

= 2.6.2 = 
* Added Compatibility with WordPress 6.9
* Security fixes

= 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




