With an .htaccess file, you can define how the web server that deals with the requests to your websites should act in various situations. This is a text file with directives that are carried out when somebody tries to open your website and what happens next is determined by the content of the file. As an illustration, you may block a certain IP address from accessing the website, and the server will decline your 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 may also use customized error pages or shield any part of your site with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven apps, including Joomla™, Drupal™ and WordPress, use an .htaccess file to function efficiently.