A simple way to prevent search engines and the public from indexing and accessing your files without user authentication.
|Author:||BWPS (profile at wordpress.org)|
|WordPress version required:||4.0|
|WordPress version tested:||4.9.8|
|Added to WordPress repository:||27-11-2015|
|Total downloads:||9 829|
Click to start download
Once you have installed the plugin, please click Activate
Go to media to protect your files
Choose List View mode for the plugin options to show
You will notice there an extra column called "Prevent Direct Access" generated by our plugin. Simply check the box next to the file that you want to protect to prevent others from accessing to it.
Once you check the box, the plugin will automatically generate a private URL. Click Copy URL to copy it to clipboard.
If you want to unprotect your files, simply uncheck the box again.
As the free version of this plugin offers protection to up to 3 files only, an error message will be displayed when you try to protect more than 3 files. Contact us at email@example.com for the premium version, which offer unlimited protected files and other premium features.
Why do I get this “Plugin could not be activated because it triggered a fatal error”?
It’s likely that you’re using an outdated version of PHP. Please check and upgrade the PHP version on your server to 5.6 or greater.
In fact, WordPress itself even recommends your host supports PHP version 7.2 or greater for security purposes.
Why nothing happens after I activate the plugin?
Prevent Direct Access supports websites hosted on Apache servers out of the box.
In case you’re using WP Engine or other NGINX server, please check out this instruction on how to update the server configuration so that our plugin (both Free & Gold version) will work correctly as expected.
Why do I see a warning message on top after activating the plugin?
The plugin needs to add some mod_rewrite rules to your website .htaccess file (located on your website root folder) to prevents direct access to your files on the server.
So it’s likely that your .htaccess is not writable (with at least 644 permission; whose owner must be also accessable by your apache server such as
www-data). If that’s the case, you must either make it writable or manually update your .htaccess with the mod_rewrite rules found under Settings > Permalinks.
Why do I see the popup box that says I can protect only 3 files?
The free version of this plugin offers protection up to 3 files only. Please check out our Gold version which offer unlimited protected files and other premium features.
More documentation can be found in our FAQ.
220.127.116.11 August 10, 2018
- Hot fix  array declaration cannot work under PHP version < 5.4
2.4.0 June 14, 2018
- Fix cannot remove rewrite rules when deactivate plugin
2.3.9 Tue, April 17, 2018
- Fix “This plugin is not properly prepared for localization”
2.3.8 Thu, April 12, 2018
- Apply localisation
2.3.7 Wed, February 28, 2018
- Test WordPress 4.9.4
2.3.6 Wed, January 31, 2018
- Fix undefined index when get option FREE_PDA_SETTINGS
2.3.5 Fri, January 26, 2018
- Improve UI for settings page
2.3.4 Tue, January 23, 2018
- Improve UI on settings page by revamping checkbox option
- Integrate stop image hotlinking feature
- Show information in order to know whether the file is protected
2.3.3 Mon, January 8, 2018
- Revamp settings page
2.3.2 Wed, November 15, 2017
- Fix wp::prepare warning messages when using in WordPress version 4.8.3.
2.3.1: Sat, November 4, 2017
- Add warning messages when users are using deprecated wp api plugin.
2.3: Thu, August 17, 2017
- Protect files from search engine’s index
2.2: Wed, June 14, 2017
- Add settings page
2.1.5: Thu, June 1, 2017
- Notify users to upgrade to Gold version
- Update plugin’s data after users remove media files
2.1.4: Mon, May 22, 2017
- Change the way to get non-protected URL
- Redirect to default 404 page if the file is protected
- Support websites hosted on WP Engine
2.1.3: February 25, 2017
- Tweak: Change the plugin’s logic to cater for those files that couldn’t be found in the _postmeta table
- Fix Twitter, Googleplus and Facebook open graph issue
- Fix .htaccess rules to recognize the special characters
- Find in _postmeta table in case of cropped images via wordpress