1

How to disable console from running any script for all browsers for the website ?

3

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

4 Comments

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.
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
@StephinKBabu you can't prevent that I'm afraid. Any data you send to the browser can be retrieved and copied
"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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.