Plugin info

Total downloads: 6,322
Active installs: 10
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 6/8/2012 (5001 days ago)
Added to WordPress: 10/26/2011 (14 years old)
Minimum WordPress version: 3.2.1
Tested up to WordPress version: 3.3.2
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 5001 days ago • 1 reviews

22/100

Is Htaccess Secure Files abandoned?

Possibly abandoned (last update 5001 days ago).

Compatibility

Requires WordPress: 3.2.1
Tested up to: 3.3.2
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Redirection
Rating 4.4/5 (682 reviews)Active installs 2,000,000
Easy HTTPS Redirection (SSL)
Rating 4.2/5 (71 reviews)Active installs 100,000
Htaccess File Editor – Safely Edit Htaccess File
Rating 5.0/5 (101 reviews)Active installs 40,000
Spider Blocker
Rating 4.0/5 (5 reviews)Active installs 20,000
Custom PHP Settings
Rating 4.4/5 (15 reviews)Active installs 10,000
Hyper Cache
Rating 4.5/5 (82 reviews)Active installs 9,000

Description

The Htaccess Secure Files plugin can only be activated on Apache web servers with mod_rewrite enabled, and will automatically raise an error upon activation if this is not the case.

The Htaccess Secure Files plugin allows for setting files to be accessible only to visitors who have a specified IP address or WordPress role or capability. By using .htaccess files to secure the content instead of a separate directory outside the web root, WordPress’s native media library functionality can be used to upload secure files and link to them from within the visual editor.

By default all built-in WordPress roles will be allowed to access content that is marked as secure. The Settings -> Secure Files admin screen controls which roles, capabilities, and IP addresses are allowed to view or download secured files. If a custom role or capability is desired, there are several WordPress plugins capable of creating and editing roles and capabilities.

Any visitor that matches any selected role, capability, or IP address will be allowed to access secured files.

This plugin works by creating a .htaccess files in the directory of each secured file. If you manually edit the .htaccess file and it becomes corrupt (a 500 Internal Server Error is the most likely symptom), I recommend deleting the .htaccess file and then edit and save each secured item in the media library.

Installation

  1. Unzip the zip archive and upload the htaccess-secure-files directory to your /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. On the ‘Settings’ -> ‘Secure Files’ admin screen select which roles, capabilities, and IP addresses will be allowed to access secure files and what the server response should be for those denied access.
  4. To secure individual files edit the file on the ‘Media’ admin screen and change the ‘Secured File’ setting to ‘Yes’.

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

  1. Change the "Secured File" value to Yes on the Edit Media screen to secure a file.

    Change the "Secured File" value to Yes on the Edit Media screen to secure a file.

  2. Select the user roles that can access secured files.

    Select the user roles that can access secured files.

  3. Select the user capabilities that can access secured files.

    Select the user capabilities that can access secured files.

  4. Select which IP addresses can access secured files.

    Select which IP addresses can access secured files.

Changelog

0.5

  • Adding smarter detection when WordPress is installed in a sub-directory of a site.

0.4

  • MIME/Content-type detection routine expanded (in order of priority): 1) Use WordPress’s built-in (or plugin modified) MIME types. 2) Use Fileinfo PECL extension if installed. 3) Check with mime_content_type (deprecated). 4) Fallback to ‘application/octet-stream’.

0.3

  • “Denied access response” is now customizable: WordPress login, 403 Forbidden, 404 Not Found, or custom redirect.

0.2

  • Added “Secure” column to media manager list table
  • Added simple IP address whitelisting (may add more complexity in a later version)
  • Added the capability to hide/disable the admin interface with a define statement
  • Added screenshots

0.1

  • Initial version