password protect a page

dreamweaver cs3 how to password a page

Page 1 of 1

3 Replies - 5764 Views - Last Post: 21 January 2010 - 02:48 PM

#1 zgirl  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-November 09

password protect a page

Post icon  Posted 20 January 2010 - 12:21 PM

I have dreamweaver cs3 and would like to password protect a page. How do I do this?
Is This A Good Question/Topic? 0
  • +

Replies To: password protect a page

#2 Excavator  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 20
  • View blog
  • Posts: 59
  • Joined: 10-December 06

Re: password protect a page

Posted 20 January 2010 - 12:48 PM

Hello zgirl,
Have you tried anything yet?

http://www.google.co...r...amp;ie=&oe=
Was This Post Helpful? 0
  • +
  • -

#3 markhazlett9  Icon User is offline

  • Coding is a lifestyle
  • member icon

Reputation: 60
  • View blog
  • Posts: 1,666
  • Joined: 12-July 08

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
Was This Post Helpful? 0
  • +
  • -

#4 jordangomm  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 6
  • View blog
  • Posts: 24
  • Joined: 12-January 10

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:

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

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1