With an .htaccess file, you'll determine how the web server that manages the requests to your websites should act in different situations. This is a text file with directives that are carried out when somebody tries to open your website and what happens next depends on the content of the file. For instance, you may block a particular IP address from opening your website, therefore the server will decline the visitor’s request, or you can forward your domain to another URL, so the server may direct the visitor to the new web address. You could also use customized error pages or shield any part of your website with a password, if you place an .htaccess file in the correct folder. Many popular script-driven apps, such as WordPress, Joomla™ and Drupal™, use an .htaccess file to work correctly.