With an .htaccess file, you'll specify how the web server that deals with the requests to your websites have to act a number of situations. This is a text file with directives that are carried out when an individual tries to open your site and what happens next will depend on the content of the file. As an example, you could block a specific IP address from accessing your website, therefore the server will decline your visitor’s request, or you can forward your domain name to a different URL, so the server may redirect the visitor to the new web address. You can also use custom-made error pages or preserve any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven apps, such as Joomla™, WordPress and Drupal™, use an .htaccess file to function efficiently.