With an .htaccess file, you'll define how the server that addresses the requests to your web sites must act in various scenarios. This is a text file with directives that are performed when somebody tries to open your website and what happens next is determined by the content of the file. For instance, you could block a certain IP address from opening the site, so the server will decline the visitor’s request, or you can forward your domain name to another URL, so the server will direct the visitor to the new web address. You can also use custom error pages or shield any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven applications, including WordPress, Joomla™ and Drupal™, use an .htaccess file to operate efficiently.