News for hackers. Stuff that matters.
Re:How to Bypass Cloudflare: A Comprehensive Guide by Tiberium on Sunday September 18, 2022 @10:57AM (#32888066)
The actual "easiest" way (at least for me) to bypass Cloudflare is to find the actual IP of the web-server running behind it. Of course in a lot of cases it's not possible, for example when the web admin correctly limits the webserver to only respond to Cloudflare IP ranges, or if https://developers.cloudflare.com/ssl/origin-configuration/o... is used.

Most useful services for that are https://shodan.io/ and https://search.censys.io/. I've had decent successes with Censys on finding real IP addresses of websites behind Cloudflare. Of course you might also have success by checking history of DNS records for a particular domain.

Re:How to Bypass Cloudflare: A Comprehensive Guide by PigiVinci83 on Sunday September 18, 2022 @12:27PM (#32888846)
Companies spend thousands of dollars on these anti-bot solutions and then they are so misconfigured that using a specific user agent or faking browsing via mobile, bypasses them. Real life stories.
Re:How to Bypass Cloudflare: A Comprehensive Guide by grogenaut on Sunday September 18, 2022 @12:41PM (#32888986)
Often this is because you are hamstrung by old mobile apps or TV apps that can't be updated forcibly and so you break users. So your making a trade-off of user pain and bot deflection. So many times this is actually known and on purpose. Botters hitting that loophole helps prioritize closing that loophole in an agile customer experience and makes it easier for engineering and product to prioritize. Real life stories
Re:How to Bypass Cloudflare: A Comprehensive Guide by PigiVinci83 on Sunday September 18, 2022 @01:02PM (#32889205)
Re:How to Bypass Cloudflare: A Comprehensive Guide by PigiVinci83 on Sunday September 18, 2022 @12:59PM (#32889168)
Totally agree.
Re:How to Bypass Cloudflare: A Comprehensive Guide by nlh on Sunday September 18, 2022 @06:34PM (#32892122)
Just want to say THANK YOU for this insight. It never occurred to me, and I just checked out one of the big sites that I scrape for a side project and, lo and behold, you are 100% correct. Found their origin in Censys in about 30 seconds and I've never been able to crunch through their pages more easily.

To others out there who explore this: As with all scraping, be gentle! If you start pounding on someone's origin server directly, you're much more likely to be noticed than if you're pounding on something behind a CloudFlare cache. Set rate limits, scrape during off-peak hours, etc. Be a good scraping citizen.

Re:How to Bypass Cloudflare: A Comprehensive Guide by lostmsu on Tuesday September 20, 2022 @10:01PM (#32920096)
How did you do it? Asking for a friend who would like to get to the webservers behind CDNs that front Russian websites.
Re:How to Bypass Cloudflare: A Comprehensive Guide by gingerlime on Sunday September 18, 2022 @02:58PM (#32890369)
> or if https://developers.cloudflare.com/ssl/origin-configuration/o... is used.

How is using CF’s origin CA preventing the connection to the real backend in order to bypass Cloudflare? you cam just ignore the SSL error couldn’t you?

Re:How to Bypass Cloudflare: A Comprehensive Guide by kevincox on Sunday September 18, 2022 @04:34PM (#32891249)
They probably meant to link https://developers.cloudflare.com/ssl/origin-configuration/a... where Cloudflare uses a client TLS certificate to pull from the origin and the origin should be configured to reject requests without a client certificate.
Re:How to Bypass Cloudflare: A Comprehensive Guide by temp0826 on Sunday September 18, 2022 @03:01PM (#32890397)
In addition, I think CF provides a list of IPs to whitelist to only allow access from their servers.
Re:How to Bypass Cloudflare: A Comprehensive Guide by flicker-rate on Sunday September 18, 2022 @09:55PM (#32893408)
One more technique to find the backend IP address of the web-server is to lookup the DNS record history of the domain in question. Usually, the admins will test their website with with SSL on a real domain to ensure it works.

Only afterward, they will protect it with Cloudflare/Akamai/Cloudfront, etc, which means you'll have a DNS history trail to lookup.

I've had good luck with services such as SecurityTrails, Virustotal and CompleteDNS for DNS history.

Once you find the original A record IP address, you can put it in your hosts file, pointing to the domain. Then, you will be able to access the site, bypassing the CDN without issue.

Re:How to Bypass Cloudflare: A Comprehensive Guide by discreditable on Sunday September 18, 2022 @12:07PM (#32888683)
This is what I expected the article to be about. I would wager a lot of shops don't to the whitelisting. If they wanted to be really intense they could do authenticated origin pulls.
Re:How to Bypass Cloudflare: A Comprehensive Guide by akira2501 on Sunday September 18, 2022 @03:05PM (#32890443)
AWS CloudFront with S3 recommends that you just set your S3 to require a specific 'Referer' header variable and you set CloudFront to send that custom 'Referer' with each origin request.

Seems to work great when you use something like a GUID, and no need for IP whitelisting.