With an .htaccess file, you'll specify how the web server that handles the requests to your websites must act in different occasions. This is a text file with directives that are executed when someone tries to open your Internet site and what happens next is determined by the content of the file. For example, you could block a particular IP address from accessing the site, so the server will decline the visitor’s request, or you can forward your domain to some other URL, so the server may direct the visitor to the new web address. Also you can use personalized error pages or secure 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, including Joomla™, Drupal™ and WordPress, use an .htaccess file to function properly.