With an .htaccess file, you'll specify how the web server that deals with the requests to your web sites have to act in various occasions. This is a text file with directives that are carried out when someone tries to open your Internet site and what happens next depends on the content of the file. For instance, you could block a specific IP address from accessing the website, which means that the server will decline your visitor’s request, or you can redirect your domain name to another URL, so the server may redirect the visitor to the new web address. You could also use custom error pages or secure any part of your site with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven applications, including WordPress, Joomla™ and Drupal™, use an .htaccess file to operate efficiently.