Linux 软件免费装
Banner图

Brightery File Lockdown

开发者 brighterycom
更新时间 2026年9月7日 00:28
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security media uploads hardening file security

下载

1.0.9

详情介绍:

Brightery File Lockdown reduces the impact of a compromised WordPress administrator account by restricting high-risk code and upload capabilities. In standard plugin mode it: The plugin does not contact Brightery or any external service, does not send telemetry, and does not collect IP addresses or WordPress user IDs. Admin-resistant Must-Use mode A normal WordPress plugin can always be deactivated by an administrator. If your security goal is to remain active after a WordPress administrator account is compromised, use the optional Must-Use loader included in the mu directory. For WordPress.org transparency and normal plugin lifecycle behavior, Brightery File Lockdown does not copy or install itself into wp-content/mu-plugins automatically. A trusted server administrator may manually deploy the Must-Use mode using two files from this package:
  1. Copy mu/brightery-file-lockdown-mu-loader.php to wp-content/mu-plugins/brightery-file-lockdown.php.
  2. Create wp-content/mu-plugins/brightery-file-lockdown/ and copy includes/class-brightery-file-lockdown.php into that directory as class-brightery-file-lockdown.php.
The deployed MU loader resolves the copied engine relative to the loader's own location. It does not rely on WP_PLUGIN_DIR or the normal plugin directory name. This lets the Must-Use protection continue loading even if the normal plugin is deactivated or its directory is renamed. Remove both manually deployed Must-Use files with trusted filesystem access before uninstalling the normal plugin. This plugin is a hardening layer, not a guarantee against compromise. Keep WordPress, plugins, themes, PHP, and the web server updated and apply server-level upload execution restrictions where appropriate.

安装:

  1. Upload and activate Brightery File Lockdown normally from Plugins > Add New.
  2. Test normal media uploads and your update workflow.
  3. Apply the appropriate Apache or Nginx uploads rule from the included server directory.
  4. For admin-resistant protection, manually deploy the optional MU loader and its engine copy using trusted hosting, SSH, SFTP, or deployment access.
  5. Review wp-config-example.txt for optional server-side configuration.

升级注意事项:

1.0.9 WordPress.org review update: plugin path resolution and optional Must-Use deployment now use location-safe paths and the contributor username matches the plugin owner.

常见问题:

Can a WordPress administrator deactivate the plugin?

In standard mode, yes. This respects the normal WordPress plugin lifecycle. For a compromised-admin threat model, manually deploy the included MU loader and engine copy using trusted server access.

Does the plugin automatically write files outside its own directory?

No. The WordPress.org package does not automatically create or modify files in wp-content/mu-plugins or other content directories.

Why does Must-Use mode require two files?

The Must-Use loader is intentionally independent of the normal plugin directory. Deploying a copy of the engine beside the loader means the loader does not hardcode the normal plugin folder or rely on WP_PLUGIN_DIR.

Does this block normal media uploads?

Common image, audio, and video formats remain allowed. PDF is disabled by default and can be explicitly enabled in wp-config.php.

Are plugin and theme updates blocked?

Updates are allowed by default. They can be disabled through server-side configuration constants when a site owner intentionally wants a stricter immutable-code workflow.

Does the plugin send data to Brightery?

No. There are no telemetry, tracking, remote API, license-check, or external service calls.

Where are security events stored?

The latest 100 blocked events are kept in a non-autoloaded WordPress option on the local site. Entries can contain the blocked filename, claimed MIME type, reason, and event time. IP addresses and user IDs are not collected.

What happens to locally stored events when the plugin is uninstalled?

The plugin removes its local blocked-event option during normal WordPress uninstall. Any manually deployed Must-Use files must be removed separately using trusted filesystem access.

更新日志:

1.0.9 1.0.8 1.0.7