You have started a blog to share your opinion with the World Wide Web. Someone stumbles upon one of your articles. He likes it, and posts it on Digg. Now it gets everyone's attention. Visitors come pouring into your site. Your revenue starts to go up. Definitely good news! But now there is a catch. You are now the target of the 'bad crowd' of the Internet, spammers, hackers and leechers.
It's time to toughen up your innocent little Wordpress site. The .htaccess file is the easiest and the cheapest (actually it's free!) solution to secure a Wordpress blog.
What is a .htaccess File?
The .htaccess file is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn "loaded via the Apache Web Server", then the .htaccess file is detected and executed by the Apache Web Server software. It is often used to specify the security restrictions for the particular directory.
In this article I'm going to show you how to strengthen your site's security by adding/changing a few lines in this file.
Before you make any changes, it might be a good idea to take a backup ...