🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Htaccess Secure Files icon
Possibly abandoned Tested up to 3.3.2 #40 in htaccess

Htaccess Secure Files

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.

Active installs10+10+ tier
Downloads · 30d45▲ +28.6% vs prev. 30d
Rating5/51 reviews
Health score30/100At risk
All-time downloads6.7KSince Oct 2011
Support resolved—No recent threads
RequiresWP 3.2.1PHP any
Downloads · 7d15▲ +36.4% week over week
Our verdict

Consider an alternative

Htaccess Secure Files shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 14 years ago, and scores 30/100 on our health check.

  • Small user base (10+ active installs)
  • Very few reviews so far
  • No update in 14 years
  • Only tested up to WordPress 3.3 (latest is 7.1)

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

4914Sep 2Oct 16Nov 30
Yesterday3
Daily average (1y)1
Peak day19Sep 14, 2026
Last 12 months402

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Htaccess Secure Files stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
htaccess >100 1,902 Best htaccess plugins →
media >100 10,000 Best media plugins →
secure >100 8,232 Best secure plugins →

Version adoption

Share of active sites per release.

  • 0.5100.0%

Rating breakdown

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Htaccess Secure Files

From the official readme · v0.5

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’.

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

Full changelog on WordPress.org →

Screenshots

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.
Select the user roles that can access secured files.
Select the user roles that can access secured files.
Select the user capabilities that can access secured files.
Select the user capabilities that can access secured files.
Select which IP addresses can access secured files.
Select which IP addresses can access secured files.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Htaccess Secure Files alternatives

All htaccess plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Redirection Redirection Manage 301 redirects, track 404 errors, and improve your site. No knowledge of Apache or… by John Godley 2M+ ★★★★★★★★★★ 4.4 (705) 2 months ago 83
2 Htaccess File Editor – Safely Edit Htaccess File Htaccess File Editor – Safely Edit Htaccess File A safe & simple htaccess file editor with automatic htaccess backups & htaccess file syntax… by WebFactory 40K+ ★★★★★★★★★★ 5 (102) 4 months ago 81
3 Spider Blocker Spider Blocker SpiderBlocker will block most common bots that consume bandwidth and slow down your blog. by Niteo 10K+ ★★★★★★★★★★ 4 (5) 3 years ago 38
4 Custom PHP Settings Custom PHP Settings This plugin makes it possible to override php settings. by cyclonecode 10K+ ★★★★★★★★★★ 4.4 (15) 2 days ago 83
5 Leverage Browser Caching Leverage Browser Caching Speed up WordPress with browser caching. Automatically adds expiry headers for images, CSS… by Rinku Y 9K+ ★★★★★★★★★★ 4.1 (42) 5 months ago 70
6 Htaccess File Editor – Easily Edit, Backup, Restore .htaccess file Htaccess File Editor Simple editor htaccess file without using FTP client. by WP Chill 5K+ ★★★★★★★★★★ 5 (2) 12 months ago 51
7 HTACCESS IP Blocker HTACCESS IP Blocker Blocks failed attempted IPs in htaccess by Taraprasad Swain 2K+ ★★★★★★★★★★ 5 (1) 6 years ago 35
8 .htaccess Site Access Control .htaccess Site Access Control Using the password protection will give you extra security layer of protection from brute… by Miina Sikk 800+ ★★★★★★★★★★ 4 (3) 11 years ago 31
9 htaccess protect htaccess protect htaccess protect - Protect your wordpress login or admin pages with password. by zoltanlaczko 700+ ★★★★★★★★★★ 3.7 (6) 5 years ago 34
10 Speed Up – Browser Caching Speed Up – Browser Caching Help browser to cache a local copy of static files and improve page load times. by Simone Nigro 600+ ★★★★★★★★★★ 5 (7) 4 months ago 67

FAQ

Htaccess Secure Files: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Htaccess Secure Files free?

Yes. Htaccess Secure Files is free to download and use from the official WordPress.org plugin directory.

Is Htaccess Secure Files safe to use in 2026?

Htaccess Secure Files shows warning signs in 2026 — compare the alternatives below before installing. It runs on 10+ sites, is rated 5/5 and was last updated 14 years ago, and scores 30/100 on our health check.

How many websites use Htaccess Secure Files?

Htaccess Secure Files is active on 10+ WordPress websites and has been downloaded 6,729 times since it launched in October 2011. It was downloaded 45 times in the last 30 days.

Does Htaccess Secure Files work with WordPress 7.1?

Htaccess Secure Files is officially tested up to WordPress 3.3.2, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was Htaccess Secure Files last updated?

The latest version, 0.5, was released on June 8, 2012 (14 years ago).

Who makes Htaccess Secure Files?

Htaccess Secure Files is developed and maintained by isaacchapman.

What are the best alternatives to Htaccess Secure Files?

The most popular alternatives to Htaccess Secure Files are Redirection (2M+ installs), Htaccess File Editor (40K+ installs) and Spider Blocker (10K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open