{"id":619,"date":"2012-12-15T13:05:16","date_gmt":"2012-12-15T13:05:16","guid":{"rendered":"http:\/\/techblog.vifashion.vn\/?p=25"},"modified":"2012-12-15T13:05:16","modified_gmt":"2012-12-15T13:05:16","slug":"how-to-protect-the-wordpress-wp-config-php-file-and-other-files-as-well","status":"publish","type":"post","link":"http:\/\/ndthanh.com\/how-to-protect-the-wordpress-wp-config-php-file-and-other-files-as-well\/","title":{"rendered":"How to Protect the wordpress wp-config.php File"},"content":{"rendered":"
The wp-config.php file contains very sensitive information about your\u00a0WordPress installation, including your database access, table prefix and Secret Keys.<\/p>\n
The wp-config.php file is a standard part of your WordPress installation. It defines the configuration settings required to access your MySQL database. If your self-hosting WordPress, there’s no way of getting around not using it.<\/p>\n
It’s your job to protect it! You certainly don’t want this file falling into the wrong hands in the event of a server problem. You can protect it by encrypting it’s content when you upload and denying access to it.
\n<\/p>\n
How to protect your WordPress wp-config.php file:<\/strong><\/p>\n\n
\n<files wp-config.php>
\norder allow,deny
\ndeny from all
\n<\/files>When saving your changes using “Notepad,” make sure that you change the “Save as type” dropdown to “All Files” so that it does not change your .htaccess file into a .txt file.<\/li>\n<\/ol>\n