{"id":112027,"date":"2019-11-24T14:36:36","date_gmt":"2019-11-24T14:36:36","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-shield\/"},"modified":"2023-12-06T01:22:39","modified_gmt":"2023-12-06T01:22:39","slug":"wp-shield","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/wp-shield\/","author":17640130,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.6","stable_tag":"1.6","tested":"6.4.8","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":"2023-12-06 01:22:39","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":100,"downloads":2353,"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"},"1.5":{"tag":"1.5","author":"drupalmatts","date":"2023-12-05 18:48:39"},"1.6":{"tag":"1.6","author":"drupalmatts","date":"2023-12-06 01:22:39"}},"upgrade_notice":{"":"<p>No Update available<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2199969,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2199969,"resolution":"256x256","location":"assets","locale":""},"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":""},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2199969,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":2199969,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2199969,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.4","1.5","1.6"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"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":[],"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<li><p>Add the following code to your wp_config.php file:<\/p>\n\n<pre><code>if(file_exists('shield-settings.php')) {\n  include('shield-settings.php');\n}\n<\/code><\/pre><\/li>\n<\/ol>\n\n<p>For production environments:\n7.  Add the above snippet of code to the shield_settings.php file in the root of\n    your WordPress installation.<\/p>\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>","raw_excerpt":"This plugin will allow you to secure your development, staging and UAT environments with an http authentication block that can be controlled in admin  &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/112027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=112027"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/drupalmatts"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=112027"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=112027"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=112027"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=112027"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=112027"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=112027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}