With an .htaccess file, you can define how the web server which manages the requests to your web sites have to act in different occasions. This is a text file with directives that are carried out when an individual tries to open your Internet site and what happens next is determined by the content of the file. For instance, you may block a certain IP address from opening the site, and the server will decline your visitor’s request, or you can forward your domain to an alternative URL, so the server will redirect the visitor to the new web address. You could also use tailor-made error pages or protect any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many popular script-driven applications, such as Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.