With an .htaccess file, you'll specify how the web server which deals with the requests to your Internet sites should act a number of cases. This is a text file with directives that are performed when an individual tries to open your site and what happens next is determined by the content of the file. For example, you could block a particular IP address from opening the site, therefore the server will decline your visitor’s request, or you can forward your domain to some other URL, so the server will redirect the visitor to the new web address. You could also use custom error pages or protect any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven apps, such as Drupal, Joomla and WordPress, use an .htaccess file to operate properly.