With an .htaccess file, you'll specify how the web server that manages the requests to your websites must act in different cases. This is a text file with directives that are carried out when an individual tries to open your website and what happens next will depend on the content of the file. For example, you can block a particular IP address from accessing the website, and the server will decline your visitor’s request, or you can redirect your domain name to some other URL, so the server may redirect the visitor to the new web address. You can also use custom error pages or protect any part of your Internet site with a password, if you place an .htaccess file in the correct folder. Many popular script-driven apps, such as WordPress, Joomla™ and Drupal™, use an .htaccess file to operate properly.