With an .htaccess file, you can define how the web server that deals with the requests to your web sites should act in a variety of situations. This is a text file with directives that are carried out when somebody tries to open your website and what happens next is determined by the content of the file. As an example, you can block a certain IP address from accessing your website, so the server will decline your visitor’s request, or you can forward your domain to another URL, so the server may direct the visitor to the new web address. You can also use personalized error pages or shield any part of your site with a password, if you place an .htaccess file inside the correct folder. Many widely used script-driven apps, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to work properly.