I have dreamweaver cs3 and would like to password protect a page. How do I do this?
password protect a pagedreamweaver cs3 how to password a page
Page 1 of 1
3 Replies - 4276 Views - Last Post: 21 January 2010 - 02:48 PM
Replies To: password protect a page
#2
Re: password protect a page
Posted 20 January 2010 - 12:48 PM
#3
Re: password protect a page
Posted 20 January 2010 - 04:17 PM
If you just want a password protected directory you don't do that in dreamweaver. That's all done using Apache config files. I'm guessing you are just running your site locally? When you get Apache up and running and launch it then you will be able to password protect a specific directory.
I think this is what you're looking for.
Cheers
I think this is what you're looking for.
Cheers
#4
Re: password protect a page
Posted 21 January 2010 - 02:48 PM
Hi zgirl,
Create a file in the same folder as the file you want to protect called ".htaccess" no file name, just extension. If you cant (some computer wont let you), call it htaccess.txt then rename it upon upload.
Add this code:
Then, in the same folder, create a file called ".htpasswd" no file name, just extension. If you cant (some computer wont let you), call it htpasswd.txt then rename it upon upload.
Put this code in it:
For the purpose of this example, the username and password are both "zgirl". You can generate your own through your shell, but its easier to go to http://www.tools.dyn...e.com/password/ to do it.
Then when you visit the page, you will prompted for a username and password.
Did I miss anything? Something not working? Just let me know
-Jordan Gomm
Create a file in the same folder as the file you want to protect called ".htaccess" no file name, just extension. If you cant (some computer wont let you), call it htaccess.txt then rename it upon upload.
Add this code:
AuthName "Restricted Area" AuthType Basic AuthUserFile /home/YOUR_HOME_DIRECTORY/DIRECTORY_OF_PROTECTED_FILE/.htpasswd AuthGroupFile /dev/null <Files NAMEOFFILETOPROTECT.html> require valid-user </Files>
Then, in the same folder, create a file called ".htpasswd" no file name, just extension. If you cant (some computer wont let you), call it htpasswd.txt then rename it upon upload.
Put this code in it:
zgirl:It9aDaPIStrGU
For the purpose of this example, the username and password are both "zgirl". You can generate your own through your shell, but its easier to go to http://www.tools.dyn...e.com/password/ to do it.
Then when you visit the page, you will prompted for a username and password.
Did I miss anything? Something not working? Just let me know
-Jordan Gomm
This post has been edited by jordangomm: 21 January 2010 - 02:50 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|