With an .htaccess file, you'll determine how the web server which handles the requests to your Internet sites must act in various cases. This is a text file with directives that are carried out when somebody tries to open your site and what happens next is determined by the content of the file. For example, you could block a certain IP address from opening the website, which means that the server will decline your visitor’s request, or you can forward your domain to another URL, so the server will redirect the visitor to the new web address. You can also use custom-made error pages or preserve any part of your website with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven applications, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to function efficiently.