{"id":878,"date":"2011-11-08T12:58:49","date_gmt":"2011-11-08T20:58:49","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=878"},"modified":"2018-01-30T16:49:37","modified_gmt":"2018-01-31T00:49:37","slug":"protect-wp-config-php-file","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/protect-wp-config-php-file.html","title":{"rendered":"Protect WP-Config.php File"},"content":{"rendered":"<p style=\"text-align: center;\"><em>The wp-config.php file is the file that shows the blog database with username, password. If any hackers can read this file and get all the information, they can mess up the database if they want to. I found this on the website and hope it does work with our WordPress. Edit &#8220;.htaccess&#8221; of the blog root and resave &#8211; set the permission to 444.<\/em><\/p>\n<div class=\"igallery\">\n<p style=\"text-align: center;\"><a class=\"preview\" title=\"set permission to 444\" href=\"\/media\/wpweb\/permission.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"permission 444\" src=\"\/media\/wpweb\/tn_permission.jpg\" alt=\"permission 444\" width=\"257\" height=\"225\" \/><\/a>\u00a0\u00a0\u00a0\u00a0 <a class=\"preview\" title=\"accessing wp-config.php\" href=\"\/media\/wpweb\/wp_config_php.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"vertical-align: baseline; border: 3px solid black;\" title=\"accessing wp-config.php\" src=\"\/media\/wpweb\/tn_wp_config_php.jpg\" alt=\"accessing wp-config.php\" width=\"250\" height=\"88\" \/><\/a><\/p>\n<\/div>\n<blockquote>\n<p style=\"text-align: left;\"># BEGIN WordPress<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/family\/<br \/>\nRewriteRule ^index.php$ &#8211; [L]<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule . \/family\/index.php [L]<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p># END WordPress<br \/>\n# protect the htaccess file<br \/>\n&lt;files .htaccess&gt;<br \/>\norder allow,deny<br \/>\ndeny from all<br \/>\n&lt;\/files&gt;<br \/>\n# disable the server signature<br \/>\nServerSignature Off<br \/>\n# protect wpconfig.php<br \/>\n&lt;files wp-config.php&gt;<br \/>\norder allow,deny<br \/>\ndeny from all<br \/>\n&lt;\/files&gt;<em><br \/>\n<\/em><\/p><\/blockquote>\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The wp-config.php file is the file that shows the blog database with username, password. If any hackers can read this file and get all the information, they can mess up the database if they want to. I found this on the website and hope it does work with our WordPress. Edit &#8220;.htaccess&#8221; of the blog <a href=\"https:\/\/www.dognmonkey.com\/techs\/protect-wp-config-php-file.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[161],"class_list":["post-878","post","type-post","status-publish","format-standard","hentry","category-wordpress-3-2-1","tag-protect-wp-config-php"],"views":1392,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=878"}],"version-history":[{"count":1,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/878\/revisions"}],"predecessor-version":[{"id":6777,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/878\/revisions\/6777"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}