Title: WP Shield
Author: drupalmatts
Published: <strong>24 Tháng 11, 2019</strong>
Last modified: 6 Tháng 12, 2023

---

Tìm kiếm plugin

![](https://ps.w.org/wp-shield/assets/banner-772x250.png?rev=2199969)

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://ps.w.org/wp-shield/assets/icon.svg?rev=2199969)

# WP Shield

 Bởi [drupalmatts](https://profiles.wordpress.org/drupalmatts/)

[Tải về](https://downloads.wordpress.org/plugin/wp-shield.1.6.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/wp-shield/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/wp-shield/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/wp-shield/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/wp-shield/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/wp-shield/)

## Mô tả

This plugin will allow you to secure your development, staging and UAT environments

with an http authentication block that can be controlled in admin but also turned
off via a declared variable in your config file. It allows you to bring your Database
back to non-production environments without having to physically turn off the plugin
each time.

Variable: `define('WP_SHIELD_UN', '');`

This simple line of code (recommended to add to a file ignored by your code management

software and required into your wp_config.php file) will override the enabled flag
if the plugin’s settings. Enable in production and add the above code. If that require
file doesn’t exist in your other environments, it will prompt users for the set 
username and password.

## Cài đặt

 1. Download WP Shield from the WordPress plugin directory
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Settings->’WP Shield’ screen to configure the plugin
 4. Enter the username and password you want use for the shield
 5. Check the enabled checkbox and Submit
 6. Add the following code to your wp_config.php file:
 7.     ```
        if(file_exists('shield-settings.php')) {
          include('shield-settings.php');
        }
        ```
    

For production environments:
 7. Add the above snippet of code to the shield_settings.
php file in the root of your WordPress installation.

NOTE: Depending on your setup you may need to add one of the following to your .
htaccess
 or apache conf file:

**.htaccess**

    ```
    RewriteRule .* index.php [QSA,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    ```

**Apache conf**

    ```
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    ```

## Hỏi đáp

TBD

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“WP Shield” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ drupalmatts ](https://profiles.wordpress.org/drupalmatts/)

[Dịch “WP Shield” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/wp-shield)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/wp-shield/), check out [SVN repository](https://plugins.svn.wordpress.org/wp-shield/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/wp-shield/)
qua [RSS](https://plugins.trac.wordpress.org/log/wp-shield/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0

 * Initial release of the Plugin

#### 1.2

 * Add code to bypass shield on WP-CLI calls

#### 1.3

 * Update readme for authorization setup

#### 1.4

 * Fix for caching of credentials

#### 1.5

 * Tested and confirmed for WordPress 6.1

#### 1.6

 * Tested and confirmed for WordPress 6.4

## Meta

 *  Phiên bản **1.6**
 *  Cập nhật lần cuối **3 năm trước**
 *  Số lượt cài đặt **40+**
 *  Phiên bản WordPress ** 4.6 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.4.8**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/wp-shield/)
 * Thẻ
 * [development](https://vi.wordpress.org/plugins/tags/development/)[environments](https://vi.wordpress.org/plugins/tags/environments/)
   [security](https://vi.wordpress.org/plugins/tags/security/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/wp-shield/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/wp-shield/reviews/)

## Những người đóng góp

 *   [ drupalmatts ](https://profiles.wordpress.org/drupalmatts/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/wp-shield/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](http://N/A)