With an .htaccess file, you'll specify how the server which handles the requests to your Internet sites have to act in a variety of scenarios. This is a text file with directives that are executed when somebody tries to open your Internet site and what happens next will depend on the content of the file. As an illustration, you could block a specific IP address from accessing the website, therefore the server will decline your visitor’s request, or you can redirect your domain name to a different URL, so the server may redirect the visitor to the new web address. You may also use custom 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 applications, like Drupal™, Joomla™ and WordPress, use an .htaccess file to function efficiently.