With an .htaccess file, you'll define how the web server which handles the requests to your web sites should act a number of occasions. This is a text file with directives that are executed when somebody tries to open your Internet site and what happens next is determined by the content of the file. For example, you could block a particular IP address from opening the website, which means that the server will decline the visitor’s request, or you can redirect your domain name to an alternative URL, so the server may redirect the visitor to the new web address. You could also use tailor-made error pages or secure any part of your website with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven applications, like Joomla™, WordPress and Drupal™, use an .htaccess file to work correctly.