This article is part of a discussion Protect your WordPress blog. Here are described the steps to protect the WordPress configuration file from the hands of ignorant.
WordPress blogging application database MySql store information in
your wp-config.php file, it makes the wp-config.php becomes the target
of hackers. Information stored in this file is important:
- database name
- username database
- password database
- table prefix
If hackers get this information, wordpress site 100% will be broken.
Follow the directions below to protect the wp-config.php:
- open the file. htaccess (if not yet exist can be created manually) in the web directory wordpress
- Add the contents of the file. Htaccess with the following code:
# protect wpconfig.php
<files wp-config.php>
order allow,deny
deny from all
</files>
Do not forget to set permissions on wp-config.php to 444