A askforanswer New member Joined Dec 2, 2005 Messages 1 Dec 2, 2005 #1 that mean need a password to access to the page, Thanks
jmstacey Verified User Joined Feb 12, 2004 Messages 3,887 Location Colorado Dec 2, 2005 #2 You can protect an entire directory: http://site-helper.com/misc.html#password Depending on the nature of your scripts it's also possible to implement your own authorization system in php, perl, python, etc.
You can protect an entire directory: http://site-helper.com/misc.html#password Depending on the nature of your scripts it's also possible to implement your own authorization system in php, perl, python, etc.
R ragus New member Joined Dec 3, 2005 Messages 1 Dec 3, 2005 #3 how to restrict access to a html page using a login and password? thanks
jmstacey Verified User Joined Feb 12, 2004 Messages 3,887 Location Colorado Dec 3, 2005 #4 If you only want to protect a single file instead of a Directory, you should probably search google on howto create the necassary .htaccess files.
If you only want to protect a single file instead of a Directory, you should probably search google on howto create the necassary .htaccess files.
V vod Verified User Joined Oct 25, 2005 Messages 129 Dec 6, 2005 #5 Here you go: 1. Open any plain text editor 2. Copy and paste the content below 3. Save it as .htaccess 4. Upload to the directory where the file resides <FilesMatch "filename.html"> AuthName "Restricted Area" AuthType Basic AuthUserFile /path/to/.htpasswd require valid-user </FilesMatch> nb: replace FILENAME.HTML with the file you want to protect replace PATH/TO/.htpassword with the location of your htpasswd file. Nigel
Here you go: 1. Open any plain text editor 2. Copy and paste the content below 3. Save it as .htaccess 4. Upload to the directory where the file resides <FilesMatch "filename.html"> AuthName "Restricted Area" AuthType Basic AuthUserFile /path/to/.htpasswd require valid-user </FilesMatch> nb: replace FILENAME.HTML with the file you want to protect replace PATH/TO/.htpassword with the location of your htpasswd file. Nigel
Beata Verified User Joined Dec 15, 2005 Messages 10 Dec 15, 2005 #6 Hello How to protect file with password, not directory I found advice how to create .htaccess file, I did it but this isn;t good Help please
Hello How to protect file with password, not directory I found advice how to create .htaccess file, I did it but this isn;t good Help please
V vod Verified User Joined Oct 25, 2005 Messages 129 Dec 15, 2005 #7 what i have posted above will protect a file NOT a directory