944,111 Members | Top Members by Rank

Ad:
Dec 7th, 2006
0

Enter password to access folder on website

Expand Post »
Hi all,

i need a password script for one page which takes you to the next page. I dont have access to a database so i need it to be stored either in a txt filfe or in the script itself. Thanks!!

Max :mrgreen:
Similar Threads
Reputation Points: 32
Solved Threads: 3
Posting Whiz in Training
MaxMumford is offline Offline
228 posts
since Oct 2006
Dec 7th, 2006
0

Re: Enter password to access folder on website

Reputation Points: 32
Solved Threads: 3
Posting Whiz in Training
MaxMumford is offline Offline
228 posts
since Oct 2006
Dec 9th, 2006
0

Re: Enter password to access folder on website

But one thing, if you store your password in a text file the it is surely insecure. Storing it in script(in a server-side one) would secure to an extent cause others may not see your source-code hence the password, but you will always have to change the code whenever you want to change the password. By changin the code I mean changing the variable that stores the string.
Reputation Points: 85
Solved Threads: 42
Nearly a Posting Virtuoso
vishesh is offline Offline
1,362 posts
since Oct 2006
Dec 9th, 2006
0

Re: Enter password to access folder on website

the password in the script is encrypted. Thanks anyway. Max
Reputation Points: 32
Solved Threads: 3
Posting Whiz in Training
MaxMumford is offline Offline
228 posts
since Oct 2006
Dec 9th, 2006
0

Re: Enter password to access folder on website

that code is actually not too bad, i had a quick look at it yesterday... it's more secure than just "put a javascript index infront of private files" it works because no outsider knows the filename of the private file: and the encrypted password is used in the name of the private file... EDIT: the password isn't stored but a password that doesn't match up with the filename after a relatively simple 1-way cryptogram won't open any pages.

it might prove totally unmanageable for more than one or two pages though, and it's not a perfectly secure solution.
Last edited by MattEvans; Dec 9th, 2006 at 10:09 pm.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Linking
Next Thread in HTML and CSS Forum Timeline: Including header file using HTML





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC