PDA

View Full Version : how to password protect website?



gfunkera
May 11th, 2009, 12:57 AM
how can i password protect my website with multiple users?

Meson
May 11th, 2009, 12:58 AM
how can i password protect my website with multiple users?

For a quick fix, if you're not the admin, you can use a .htaccess and .htpasswd file.

gfunkera
May 11th, 2009, 02:09 AM
i am the admin..

i dont know wher those files are.. do i have to create them? can i create different ones in different places? how will the user be asked for credentials? do i have to write it in the html?

is there a way to log all accesses to my site and/or login attempts?

yaaarrrgg
May 11th, 2009, 04:35 AM
Are you using apache? If you're not using apache then you'll need a different method. Here's a link that helps create these files:

http://tools.dynamicdrive.com/password/

This can be dropped in the directory that you want to protect.

Apache should give you an access log.

This is basic authentication (pops up a prompt). If you need something fancier, either aesthetically or with more fine-grained logging, it will likely require web programming and a database.