With an .htaccess file, you can determine 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 someone tries to open your Internet site and what happens next is determined by the content of the file. As an illustration, you could block a particular IP address from opening the website, and the server will decline your visitor’s request, or you can forward your domain to an alternative URL, so the server will direct the visitor to the new web address. You may also use tailor-made error pages or protect any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven applications, such as Joomla™, Drupal™ and WordPress, use an .htaccess file to operate correctly.