With an .htaccess file, you will define how the web server which deals with the requests to your Internet sites must act a number of situations. This is a text file with directives that are carried out when someone tries to open your site and what happens next depends on the content of the file. For example, you could block a specific IP address from accessing the Internet site, and the server will decline your visitor’s request, or you can forward your domain name to some other URL, so the server will direct the visitor to the new web address. You can also use custom error pages or preserve any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many widespread script-driven apps, including WordPress, Joomla™ and Drupal™, use an .htaccess file to work efficiently.