With an .htaccess file, you can determine how the server which addresses the requests to your web sites have to act in various cases. This is a text file with directives that are performed when an individual tries to open your website and what happens next will depend on the content of the file. As an example, you may block a certain IP address from accessing the Internet site, which means that the server will decline your visitor’s request, or you can redirect your domain name to an alternative URL, so the server may direct the visitor to the new web address. You could also use tailor-made error pages or protect any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to work properly.