question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cloudflare on v2 and No Proxies on V1

See original GitHub issue
from seleniumwire.undetected_chromedriver import Chrome, ChromeOptions
from seleniumwire import webdriver
import time

chrome_options = ChromeOptions()
chrome_options.headless = False

driver = Chrome(options=chrome_options, seleniumwire_options={
    'disable_capture':True,
    'proxy': {
        'http': 'http://user:pass@gb.smartproxy.com:30000'
    }
}, use_subprocess=True)

driver.get('https://api.myip.com/')

time.sleep(2)
driver.quit()

Using v2 triggers Cloudflare, so it’s not possible to use but it does allow the use of proxies. However, if you use v1 you can evade Cloudflare but you can’t add proxies, it just bypasses them.

Any help greatly appreciated.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
krypterrocommented, Mar 23, 2022

Ah, it seems the no extension works in headless mode in any variation of Chrome. So…none of the above is going to work in headless mode.

1reaction
ENUM1commented, Feb 7, 2022

Unfortunately, I’m using SmartProxy as a provider and the format is slightly different, so I’m unable to use the above. http://user:pass@host:port

Hopefully, however, some of you find the above useful. I noted that some users were charging for this information, which on an open-source project is quite outrageous.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proxy protocol v2 - Spectrum - Cloudflare Community
Hello, I'm implementing the v2 protocol for a customer, however, I had some questions. What is the signature for? What does it represent?...
Read more >
Enable Proxy protocol · Cloudflare Spectrum docs
​​ Enabling Proxy Protocol v2 for TCP/UDP · Log in to the Cloudflare dashboard · Click Spectrum. · Locate the application that will...
Read more >
Proxy status · Cloudflare DNS docs
The Proxy status of a DNS record affects how Cloudflare treats incoming traffic to that record. Cloudlare recommends enabling our proxy for all ......
Read more >
Understanding Cloudflare Network Analytics v1
For guidance on the new Network Analytics v2 (NAv2) dashboard, ... Report periods older than 30 days do not include source IP data....
Read more >
Incorrect proxying of 24 hostnames on January 24, 2022
... it from SaaS v1 (the old system) to SaaS v2 (the current version) ... Note that it was www.cloudflare.com and not cloudflare.com, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found