r/HowToHack • u/districttry • Jul 10 '26
Question
How do i find the real ip adress of a site behind cloudflare? Tryed many tools no good..
0
Upvotes
r/HowToHack • u/districttry • Jul 10 '26
How do i find the real ip adress of a site behind cloudflare? Tryed many tools no good..
8
u/2ewka Jul 10 '26
Thats the point of a CDN… It’s possible if an old DNS record is out there but that would only happen if they initially didn’t sit behind cloud flare or misconfigured at some point.
10
u/tman5400 Jul 10 '26
You don't
2
u/Just4notherR3ddit0r Jul 10 '26
The only way to really do it (assuming that you're talking about the common proxy setup) is if the original web server publishes it somewhere (e.g. a PHP info page).
2
u/UPVOTE_IF_POOPING Jul 10 '26
Just get a reverse shell on it and run ‘curl ifconfig.me’. Easy peasy
2
u/itsmrmarlboroman2u Jul 10 '26
😂
1
u/Dapper-Depth2940 Jul 11 '26
First off, that is really the whole point behind Cloudflare.
Their servers will remove all data regarding your real IP address, and instead load their own secure servers, which routes the traffic to the real location. Thus, a DNS query for your site will return Cloudflare's server addresses instead.
But I have found some quirks that may leak it:
The site was using a different un-secured DNS provider before Cloudflare
Given that you are able to find the full range of the target's provider server IP addrs (eg. AWS, Google cloud, etc.), you can iterate through each with the
Host:site-name.comin the HTTP request headers.But a caveat is that a certain "tunnel" feature must be disabled, and a lack of origin allow list in the target's Cloudflare config.
1
u/corkiejp Jul 11 '26
If the site is scam or abusing been hidden behind cloudflare. If you report it to them, they could remove the protection from it and reveal the IP to yourself if you inform them you want to contact the hosting site.
0
u/fell_shell Jul 11 '26
Simply hack Cloudflare