vvanglro / cf-clearance

Purpose To make a cloudflare v2 challenge pass successfully, Can be use cf_clearance bypassed by cloudflare, However, with the cf_clearance, make sure you use the same IP and UA as when you got it.
https://github.com/vvanglro/cf_clearance
353 stars 58 forks source link

It can't work #18

Closed zhajingwen closed 1 year ago

vvanglro commented 1 year ago

Please provide more info.

zhajingwen commented 1 year ago

cf challenge fail

and this log always appear you kan try it

vvanglro commented 1 year ago

I just ran the example and it works. Can you provide the website?

menglj commented 1 year ago

Can't bypass,try : https://core-api.prod.blur.io/v1/collections/0x60e4d786628fea6478f785a6d7e704777c86a7c6/tokens/20880

zhajingwen commented 1 year ago

I just ran the example and it works. Can you provide the website?

you can try this website https://dexfilter.com/

you will get bellow test

zhajingwen commented 1 year ago

I just ran the example and it works. Can you provide the website?

you can try this website https://dexfilter.com/

you will get bellow test

and this is my core code:

` with Display(): async with async_playwright() as p: browser = await p.chromium.launch(**launch_data) page = await browser.new_page() page.on('response', self.on_response) await async_stealth(page, pure=True) await page.goto(self.url) success = await async_cf_retry(page)

success = await async_cf_retry(page)

            # if not success:
            #     await browser.close()
            #     print({"success": success, "msg": "cf challenge fail"})
            time.sleep(5)
            await page.screenshot(path='test.png')
            time.sleep(3)
            await browser.close()`
zhajingwen commented 1 year ago
        with Display():
            async with async_playwright() as p:
                browser = await p.chromium.launch(**launch_data)
                page = await browser.new_page()
                page.on('response', self.on_response)
                await async_stealth(page, pure=True)
                await page.goto(self.url)
                success = await async_cf_retry(page)
                # success = await async_cf_retry(page)
                # if not success:
                #     await browser.close()
                #     print({"success": success, "msg": "cf challenge fail"})
                time.sleep(5)
                await page.screenshot(path='test.png')
                time.sleep(3)
                await browser.close()
vvanglro commented 1 year ago

My normal visit to this website did not trigger Cloudflare. Is it a proxy issue?

zhajingwen commented 1 year ago

not use proxy, l run it on my ECS(cloud host) in hongkong; but it can't work; l don't know why !

vvanglro commented 1 year ago

I use Hong Kong proxy to access and did not trigger Cloudflare. Maybe you should use proxy access, your server is blocked by Cloudflare.

zhajingwen commented 1 year ago

I use Hong Kong proxy to access and did not trigger Cloudflare. Maybe you should use proxy access, your server is blocked by Cloudflare.

l have 100 proxy ips but all failed, l guess they are all blocked , and my Cloud Host also be blocked , l'll try buy better proxy ip ,forexample 4G proxies to have a try