1

I have a problem with my webpage. If my users use the console they can cheat in my JS game, and then save to the server.

Can I send a redirect to the login page if they try to execute anything from console?

GBS
  • 124
  • 1
  • 3
  • 16
  • 1
    Dedicated hackers will still be able to cheat at your game by faking the HTTP request from outside the browser (using curl or whatever other tool). Additionally, while there are some tricks out there that break consoles, they are annoying for users and will not work on every browser or browser version – hugomg May 22 '14 at 20:11
  • "The client is in the hands of the enemy" You need to figure out how to detect cheating at the server side. Fundamentally, there's nothing you can do to prevent the client being tampered. – spender May 22 '14 at 20:27
  • but once ago i tryed that: http://kspace.in/blog/2013/02/22/disable-javascript-execution-from-console/ From that website and it works! Why dosen't work now? – GBS May 22 '14 at 20:29

1 Answers1

2

See this post for more information about the question you're asking - you may be a little off in your understanding of the situation:

How does Facebook disable the browser's integrated Developer Tools?

Community
  • 1
  • 1
kyzen
  • 1,579
  • 1
  • 9
  • 13