With an .htaccess file, you can determine how the server that deals with the requests to your Internet sites have to act in various occasions. This is a text file with directives that are carried out when someone tries to open your website and what happens next will depend on the content of the file. As an illustration, you could block a certain IP address from accessing the website, so the server will decline the visitor’s request, or you can forward your domain name to another URL, so the server may direct the visitor to the new web address. You can 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 widely used script-driven applications, including WordPress, Drupal™ and Joomla™, use an .htaccess file to function efficiently.