Password protect a directory with basic HTTP authentication. This only works on
1 Enter the path to the directory that you want to protect.
Something like: home/usr/websites.
If you have no idea what this is, you can save this php code <?php echo dirname (__FILE__); ?> to a file with the extention .php
and upload it to the directory that you want to protect. Go to the file in your browser and you should see
the path to that directory. Copy and paste it here.
<?php echo dirname (__FILE__); ?>
2 Enter a display message to the user.
3 Enter usernames and passwords that can access the directory.
Type the username and password, separated by a space, on one line. Enter one username/password combination per line. Enter at least one username/password combination.
© Copyright 2007-2018 DirJournal Local Search. All Rights Reserved.