When my blog was hacked, I realized that my directories were accessible to anyone, even bots, which is really a big loophole for security. As then the other person trying to hack in to your blog knows which plugins or what important files you have kept safe in your directories.
To avoid anyone access your installation folders or reveal loophole in security this simple hack comes in handy.
Note: Do take backup of your .htaccess(hypertext access) file.
01. Search for a file named .htaccess(hypertext access) in the webroot of your server (FTP) and can be easily edited using any text editor (like Notepad). Open it and add below code in it:
02. Save and you are done.
This concludes this simple and useful tutorial. Hope you like it.
If you enjoy this post, make sure you 





