跳到内容

HTTP Auth

v1.1.0

Sami Ahmed Siddiqui · 2016年2月18日 上架

HTTP Basic Auth for WordPress: protect admin pages on production and complete staging or dev sites, per site and multisite ready.

正在使用
6,000+
评分
4.2 / 5
累计下载
8.7 万
最近更新
2026年11月23日
6 条评价需要 WordPress 4.9+已测试到 7.1.5PHP 7.2+

截图

Sites tab: choose None, Admin Site or Complete Site for each site URL, from code or added in settings.
Sites tab: choose None, Admin Site or Complete Site for each site URL, from code or added in settings.
A site with its own credentials.
A site with its own credentials.
Complete Site tab: credentials, message and the switch for every site set to Complete Site.
Complete Site tab: credentials, message and the switch for every site set to Complete Site.
Admin Site tab: credentials, message and the switch for every site set to Admin Site.
Admin Site tab: credentials, message and the switch for every site set to Admin Site.

HTTP Auth adds a browser username and password prompt (HTTP Basic Authentication) in front of your site, before WordPress or any login form loads.

Use it to:

  • Protect production admin pages from brute-force attacks: the login page, admin pages and XML-RPC ask for an extra username and password.
  • Hide development and staging sites from visitors and search engines by protecting every page.
  • Use one database everywhere. Choose the protection for each site URL, so production, staging and dev each get the right protection, even after your host copies the site between environments.

Features

  • Sites: set None, Admin Site or Complete Site for each site URL, with wildcards like *.example.com and a default for any other site.
  • Push safe: hosts like WP Engine, Kinsta and Pantheon rewrite URLs when copying a site. HTTP Auth stores its site list so it is not rewritten, and site URLs can also be defined in wp-config.php or code.
  • Credentials per mode and per site: Admin Site and Complete Site have their own username, password and message, and any site can use its own instead.
  • Multisite: when network activated, manage every site from Network Admin.
  • Brute-force throttling: too many failed attempts from one IP are blocked for a while.
  • Lockout escape: define( 'HTTP_AUTH_DISABLE', true ); in wp-config.php turns it off without touching settings.
  • Secure storage: passwords are hashed, never stored or shown in plain text.
  • Works with caching, WP-Cron and WP-CLI: protected pages are not cached, and cron and CLI requests are never blocked.

Help Us Improve!

If you are happy with the plugin, please leave a review on WordPress.org. Your feedback keeps it improving.

Bug Reports

Bug reports are welcome on GitHub. For questions and help, please use the support forum.

Plums

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

导航

说明

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

© 2026 Plums