javascript - Disable Browser console -
i'm writing online game uses large amount of javascript, , cheating really easy if start fiddling variables in console or, worse still, checking elements of dom see hidden units are, etc.
right now, detect when console opened , rewrite entire <body>
element contain message explaining have close console , refresh page carry on playing.
is there reliable way of closing console again, or disabling completely?
a cheater can write javascript address bar; matter, host browser control within winforms program , modify on page without ever opening console. write nice little cheating app convenient buttons , friendly ui , distribute cheater friends. have not trust input user. run important stuff on server , allow client send ajax requests. otherwise cheating inevitable.
Comments
Post a Comment