
HTTP Auth
v1.1.0Sami 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+
截图




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.comand 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.phpor 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 );inwp-config.phpturns 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.