With an .htaccess file, you can determine 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 an individual tries to open your Internet site and what happens next is determined by the content of the file. For example, you may block a certain IP address from accessing your website, which means that the server will decline your visitor’s request, or you can forward your domain to some other URL, so the server may direct the visitor to the new web address. You may also use custom-made error pages or shield any part of your website with a password, if you place an .htaccess file in the correct folder. Many well-known script-driven apps, like WordPress, Drupal™ and Joomla™, use an .htaccess file to function properly.