Avoid changing value in client using developer tool

141 views Asked by At

We are using HTML5, Foundation by ZURB and AngularJS for our application.

We want to deny the user access to the values of the Angular objects (I mean scope variables) using developer tool console.

Kindly someone help me in this, how do we keep users from changing the values in console?

1

There are 1 answers

0
Burki On

JavaScript is executed in the browser, on the client's machine.
Developer tools are explicitely meant for the task you want to prevent.
That said: even if it was possible to deny access to the scope variables, it should be prohibited by future versions of the browser or dev tool, since it is likely to pose a security risk, apart from being a generally bad idea.