VICNET Help is open from
9am - 5pm weekdays
Call Us: 8664 7001
Toll Free from Country Victoria:
1800 629 835
Fax: 9639 2175
Library & Broadband Customers with
24hr Support please call the
direct paging service immediately to
report any outages.
Sometimes when designing a Web page or site you might want to restrict access to the page/site, or part thereof. For example you may have a members only section of your site or perhaps a download section containing files you would like to be acessible by a limited circle of people. The best way to do this is to apply username/password based access restriction to your Web page/site.
The following procedure is not 100% secure however it will prevent the average person from accessing the section of your site that you choose to protect.
To password protect a section of a Web site hosted by Vicnet, you need to create two files named:
AuthName "Prompt Text" AuthType Basic AuthUserFile path/.htpasswd require valid-user

For example, if you were the Web designer for http://home.vicnet.net.au/~jcitizen/ you would upload an htaccess.txt file into a directory such as /public_html/members/. The htaccess.txt file would look something like this:

htaccess.txt
to:
.htaccess
Note: If you cannot see these files after renaming them, your FTP program is not configured correctly. Please ensure your FTP program is configured to show hidden files.

paul:footy andrew:gamer anthony:linnix
Usernames must be unique and should not contain any special characters like colons, quotes, semicolons etc.

Rename the file from:
htpasswd.txt
to
.htpasswd
i.e. Nothing should precede the "." and there should not be any filename extension such as .txt or .doc
Congratulations, your Web directory should now be password restricted! To remove the restriction, remove the .htaccess file in the directory that's restricted.