By: Prem Tiwari | Last Updated:
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.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari
htaccess beginner, htaccess beginners tutorial, wordpress tutorial, wordpress tutorial for beginner, wordpress tutorial for beginners, wordpress tutorials, wordpress tutorials for beginners, wordpress tutorils