

Tells the web server where to find the username/password file. Sets the title of the username/password box that will popup when someone tries to view your protected page. Let’s go through the parameters you’ve just set:ĭefines the type of authentication the web server will use, ‘Basic’ is perfectly adequate for what we need. Enter the following lines of text within the file:.


htaccess (without any additional file extension). Create a file using a text editor such as Notepad or TextEdit.htaccess file to tell the web server what folder you want to protect and what username/password file to use. ht, but it’s recommended that the password file is not in a publicly accessible folder. Our hosting servers will block web access to any files beginning with. Please note: Instructions on uploading the file to your website can be found here.įor extra security make sure that it is outside of your web folder so that it can never be accessed by someone going to.
