Forum Thread: How to Secure Your WordPress Database Config and Prevent Hacking

How to Secure Your WordPress Database Config and Prevent Hacking

In this short How-to I'll tell you how to make your WordPress blog more secure.by doing this no one will be able to see your WordPress database config. It is very important to secure the Database Config

(wp-config.php)because by securing it you will make your blog very secured ! so lets go ;)

Step 1: Adding Htaccess Code.

So , all you have to do is to add a 3 lines of code in your blog's .htaccess file. the code can be found below:
# protect wp-config.php
order allow,deny
deny from all
don't forget that Hash-tag..

What Will This 3 Lines of Code Do ?

well this is very simple as you can see above "order allow,deny"

means what to allow and what not to, and we are using for wp-config.php we have a line there "deny from all no one can access wp-config.php and you can prevent "Symlink Attacks"

Be the First to Respond

Share Your Thoughts

  • Hot
  • Active