kif1205 / Selenium

0 stars 0 forks source link

How to remove the detect string in chromedriver #17

Open kif1205 opened 2 years ago

kif1205 commented 2 years ago

Summary : Some websites will detect the simulator string , the related should be removed to avoid the detection


How to do : vim /path/to/chromedriver After running the line above, you'll probably see a bunch of gibberish. Do the following:

Replace all instances of cdc with dog by typing :%s/cdc/dog/g. dog is just an example. You can choose anything as long as it has the same amount of characters as the search string (e.g., cdc), otherwise the chromedriver will fail. To save the changes and quit, type :wq! and press return. If you need to quit without saving changes, type :q! and press return.


Reference : https://stackoverflow.com/questions/33225947/can-a-website-detect-when-you-are-using-selenium-with-chromedriver