protecting selenium from detection [duplicate] - javascript

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

Related

Disable print/copy from a react application [duplicate]

This question already has answers here:
How to stop user from printing webpages? using javascript or jquery
(11 answers)
Closed 4 years ago.
Is there a way to disable functions like copy, printing full page from a react application rendering in browser.
My usecase: I am building a question bank management tool and do not want user to have ability to copy or print complete questions for later reference.
Also is it possible to programatically decide on what will be printed when user tries to print. (Its ok to print title of the questions)
No you cannot render a page and also prevent a user from seeing it.

Installing third party javascript [duplicate]

This question already has answers here:
How can I obfuscate (protect) JavaScript? [closed]
(22 answers)
Closed 4 years ago.
I'm installing Intercom (https://www.intercom.com) for customer engagement on my site. With the recommended installation the javascript snippet they gave would have my intercom app_id exposed in the page source.
May not be a big deal, but I was wondering if there was a better way where I could keep that hidden.
May not be a big deal
It isn't.
but I was wondering if there was a better way where I could keep that hidden
You can't.
Intercom need the browser to tell them your ID for their approach to work.
This means you must tell the browser your ID.
The browser is the property of the user and it answers to them.
It is not possible to give the browser information and keep it secret from the user who owns the browser.

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

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.

Is there any way to detect network connection type using javascript? [duplicate]

This question already has answers here:
How do I check connection type (WiFi/LAN/WWAN) using HTML5/JavaScript?
(4 answers)
Closed 3 years ago.
I would like to know is there any way to check if user is connected from 2G, 3G, 4G, or WiFi using javascript. As of my knowledge only Mozilla provides a Network Information API which helps to detect general connection type like 'wifi', 'cellular' etc.
It is a wrong approach to expose your network to javascript. Anyways for your better understanding please go through the below link
How do I check connection type (WiFi/LAN/WWAN) using HTML5/JavaScript?
And there is one that can be of help but only supports mozilla and for the info you can visit the below link
https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_API

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