With an .htaccess file, you will define how the web server which deals with the requests to your web sites should act in different occasions. This is a text file with directives that are executed when somebody tries to open your website and what happens next will depend on the content of the file. As an example, you could block a certain IP address from opening your website, therefore 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 could also use personalized error pages or shield 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 Joomla™, WordPress and Drupal™, use an .htaccess file to operate properly.