With an .htaccess file, you will specify how the server which manages the requests to your websites have to act in various occasions. This is a text file with directives that are carried out when an individual tries to open your site and what happens next is determined by the content of the file. For example, you can block a particular IP address from accessing your website, which means that the server will decline the visitor’s request, or you can forward your domain name to some other URL, so the server may redirect the visitor to the new web address. You may also use personalized error pages or protect any part of your site with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven applications, like WordPress, Joomla™ and Drupal™, use an .htaccess file to work correctly.