Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Database

Status
Not open for further replies.

Krom

Technical User
Apr 30, 2002
3
AU
Hi all,
I'm not sure if this is entirely the right section to post this, but i will start here anyhow.

The problem i have is straight forward. I want to set up a password login are so that to access example.html they first need to enter a password... Now this was fine i thought i'd just use .htaccess and .htpasswd. But i found out its a windows server, and to my knowledge this wont work? (please correct me if im wrong!) So i looked at my next option, my host has a secure database section on the server, so i thought i would create a password database and have a little code that refered to that.

For this i was thinking of firstly checking if the username exists in the database, and if that passes checking if the corresponding password is correct.

Now this would all be fine, but then i get my new problem! Using the database option how do i restrict access to the page. What i mean is once they have visited once, they know what the .html page is and they can just type that in and goto that, bypassing the password system, unlike .htaccess where it would not let you.

Please help, i'm at a loss here. Is this a good way to do it, how should i do it, or am i missing a really simple way of doing it, even though it is a windows server!

Thanks in Advance.
 
What server is it? IIS? Whatever server it is, regardless of the OS - it should be capable of directory access restriction. And heck, while you at his computer - why not pop in a copy of apache and change his whole world!!!! That would be hilarious.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top