With an .htaccess file, you can define how the server which deals with the requests to your Internet sites have to act in a variety of occasions. This is a text file with directives that are performed when an individual tries to open your site and what happens next is determined by the content of the file. For instance, you may block a specific IP address from accessing the website, so the server will decline the visitor’s request, or you can forward your domain name to some other URL, so the server may redirect the visitor to the new web address. You could also use custom error pages or protect any part of your site with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to function correctly.