With an .htaccess file, you'll determine how the web server which addresses the requests to your web sites have to act in a variety of cases. This is a text file with directives that are executed when someone 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 site, so the server will decline the visitor’s request, or you can redirect your domain to another URL, so the server may direct the visitor to the new web address. Also you can use customized error pages or protect any part of your website with a password, if you place an .htaccess file in the correct folder. Many widely used script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to function properly.