{"id":112027,"date":"2019-11-24T14:36:36","date_gmt":"2019-11-24T14:36:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-shield\/"},"modified":"2026-09-17T20:32:24","modified_gmt":"2026-09-17T20:32:24","slug":"wp-shield","status":"publish","type":"plugin","link":"https:\/\/hu.wordpress.org\/plugins\/wp-shield\/","author":17640130,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.7","stable_tag":"1.7","tested":"7.1.2","requires":"4.6","requires_php":"7.4","requires_plugins":null,"header_name":"WP Shield","header_author":"Matthew Sherman","header_description":"Adds an htaccess block to be used on your sebsite","assets_banners_color":"58626b","last_updated":"2026-09-17 20:32:24","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/N\/A","header_plugin_uri":"https:\/\/www.tronebrandenergy.com\/plugins\/shield","header_author_uri":"https:\/\/www.tronebrandenergu.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2700,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.4":{"tag":"1.4","author":"drupalmatts","date":"2020-01-06 21:26:12","revision":2223137},"1.5":{"tag":"1.5","author":"drupalmatts","date":"2023-12-05 18:48:39","revision":3005878},"1.6":{"tag":"1.6","author":"drupalmatts","date":"2023-12-06 01:22:39","revision":3005980},"1.7":{"tag":"1.7","author":"drupalmatts","date":"2026-09-17 20:32:24","revision":3700947}},"upgrade_notice":{"":"<p>No Update available<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2199969,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2199969,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":2199969,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":2199969,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2199969,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":2199969,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2199969,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.4","1.5","1.6","1.7"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3700950,"resolution":"1","location":"plugin","width":264,"height":316},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3700950,"resolution":"2","location":"plugin","width":321,"height":255}},"screenshots":{"1":"Admin settings showing control of shield","2":"How the http authorization appears when enabled"}},"plugin_section":[],"plugin_tags":[734,158177,600],"plugin_category":[54],"plugin_contributors":[178956],"plugin_business_model":[],"class_list":["post-112027","plugin","type-plugin","status-publish","hentry","plugin_tags-development","plugin_tags-environments","plugin_tags-security","plugin_category-security-and-spam-protection","plugin_contributors-drupalmatts","plugin_committers-drupalmatts"],"banners":{"banner":"https:\/\/ps.w.org\/wp-shield\/assets\/banner-772x250.png?rev=2199969","banner_2x":"https:\/\/ps.w.org\/wp-shield\/assets\/banner-1544x500.png?rev=2199969","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/wp-shield\/assets\/icon.svg?rev=2199969","icon":"https:\/\/ps.w.org\/wp-shield\/assets\/icon.svg?rev=2199969","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-shield\/trunk\/screenshot-1.png?rev=3700950","caption":"Admin settings showing control of shield"},{"src":"https:\/\/ps.w.org\/wp-shield\/trunk\/screenshot-2.png?rev=3700950","caption":"How the http authorization appears when enabled"}],"raw_content":"<!--section=description-->\n<p>This plugin will allow you to secure your development, staging and UAT environments\nwith an http authentication block that can be controlled in admin but also turned\noff via a declared variable in your config file.  It allows you to bring your Database\nback to non-production environments without having to physically turn off the plugin each time.<\/p>\n\n<p>Variable:  <code>define('WP_SHIELD_UN', '');<\/code><\/p>\n\n<p>This simple line of code (recommended to add to a file ignored by your code management\nsoftware and required into your wp_config.php file) will override the enabled flag\nif the plugin's settings.  Enable in production and add the above code.  If that\nrequire file doesn't exist in your other environments, it will prompt users for the\nset username and password.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download WP Shield from the WordPress plugin directory<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Use the Settings-&gt;'WP Shield' screen to configure the plugin<\/li>\n<li>Enter the username and password you want use for the shield<\/li>\n<li>Check the enabled checkbox and Submit<\/li>\n<\/ol>\n\n<p>NOTE:  Depending on your setup you may need to add one of the following to your .htaccess\nor apache conf file:<\/p>\n\n<p><strong>.htaccess<\/strong><\/p>\n\n<pre><code>RewriteRule .* index.php [QSA,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n<\/code><\/pre>\n\n<p><\/p>\n\n<p><strong>Apache conf<\/strong><\/p>\n\n<pre><code>SetEnvIf Authorization \"(.*)\" HTTP_AUTHORIZATION=$1\n<\/code><\/pre>\n\n<p><\/p>\n\n<!--section=faq-->\n<p>TBD<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release of the Plugin<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Add code to bypass shield on WP-CLI calls<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Update readme for authorization setup<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>Fix for caching of credentials<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>Tested and confirmed for WordPress 6.1<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>Tested and confirmed for WordPress 6.4<\/li>\n<\/ul>\n\n<h4>1.7<\/h4>\n\n<ul>\n<li>Checked for php8.4 deprecations<\/li>\n<li>Fixed bug on the admin screen to check for the Checked option in Database<\/li>\n<li>Updated title on admin screen<\/li>\n<li>Added screenshots<\/li>\n<\/ul>","raw_excerpt":"This plugin will allow you to secure your development, staging and UAT environments with an http authentication block.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/112027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=112027"}],"author":[{"embeddable":true,"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/drupalmatts"}],"wp:attachment":[{"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=112027"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=112027"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=112027"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=112027"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=112027"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=112027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}