With an .htaccess file, you'll define how the web server that manages the requests to your websites should act a number of cases. This is a text file with directives that are performed when somebody tries to open your Internet site and what happens next will depend on the content of the file. For instance, you can block a particular IP address from opening the site, therefore 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. Also you can use custom-made error pages or shield any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven apps, like Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.