With an .htaccess file, you can specify how the server that manages the requests to your Internet sites have to act in various scenarios. This is a text file with directives that are carried out when someone tries to open your website and what happens next depends on the content of the file. As an illustration, you may block a certain IP address from opening the site, so the server will decline the visitor’s request, or you can redirect your domain name to a different URL, so the server will redirect the visitor to the new web address. Also you can use custom 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 apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to work correctly.