Protect Your WordPress WP-Config.php Via .htaccess – Hacker Proofing Your Site | WP Learning Lab

Video is ready, Click Here to View ×


Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL
Protect Your WordPress WP-Config.php Via .htaccess – Hacker Proofing Your Site | WP Learning Lab

# BEGIN Protect the wp-config.php file

(left pointy bracket)files wp-config.php(right pointy bracket)
order allow,deny
deny from all
(left pointy bracket)/files(right pointy bracket)

# END Protect the wp-config.php file

You doesn’t allow the pointy brackets (Shift period and Shift comma) so make sure they match what you see in the video.

In this tutorial I’m going to show you to protect wp-config.php file from hackers using the .htaccess file and the code above. The importance of the WordPress wp-config.php file is enough to warrant protecting it. Secure wp-config.php is a big step towards hack prevention and hacker proofing your website..

So let’s put that code into your .htaccess file and secure WordPress.

First login into your hosting account cPanel. Then find and click on the File Manager icon…

3 Comments

  1. Hi I got the .htaccess file now and put the code now it is taking me to 404 page,,,,but I want to know one more thing that is this security is enough for website….I have seen people hide their wp-config.php and put the in different folder do I need to do that and what more security can be put to prevent from hacking….do let me know….thanks….

  2. Hi I have checked .htaccess in file manager and I could not get it so as per your instruction I tried to create but got the error….let know what next can be done….error saying file already exist so I tried to find but did not get it…let me know..

Leave a Reply

Your email address will not be published.


*