With an .htaccess file, you'll specify how the server that handles the requests to your websites must act in a variety of scenarios. This is a text file with directives that are performed when someone tries to open your website and what happens next depends on the content of the file. For example, you can block a specific IP address from opening the Internet site, which means that the server will decline the visitor’s request, or you can redirect your domain to an alternative URL, so the server will redirect the visitor to the new web address. Also you can use customized error pages or protect any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many popular script-driven apps, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to operate properly.