Title: WP Shield
Author: drupalmatts
Published: <strong>24 november 2019</strong>
Last modified: 6 december 2023

---

Plugins zoeken

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

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

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

# WP Shield

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

[Download](https://downloads.wordpress.org/plugin/wp-shield.1.6.zip)

 * [Details](https://nl.wordpress.org/plugins/wp-shield/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/wp-shield/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/wp-shield/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/wp-shield/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/wp-shield/)

## Beschrijving

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.

## Installatie

 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
    ```

## FAQ

TBD

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“WP Shield” is open source software. De volgende personen hebben bijgedragen aan
deze plugin.

Bijdragers

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

[Vertaal “WP Shield” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/wp-shield)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/wp-shield/), haal de
[SVN repository](https://plugins.svn.wordpress.org/wp-shield/) op, of abonneer je
op het [ontwikkellog](https://plugins.trac.wordpress.org/log/wp-shield/) via [RSS](https://plugins.trac.wordpress.org/log/wp-shield/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

 *  Versie **1.6**
 *  Laatst geüpdatet **2 jaar geleden**
 *  Actieve installaties **100+**
 *  WordPress versie ** 4.6 of nieuwer **
 *  Getest t/m **6.4.8**
 *  PHP versie ** 7.4 of nieuwer **
 *  Taal
 * [English (US)](https://wordpress.org/plugins/wp-shield/)
 * Tags
 * [development](https://nl.wordpress.org/plugins/tags/development/)[environments](https://nl.wordpress.org/plugins/tags/environments/)
   [security](https://nl.wordpress.org/plugins/tags/security/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/wp-shield/advanced/)

## Waarderingen

Er zijn nog geen beoordelingen ingediend.

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

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/wp-shield/reviews/)

## Bijdragers

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

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/wp-shield/)

## Doneren

Wil je de groei van deze plugin ondersteunen?

 [ Doneer aan deze plugin ](http://N/A)