How To Secure Your WordPress Blog From Hackers

Wordpress is one of the most popular blogging platform with large number of users in the whole world now, on the one had its a great news, but on the other hand as the more number of users who run this software on their server to run their own blogs, there are also hackers on the other hand who want to take advantage of the unknown loop holes in the script.
Here is a very simple yet very effective way to protect your wordpress blogs from hackers.
All you need to do is copy and paste this code in your .htaccess file located in your /wp-admin folder
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Access Control"
AuthType Basic
order deny,allow
deny from all
# whitelist home IP address
allow from 123.45.67.89
# whitelist work IP address
allow from 123.45.67.98
Of course you need to replace the ip addess to yours and if you don’t know your ip address then just visit this site whats my ip
What this does is simple, it only lets you who is the owner of this ip address to access the admin panel and it will not let other users. but just know that users from countries like India will have dynamic ip address and their ip keeps changing whenever they restart their computer or router so this setting will not be of any use to them, but for those who have a static ip address this one will prove to be of great help.
Category: Blogging Tips


