Linux 软件免费装
Banner图

WLock - Lock Your Site Against Unapproved Installs

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

标签

security whitelist agency lockdown install

下载

1.0.0

详情介绍:

WLock lets a site administrator define an approved whitelist of plugin and theme slugs. Once enabled, any attempt to install something that isn't on the list — whether searched for in the WordPress.org repository or uploaded as a .zip — is blocked with a clear on-screen explanation. This is useful for: What it does not do

安装:

  1. Upload the plugin files to /wp-content/plugins/wlock, or install directly through the WordPress plugins screen.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Go to Settings → WLock.
  4. Add the plugin/theme slugs you want to approve (one per line), then check "Block installation of anything not on the approved lists below" and save.

屏幕截图:

  • The message shown when a non-approved install is blocked.

升级注意事项:

1.0.0 Initial release.

常见问题:

How do I find a plugin's slug?

It's the folder name the plugin installs into under wp-content/plugins/, which is also the last part of its WordPress.org URL. For example, Akismet installs to wp-content/plugins/akismet, and its directory page is https://wordpress.org/plugins/akismet/ — so its slug is akismet.

Does this stop existing plugins/themes from being updated?

No. Updates to anything already installed are never blocked, only fresh installs.

Can a site admin bypass this?

Yes, deliberately. Anyone with the manage_options capability can edit the whitelist or deactivate the plugin. WLock is a self-managed safeguard, not a hard lock against the site's own administrators.

Does this work with uploaded .zip installs, not just the WordPress.org search?

Yes. The check runs after a package is unpacked, regardless of whether it came from the repository or a direct upload.

Is this safe to use?

All settings are saved through WordPress's own Settings API, which handles the nonce and capability checks for you, and every value is sanitized on save and escaped on output. Only users with the manage_options capability can view or change the whitelist.

更新日志:

1.0.0