Page 1 of 1
to EvilCoder!
Posted: Fri Jan 31, 2003 3:12 pm
by Nik
http://www.nikolas.tk is my web page! How can i do it for when the user clicks one of my buttons that corresponds to programs to ask him for a username and pass popping a box?
Thanks!
Posted: Fri Jan 31, 2003 3:23 pm
by evilcoder
hmmnn you want a windows popup box to ask for a username and password? you would have to create a password protected directory and have an index page inside that with the linkson them, then the user can download asmuch as they want while they are inside it.
Posted: Fri Jan 31, 2003 3:25 pm
by Nik
Yes indeed but how am i supposes to accomplish that? especially for the password protected directory?
Posted: Fri Jan 31, 2003 4:22 pm
by evilcoder
have you looked in to using .htaccess and .htpasswd files?
http://www.javascriptkit.com/howto/htaccess.shtml
that will help you with htacess now this might help with .htpasswd
http://www.cts.wustl.edu/cts/help/web/a ... asswd.html
Posted: Sat Feb 01, 2003 5:49 am
by Nik
This is my .htaccess file but for somew reason when it prompts for authentication although i have configured .htpasswd is doesnt validate me!
And yes i have placed it correctly /home/nik/public_html/
AuthUserFile /home/nik/public_html/.htpasswd
AuthGroupFile /dev/null
AuthName "Πνευματικά Κείμενα"
AuthType Basic
require user nikos
require user nagia
Thanks!