PDA

View Full Version : Easy secure webpages pointers required.



Freakshow
22nd June 2007, 10:16
I am attempting to add a extra page to our site which is password protected. All I am after is when you click on the link the windows pop up appears and bingo you are in. All the help menus on dreamweaver point to PHP database and login screens etc. Is there an easier way to do this?

Are there any online tutorials that you would recomend or point me to??

All suggestions welcome so long as no humans sacrafice is required!

Cheers

TerminalAddict
22nd June 2007, 10:18
.htaccess
basic apache auth

.htaccess


AuthUserFile /path/to/password/file/.htpasswd
AuthGroupFile /dev/null
AuthName "My password protected area"
AuthType Basic
< Limit GET>
require valid-user
< /Limit>

Edit: the forum won't let me post proper code .. .so remove the spaces between "< Limit" and "< /"

.htpasswd


paul:asdivhjaodhvihewrv
shane:sadvasdvrhtn
john:rtbrtbwrtgb

yod
22nd June 2007, 10:49
yup terminal is on the right track - edit the .htxxxx files

or use a scripting language PHP/ASP/etc and db as you mentioned - i can give you code for this if you wanna go down that track....