Disable user from running javascript in console in all browsers [duplicate] - javascript

This question already has answers here:
How to disable JavaScript function calls from the browser console?
(6 answers)
Closed 6 years ago.
How to disable console from running any script for all browsers for the website
?

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.

Related

I want to hide the main-es2015.{some-hash}.js from client devtool source [duplicate]

This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
how to hide javascript code [duplicate]
(4 answers)
Closed 7 years ago.
Is there anyway to hide or secure my javascript code. Because anyone can easily
see my javascript logic on my website using view page source and it's harmful for me. Please tell me any method you know for securing the javascript code or for making it difficult to understand using any encryption method with cannot easily decrypt.
You can't. Don't put sensitive code, keys, information, or logic on the client. The only thing you can do is make it harder to read by running your code through an obfuscator.

Turn off a screenshot on the phone by javascript [duplicate]

This question already has answers here:
What are the ways to prevent users to take screenshot of a webpage? [duplicate]
(3 answers)
Closed 3 years ago.
How can I prevent a screenshot from the phone on my site by javascript or jquery
You can't. It's done at the OS level, your code doesn't get a chance to decide whether the user can take a picture of what they're seeing.

protecting selenium from detection [duplicate]

This question already has answers here:
Can a website detect when you are using Selenium with chromedriver?
(25 answers)
Chrome browser initiated through ChromeDriver gets detected
(2 answers)
Closed 4 years ago.
I am trying to crawl a couple of website pages to use their information and I can only use things like selenium that has chromium to do that
Now I am trying to hide it from the website owners because I don't want to get banned. some people are talking about changing some variable names called cdc_ inside of chromdriver and I can't understand how to do it
Also I am using python for this
EDIT : My problem is that I can't change the variable of cdc_ or any other variables in chrome driver because I don't know how
any method so I can hide the fact that I am using selenium!
Please help me here
Thank you for your time

How to enable browser cookies using Javascript? [duplicate]

This question already has answers here:
How to enable cookies via javascript
(3 answers)
Closed 8 years ago.
Is there any way to enable browser cookies using Javascript? I need to show the user data in the form page which has filled by the user earlier. Please get me some solution to show the data which has already submitted before in the form page.
This cannot be done as it would bring security issues.

How to check HOW a browser is online [duplicate]

This question already has answers here:
How do I check connection type (WiFi/LAN/WWAN) using HTML5/JavaScript?
(4 answers)
Closed 9 years ago.
I know the online status could be checked using the javascript API navigator.onLine.
However, for smartphone html5 apps it would be also interesting HOW the online has been set.
Either by WLAN or using 3G/4G connection.
Is there a way to detect the kind of online connection?
You could use window.navigator.connection but the support for this API is very limited at the moment. Check out: https://developer.mozilla.org/en-US/docs/Web/API/window.navigator.connection

Categories

Resources