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.
Related
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.
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
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.
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.
This question already has answers here:
How do I copy to the clipboard in JavaScript?
(27 answers)
Closed 10 years ago.
I currently have a JSF webapp and I have an output field that my managed bean sets the value for, and I want to ass a button for the user to copy the output text straight to their clipboard (aka ctrl-c/cmd-c).
I've been doing some research, but I'm a bit confused, some are suggesting this cannot be done.
So my question is...can this be done? And if so, any suggestions on how to implement it?
Thanks!
Cannot be done using javascript alone. You can do it with a flash plugin though. Check out zeroclipboard: http://code.google.com/p/zeroclipboard/