How to disable console from running any script for all browsers for the website ?
-
1you can't. once the page is in the user's computer, he can modify your code as he wantsDan Bizdadea– Dan Bizdadea2016-08-08 07:16:17 +00:00Commented Aug 8, 2016 at 7:16
-
Related: stackoverflow.com/questions/14455692/… stackoverflow.com/questions/18405614/…Thilo– Thilo2016-08-08 07:21:42 +00:00Commented Aug 8, 2016 at 7:21
-
Is there is any way i can get anything written in the console using jsStephin– Stephin2016-08-08 09:26:38 +00:00Commented Aug 8, 2016 at 9:26
Add a comment
|
1 Answer
Simple answer, you can't.
You have to make your client and server side code more robust in order to deal with erratic and unexpected user inputs.
4 Comments
Thilo
The basic line to draw in the sand here is : If all the user can mess with is his own experience, that's not really a problem, so don't go overboard. If the user can mess with other people's experience (including your business model) by tweaking his browser, that's a (security) problem in your application.
Stephin
I want my user to see the data I am showing to him , but not copy it . Currently he can do that using javascript only
Rory McCrossan
@StephinKBabu you can't prevent that I'm afraid. Any data you send to the browser can be retrieved and copied
nnnnnn
"I want my user to see the data...but not copy it" - Even if you could disable the browser's dev tools, if the user can see the data they can copy the details down by hand, or take a screenshot and run it through OCR, etc.