With an .htaccess file, you'll define how the web server that handles the requests to your web sites have to act a number of situations. This is a text file with directives that are carried out when someone tries to open your Internet site and what happens next will depend on the content of the file. For example, you can block a particular IP address from accessing the site, which means that the server will decline the visitor’s request, or you can forward your domain name to a different URL, so the server will redirect the visitor to the new web address. You may also use tailor-made error pages or secure any part of your website with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to operate efficiently.