PDA

View Full Version : javascript disabled...help



jaidev.cgartist
12-16-2011, 01:51 PM
Hello,

i have created a webpage which uses JavaScript for security.....
I've set it up in such a way that,
when a user with JavaScript disabled(browser) lands on that page...a different content/makeshift page is shown and that page can only be accessed when JavaScript is enabled.

Now that's OK but the problem is, when the user with js enabled lands on that page and then disables JavaScript being on that page....my JavaScript security is lost....

so, is there any way that refreshes the page automatically when the user disables the JavaScript in their browser....or is there any other work around for this problem ....

its my first post here...n i m new to coding and do stuff by following online tutorials...thanks.

djr33
12-16-2011, 07:10 PM
I'm sorry if this sounds harsh but:
Do not EVER use Javascript for security. It won't work.

Javascript works on the user's computer, and they have complete control (if they know enough).

Since the only way to interactively redirect a page based on user interaction is Javascript, when Javascript is disabled there's no way to do that.

You've gotten fairly close, but as you can see Javascript is not secure.