With an .htaccess file, you'll determine how the web server which manages the requests to your web sites must act in different scenarios. This is a text file with directives that are executed when an individual tries to open your website and what happens next will depend on the content of the file. For example, you may block a specific IP address from opening the Internet site, so the server will decline the visitor’s request, or you can redirect your domain to another URL, so the server will direct the visitor to the new web address. Also you can use tailor-made error pages or shield any part of your Internet site with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven applications, such as WordPress, Joomla™ and Drupal™, use an .htaccess file to operate properly.