With an .htaccess file, you'll determine how the web server that manages the requests to your websites should act a number of situations. This is a text file with directives that are executed when somebody tries to open your site and what happens next depends on the content of the file. As an illustration, you could block a particular IP address from accessing the Internet site, so the server will decline the visitor’s request, or you can redirect your domain name to an alternative URL, so the server will redirect the visitor to the new web address. You can also use custom error pages or preserve any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, like Joomla™, Drupal™ and WordPress, use an .htaccess file to work correctly.