Community Discussion

How to keep your wordpress blog Safe & Secure - Part 3

July 4, 2013
shek Author Level 1

Write the reason you're deleting this FAQ

In this chapter of keeping your wordpress blog safe and secure, I'll talk about keeping your sensitive wordpress folders hidden or not easily accessible to hackers. You can do it by locking you wordpress folder as well. Without further delay, I'll start listing the tips you need to follow to lock your wordpress folders.
How to keep your wordpress blog Safe & Secure - Part 3

  • Hide Directory Listing: By default wordpress blogs show folder structure in URL, something like http://<sitename>.wordpress.com/MyFolder. When a smart programmers/hacker sees this, he/she can easily guess your folder structure. So, you have to hide it. You can hide by embedding following code in your index.php page.
    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://<sitename>" );
    >
    How to keep your wordpress blog Safe & Secure - Part 3
    Note: If you don't have any index.php then please create one and insert the code and upload it in /wp-includes folder, to keep your folder structure hidden.
  • Protect your wp-admin Folder: wp-admin folder is one of the most important folder in your wordpress blog. It has every detail which a admin would like to know. Once hacker cracks into this folder, he can be admin of your blog ! So, protecting this folder is extremely important. Only standard way to protect this folder is by allowing only authenticated users to view/edit that folder.
    How to keep your wordpress blog Safe & Secure - Part 3
    Howdo you do it? Just follow simple steps given below,
    1. Goto http://www.htaccesstools.com/htpasswd-generator/ site. Enter the user credentials of a user whom you want to give access to wp-admin folder in the text box given. Site will provide you with a .htpasswd file.
      The uses MD5 hashing algorithm. It is world known fact that MD5 algorithm is almost unbreakable. So, you needn't worry about .htpasswd file getting cracked/hacked.
    2. Visit http://www.htaccesstools.com/htaccess-authentication/ site. Follow the instructions given in that site and it will give you a .htaccess file. Basically this file will have path for .htpasswd file in encrypted format.
      How to keep your wordpress blog Safe & Secure - Part 3

    3. Copy-paste .htpasswd and .htaccess file in wp-admin folder. Please don't overwrite these files, if they are already present in your wp-admin folder. Understand what the new .htpasswd and .htaccess files has and then open existing files to edit accordingly. It is manual process, you have to do it manually.
    4. Now, you are done ! This trick will give extra security to your wp-admin folder. It is like double pass security system for a hacker to crack.


I hope this tutorial did gave you some insight on how to keep your wordpress blog secure. I'll be posting last installment of this tutorial soon. So, stay tuned to Webmaster Tutorials for more updates.
18

Comments 18

July 7, 2013
blueeyes
Thanks Shek. Wordpress will be a lot safer using these tips.

Enter a reason for deleting this comment

July 15, 2013
angie828
Great tips you have provided here.

Enter a reason for deleting this comment

July 17, 2013
July 20, 2013
angie828
Looking forward to reading it Shek!

Enter a reason for deleting this comment

August 4, 2013
ralph101
Cool post...someone will get some good use out of it.

Enter a reason for deleting this comment

October 22, 2013
loulou
Keeping a blog secure is super important.

Enter a reason for deleting this comment

October 24, 2013
twilight
Yes Lou lou is it very important to do and some just do not take the proper steps to do so.

Enter a reason for deleting this comment

November 4, 2013
evie
Great part 3. Nice one!

Enter a reason for deleting this comment

November 9, 2013
blueeyes
Shek you always have great tips for us! Love them!

Enter a reason for deleting this comment

November 12, 2013
tionna
Keeping it safe and secure should be something that everyone wants.

Enter a reason for deleting this comment

November 21, 2013
evie
Being safe is very important. thanks for this helpful post.

Enter a reason for deleting this comment

November 25, 2013
tangee
Shek you are the man. Great helpful tips once again!

Enter a reason for deleting this comment

November 30, 2013
haleystar
tank you

Enter a reason for deleting this comment

December 6, 2013
soundcloud2
First thing to do is update to the latest Wordpress version. Wordpress releases an update most time when a breach has been uncovered.

Enter a reason for deleting this comment

December 23, 2013
Kat1
Great tips you have provided us here. Thanks.

Enter a reason for deleting this comment

March 2, 2014
evie
thanks Shek. You gave another awesome tutorial.

Enter a reason for deleting this comment

July 14, 2014
mikestang746
Thank you for the great tutorial.

Enter a reason for deleting this comment

July 23, 2014
dragonhunter95
thank you.

Enter a reason for deleting this comment

Please login or sign up to leave a commentJoin