With an .htaccess file, you'll determine how the server that deals with 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. As an illustration, you could block a specific IP address from opening the website, therefore the server will decline your visitor’s request, or you can forward your domain to a different URL, so the server may redirect the visitor to the new web address. You may also use tailor-made error pages or shield any part of your site with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven applications, such as Drupal™, Joomla™ and WordPress, use an .htaccess file to work properly.