With an .htaccess file, you'll specify how the server that deals with the requests to your Internet sites should act in various occasions. This is a text file with directives that are performed when an individual tries to open your Internet site and what happens next is determined by the content of the file. For example, you may block a particular IP address from accessing your website, and the server will decline your visitor’s request, or you can forward your domain name to an alternative URL, so the server will redirect the visitor to the new web address. Also you can use tailor-made error pages or protect any part of your site with a password, if you place an .htaccess file in the correct folder. Many popular script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to work correctly.