This is a very quick tutorial which let you know how to protect your wp-config.php file from hackers by using the .htaccess file in your WordPress website. The wp-config.php file has very critical information of your website like database connection information.
Open the .htaccess file from root directory of your server and add the below code at the end of the file and save it. below code will prevent access to your wp-config.php file.
# protect wpconfig.php
deny from all
I have written an eBook to protect your WordPress website from hackers/attackers by implementing the security guidelines with your site. If you are a serious WordPress developer OR WordPress website owner, then you must implement the Security Guideline in your WordPress website. It will help you to protect from hackers/attackers.
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: htaccess beginner, htaccess beginners tutorial, wordpress tutorial, wordpress tutorial for beginner, wordpress tutorial for beginners, wordpress tutorials, wordpress tutorials for beginners, wordpress tutorils