Cloudflare on v2 and No Proxies on V1
See original GitHub issuefrom 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:
- Created 2 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.