How To Secure Your WordPress Blog From Hackers



Guide On How I Get Consistent, Targeted Traffic To My Blog
Click Here!

blog hacker
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.


Tags: ,

Category: Blogging Tips

About admin: View author profile.

  • Una

    Great tip thanks! Just a question before I install this… I’m working both from my home and my boyfriend’s and at times at other places that have wireless. Is my IP likely to change at these different locations?

    If so could I have more than one ‘allow from’ in the file or is there a better way?

    Thanks :-)

    • seoguy

      Hi yes your ip is very likely to change when you access your blog from different locations. you can get to know the ip address of your boyfriend’s and include that in the white list, where as accessing admin from other places with wireless connection may not be possible.

      If you are likely to access admin from multiple locations I highly recommend not to use this one. Changing your pass frequently and updating your wordpress whenever new updates are available should be more than enough.

      Regards

  • http://www.harshitsinghal.com Harshit Singhal

    Well, nice tip but it’s more useful for bloggers from foreign countries since the IP address of Indian users are generally dynamic and it could lead to more problems rather than help.