Skip to content Skip to sidebar Skip to footer

How To Prevent Users To Go In Debug Mode With Their Browser

This might sound silly, but as a developer, I'm using the debugger in Chrome every day to test my web applications, but although these tools are valuable for us developers, it migh

Solution 1:

No, this is not possible. As John Conde said you should use server-side validation to protect against invalid input. Even without a "debugger" as you call them, a user can always GET/POST a request (with bogus data) to your form submission URL.

Solution 2:

I have 2 ideas to limit this to 80%.

  1. Prohibit right clicking
  2. Use the setInterval function to monitor the change of html tags. If it is changed back to the original value or redirects the website to any other address, for example google.com.

Post a Comment for "How To Prevent Users To Go In Debug Mode With Their Browser"