Click to See Complete Forum and Search --> : Home Password Protection Login Coder
johnb
04-16-2003, 09:45 PM
Hello,
I was hoping I could get some additional help in
implementing this login coder.
Specifically, where do I put the code on my web site,
so that someone cant just view the source and enter?
And does the hosting site need to support any kind of
cgi or javascript to allow this to work?
I'm sorry I am fairly new to web site creation, I
actually pasted the code I was sent on to a blank
page, but when I view it on explore it shows
everything including the code! What portions of the
code do I paste on a page, and what portions are
stored at the hosting site, under any specific folder?
I just want the dialog box requesting user name and
password to show when someone tries to enter a certain
pages on web site. If I assign user id and passwords
where do I put those on the code, so that these people
can get in?
Your help would be greatly appreciated.
Sincerely,
John
:confused:
johnb
04-18-2003, 02:51 PM
I was refering to a javascript that was posted on this site:
http://javascript.internet.com/passwords/login-coder.html
maybe I'm confused is this not a javascript script to allow people into your web site?
DrDaMour
04-18-2003, 04:19 PM
although you could have a password, adn run it through an ecryption routine, then store that encrypted string in your java script, then anytime the password is entereed, encrypt it the same way, and compare against teh encrypted string.
i really doubt people will figure out how do decrypt smething if you use enough modulus. Obviously you are going to have to do some googling to learn about encrytpion. I woudl suggest starting at "hash functions"
DrDaMour
04-18-2003, 04:46 PM
yes i did look at it, but it's not storing the encrypted string the way i was talking about.
And it would be easier for him to start at teh bottom, then try to interpret that monster
DrDaMour
04-18-2003, 08:05 PM
yes i am aware what that script was doing, but again it wasn't like it was the stepping stone that the guy wanted.
johnb
04-19-2003, 05:23 PM
hey I appreciate both your inputs, just not sure still what to do. I dont think I have the expertise to play with the code and add to it, unless it was fairly simple. Maybe I should just try to finding another script? I was really looking for an easy to use implementation of a script for this type of application. What do all these paid membership sites use? Even if I have to load something on the server, as long as I can hopefully just to a cut a paste of the code into a CGI or javascript folder!
thanks for your help.
DrDaMour
04-20-2003, 12:26 AM
they all use server side languages, perl, c, php. for you to use these, your internet provider must support them.
Nevermore
04-20-2003, 03:32 AM
Would it be possible, in a JavaScript, to encrypt the page the code sends to in the source and then decipher it beforesending them there? Surely most people wouldn't get around that - you would have to know the URL already.
DrDaMour
04-20-2003, 11:30 AM
yeah, but writing a decrytion and encryption algorythm would really suck.
The best thign to do would be somethign like hits:
site=prompt('Enter Yo P-Word','enter password here');
window.open('BASEURL'+site+'.html',site,"');
whcih was mentioned before by dave.
in that scenario the password is the page to go to.
johnb
04-22-2003, 01:37 PM
so, any other javasripts or CGI scripts that anyone can recomend that would work better? What do all these paid membershipt sites use?
:confused:
You will have two options. Either use server side code as mentioned earlier, or look into .htaccess. Either of them will be far more secure than a javascript password...