Security of Javascript

G

Greg

I was wondering if using Javascript to redirect a user, on the client
side, to different pages depending on what they entered was insecure.
I do not want the user to be able to view the source of the page. I
am having the user enter in some input using the input dialog box and
then using a window.location redirection based on their input. Is it
possible to view the source of a page after the input box has closed
but before the new page has loaded, ie. while the browser is
requesting the new page?

Thanks,

Greg
 
H

Hywel Jenkins

msbg4 said:
I was wondering if using Javascript to redirect a user, on the client
side, to different pages depending on what they entered was insecure.
I do not want the user to be able to view the source of the page.
Tough.


I
am having the user enter in some input using the input dialog box and
then using a window.location redirection based on their input. Is it
possible to view the source of a page after the input box has closed
but before the new page has loaded, ie. while the browser is
requesting the new page?

Yes. Look in your cache.
 
K

kaeli

msbg4 said:
I was wondering if using Javascript to redirect a user, on the client
side, to different pages depending on what they entered was insecure.
I do not want the user to be able to view the source of the page.

Well, all I have to do is turn off my javascript or look in my cache.
heh
You can try to obfuscate it, but if I want it that bad, I'll run it
through a deobfuscator.
I
am having the user enter in some input using the input dialog box and
then using a window.location redirection based on their input.

Then evaluate the input on the server-side and redirect from the server.
No other way is secure. If my browser can see it, so can I, no matter
what you do. If I want it, it's mine.

If you really want to be a pain, use Flash. I have to deconstruct and
reconstruct that to see the source, which is difficult and rarely worth
anyone's time. Of course, that requires a plugin, which may piss off
some users.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top