With an .htaccess file, you shall determine how the server which handles the requests to your web sites have to act a number of cases. This is a text file with directives that are performed when someone tries to open your website and what happens next will depend on the content of the file. For example, you can block a particular IP address from accessing the Internet site, and the server will decline the visitor’s request, or you can redirect your domain to a different URL, so the server will direct the visitor to the new web address. You could also use custom error pages or secure any part of your site with a password, if you place an .htaccess file inside the correct folder. Many well-known script-driven apps, such as WordPress, Joomla™ and Drupal™, use an .htaccess file to work efficiently.