With an .htaccess file, you can determine how the web server that addresses the requests to your websites have to act in different scenarios. This is a text file with directives that are executed when someone tries to open your site and what happens next will depend on the content of the file. As an example, you can block a particular IP address from opening the website, therefore the server will decline your visitor’s request, or you can redirect your domain name to some other URL, so the server may direct the visitor to the new web address. You may also use custom error pages or secure any part of your site with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven applications, such as Drupal™, Joomla™ and WordPress, use an .htaccess file to operate correctly.