PDA

View Full Version : help with dreamweaver for online proofing


entrefoto
1st of December 2006 (Fri), 13:16
I am going to start using online proofing but i want to password protect those pages for the couple only to view. How do you password protect pages using dreamweaver 8?

Throlkim
1st of December 2006 (Fri), 13:22
You may have a bit of trouble doing it directly in Dreamweaver, but I can show you a quick and simple method if you have full FTP access to your server.

http://www.javascriptkit.com/howto/htaccess3.shtml

Ok, so it's not as easy as you'd hope, but the alternatives are some not-too-secure javascript, or to do it in PHP/ASP/etc.
Basically you'd create a new directory for each wedding, and make those couple of files (the thing to encrypt the password is http://www.tools.dynamicdrive.com/password/)
You actually only need one .htpasswd, and in the .htaccess you can choose which usernames have access to that directory.
Here's a quick example generated by that password link:

.htaccess:

AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/mysite/fancyplace/.htpasswd
AuthGroupFile /dev/null
require user thehulk


.htpasswd:

captainfunk:HAvC8TuWclNek
thehulk:6rTTznGIIZfG.

entrefoto
1st of December 2006 (Fri), 13:44
thanks for the help, in step one i have my user name and password. what do i do in step 2? and step 3 i list the names of the pages i want to be protected right?

Throlkim
1st of December 2006 (Fri), 13:54
Step 2 is the directory path to the .htpasswd file. It might be worth asking your host if you can have the path to your domain, as I'm not sure what scripting languages you're allowed.

Step 3 you can list the names of the pages you want protected, or leave it blank to protect the whole directory the .htaccess file is in.

If you decide to have multiple wedding proofs up for different families, make a new directory for each project, and copy the .htaccess file over into it (along with the webpage :D), and for each .htaccess make sure you specify which users you want to be able to access that directory. Change the following line:

Change
"require valid-user"

To
"require user thehulk"

Obviously, change thehulk to the username you want to have access :)

entrefoto
1st of December 2006 (Fri), 14:09
when i log into my control panel on my host's website, there is the path to perl, is that what i need?

Throlkim
1st of December 2006 (Fri), 14:13
Uh, tell ya what, send me a message on either MSN (without_boundaries_fws@hotmail.com), AIM (beholdthehand), or a PM here, and show me the path you have - it might be close to what you need.
What you need is the path to your root directory.

tim
1st of December 2006 (Fri), 16:41
Use the web server to password protect the directory. Most web accounts come with a control panel that makes it easy.

Throlkim
1st of December 2006 (Fri), 17:15
Aye, it usually uses the same method I just described - but automated. We managed to sort it out though, so all is good :D

entrefoto
1st of December 2006 (Fri), 22:05
After we got it sorted out is when i noticed that there was an option in the control panel of the host server :)

Throlkim
2nd of December 2006 (Sat), 06:28
Hehe, well at least you know how to do it by hand now! :D

sageone
2nd of December 2006 (Sat), 06:54
For months, I've been wondering how to do this and I just didn't want to mess with code. Low and behind, I read this thread, check my control panel and right there is a security function. "Holy sh*t," I said...POTN does it again!

entrefoto
2nd of December 2006 (Sat), 23:32
For months, I've been wondering how to do this and I just didn't want to mess with code. Low and behind, I read this thread, check my control panel and right there is a security function. "Holy sh*t," I said...POTN does it again!

POTN sure is a beautiful thing!