With an .htaccess file, you can define how the server that handles the requests to your Internet sites have to act in various occasions. This is a text file with directives that are performed when someone tries to open your Internet site and what happens next depends on the content of the file. As an illustration, you can block a certain IP address from opening your website, so the server will decline the visitor’s request, or you can forward your domain to an alternative URL, so the server may redirect 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 widespread script-driven apps, like Joomla™, Drupal™ and WordPress, use an .htaccess file to work correctly.