With an .htaccess file, you shall define how the server that handles 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 somebody tries to open your website and what happens next will depend on the content of the file. As an example, you can block a specific IP address from opening the Internet site, which means that the server will decline your visitor’s request, or you can forward your domain name to a different URL, so the server may redirect the visitor to the new web address. Also you can use custom error pages or protect any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to operate efficiently.