跳到内容

Htaccess Secure Files

v0.5

isaacchapman · 2011年10月26日 上架

Allows securing files in WP's media library to be only accessible to users with specific roles, capabilities, or IP addresses.

正在使用
10+
评分
5.0 / 5
累计下载
6,718
最近更新
2012年6月8日
1 条评价需要 WordPress 3.2.1+已测试到 3.3.2

贡献者

截图

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.

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums