With an .htaccess file, you'll determine how the server that handles the requests to your websites have to act in a variety of situations. This is a text file with directives that are performed when somebody tries to open your site and what happens next will depend on the content of the file. For instance, you can block a specific IP address from opening the Internet site, which means that the server will decline your visitor’s request, or you can forward your domain to an alternative URL, so the server may direct the visitor to the new web address. You may also use personalized error pages or protect any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven apps, including Joomla™, WordPress and Drupal™, use an .htaccess file to work correctly.