Title: HTTP Auth
Author: Sami Ahmed Siddiqui
Published: <strong>2016 年 2 月 18 日</strong>
Last modified: 2025 年 7 月 22 日

---

搜索插件

![](https://ps.w.org/http-auth/assets/banner-772x250.png?rev=1795783)

![](https://ps.w.org/http-auth/assets/icon.svg?rev=1785371)

# HTTP Auth

 作者：[Sami Ahmed Siddiqui](https://profiles.wordpress.org/sasiddiqui/)

[下载](https://downloads.wordpress.org/plugin/http-auth.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/http-auth/#description)
 * [评价](https://cn.wordpress.org/plugins/http-auth/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/http-auth/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/http-auth/#developers)

 [支持](https://wordpress.org/support/plugin/http-auth/)

## 描述

This plugin empowers you to set up HTTP Authentication for your website. This adds
an extra layer of security by requiring a username and password to access specific
areas.

Here’s how it benefits you:

 * **Enhanced Admin Security:** Shield your admin pages from brute-force attacks
   by adding a login barrier.
 * **Controlled Crawling:** Restrict crawlers from accessing your site during development,
   preventing unnecessary indexing.
 * **Post-Launch Access Control:** Maintain control over admin page access even 
   after your website goes live.
 * **Easy Activation/Deactivation:** Conveniently enable or disable HTTP Auth without
   deactivating the plugin entirely.

### Help Us Improve!

I am constantly working to enhance this plugin and your feedback is valuable. If
you are happy with the plugin, consider leaving a review on WordPress.org. Your 
positive feedback motivates us to keep improving!

Link to Reviews: https://wordpress.org/support/plugin/http-auth/reviews/?rate=5#
new-post

### Bug Reports

We welcome bug reports for HTTP Auth on GitHub: [https://github.com/samiahmedsiddiqui/http-auth](https://github.com/samiahmedsiddiqui/http-auth).
Please remember that GitHub is primarily for bug reporting, and issues not classified
as genuine bugs may be closed.

### From within WordPress

 1. Visit ‘Plugins > Add New’
 2. Search for HTTP Auth
 3. Activate HTTP Auth from your Plugins page.
 4. Go to “after activation” below.

### Manually

 1. Upload the `http-auth` folder to the `/wp-content/plugins/` directory
 2. Activate HTTP Auth through the ‘Plugins’ menu in WordPress
 3. Go to “after activation” below.

### After activation

 1. Go to the plugin settings page and set up the plugin for your site.
 2. You’re done!

## 安装

This process defines you the steps to follow either you are installing through WordPress
or Manually from FTP.

## 评价

![](https://secure.gravatar.com/avatar/6f732f299fa8a6aedc0972b422b35764a016ed31e0cf7df253ab3e32c5590fc6?
s=60&d=retro&r=g)

### 󠀁[Seems to be working very well to me](https://wordpress.org/support/topic/seems-to-be-working-very-well-to-me/)󠁿

 [nipter](https://profiles.wordpress.org/nipter/) 2023 年 7 月 9 日

Thanks a lot for having made this nice and simple plugin!

![](https://secure.gravatar.com/avatar/4669c06297f4c01d882eb533006680a08cbbed616c0fdea5ffd352a8179ade53?
s=60&d=retro&r=g)

### 󠀁[Not working for complete site](https://wordpress.org/support/topic/not-working-for-complete-site-2/)󠁿

 [Fixdemonium](https://profiles.wordpress.org/problemizer/) 2022 年 12 月 5 日

I checked the “complete site” radio button, but the auth only appeared on the wp-
admin page. So the plugin is not working as advertised.

![](https://secure.gravatar.com/avatar/18e63dd189528c6e2759db273748065f63817b311957e41f3e58e5d256f1af90?
s=60&d=retro&r=g)

### 󠀁[Great Plugin, Great work](https://wordpress.org/support/topic/great-plugin-great-work-2/)󠁿

 [melissalee](https://profiles.wordpress.org/melissalee/) 2017 年 11 月 1 日

Great to see such a plugin available. Works like a charm and has more options than
I thought. I appreciate that!

![](https://secure.gravatar.com/avatar/eabe0f981f8b1c5c7c46ceef0e12c2922a2b8a9888ce96691fef0668ee24db3f?
s=60&d=retro&r=g)

### 󠀁[It Works For Me Perfect](https://wordpress.org/support/topic/it-works-for-me-perfect/)󠁿

 [sahir](https://profiles.wordpress.org/sahir1/) 2017 年 10 月 27 日

It Works For Me Perfect…. ThaNks.

![](https://secure.gravatar.com/avatar/e6b28a01cfeb6df0d74620b3d80f4b89ae2c9703ca5d9b7dc0126af2f0f4ba5c?
s=60&d=retro&r=g)

### 󠀁[Best Plugin and Easy to use!](https://wordpress.org/support/topic/best-plugin-and-easy-to-use-2/)󠁿

 [chrintinecase](https://profiles.wordpress.org/chrintinecase/) 2017 年 10 月 2 
日

I was use this plugin on my website. It work good on my website. I’m very much satisfied
with this plugin.

![](https://secure.gravatar.com/avatar/62c7064eb20015124576165a8b11bff9e358a86ac9c2b50d54f13b24214fefba?
s=60&d=retro&r=g)

### 󠀁[It’s simple and it works](https://wordpress.org/support/topic/its-simple-and-it-works-16/)󠁿

 [motokun](https://profiles.wordpress.org/motokun/) 2016 年 11 月 23 日

Generating .htaccess and .htpasswd by hand is pain. This little plugin does that
Admin UI is okay It’s simple Source code is GPL2 and is short enough, I reviewed
it and found no tricky things I’d better uninstall it when site goes live

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/http-auth/reviews/)

## 贡献者及开发者

「HTTP Auth」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Sami Ahmed Siddiqui ](https://profiles.wordpress.org/sasiddiqui/)

[帮助将「HTTP Auth」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/http-auth)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/http-auth/)，查看[SVN仓库](https://plugins.svn.wordpress.org/http-auth/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/http-auth/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/http-auth/)。

## 更新日志

#### 1.0.1 – Dec 23, 24

Fix minor WPCS issues and change text for better understanding.

#### 1.0.0 – July 28, 2023

    ```
    * Fix WPCS issues
    ```

#### Earlier versions

    ```
    * For the changelog of earlier versions, please refer to the separate changelog.txt file.
    ```

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**12 月前**
 *  活跃安装数量 **6,000+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/http-auth/)
 * 标签
 * [Brute Force](https://cn.wordpress.org/plugins/tags/brute-force/)[http auth](https://cn.wordpress.org/plugins/tags/http-auth/)
   [restrict site](https://cn.wordpress.org/plugins/tags/restrict-site/)
 *  [高级视图](https://cn.wordpress.org/plugins/http-auth/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/http-auth/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/http-auth/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/http-auth/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/http-auth/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/http-auth/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/http-auth/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/http-auth/reviews/)

## 贡献者

 *   [ Sami Ahmed Siddiqui ](https://profiles.wordpress.org/sasiddiqui/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/http-auth/)