With an .htaccess file, you will determine how the server which handles the requests to your Internet sites should act in different scenarios. This is a text file with directives that are carried out when someone tries to open your Internet site and what happens next depends on the content of the file. For instance, you can block a certain IP address from accessing the Internet site, which means that the server will decline the visitor’s request, or you can redirect your domain to some other URL, so the server will direct the visitor to the new web address. You could also use customized error pages or preserve any part of your website with a password, if you place an .htaccess file inside the correct folder. Many widespread script-driven apps, such as WordPress, Drupal™ and Joomla™, use an .htaccess file to operate properly.