User Controls
Someone teach me how to curl.
-
2015-11-03 at 2:28 AM UTCSo i was trying to get a webserver's real IP from behind stupid cloudflare but i can't do it cuz i suck.
curl -s -S -I -H "Host: example.net" --resolve example.net:80 --verbose http://example.net/
Just gives me the cloudflare shit. Surely i could sue curl to nab the real IP somehow. Halp pl0x.
-
2015-11-03 at 2:42 AM UTCdoesn't cloudflare function as an upstream proxy? they shouldn't let you connect directly to the site if that's the case
-
2015-11-03 at 3:17 AM UTCNah, curl just handles network requests, like a browser that doesn't handle state or do any rendering/JS execution. You can't get really get IP addrs off sites behind cloudflare unless cloudflare gives them to you, which it probably won't. And if configured correctly, sites won't talk to you if you're not going through CF. You can sometimes get around this by pulling the DNS records (`host` or `dig` should do the trick), CF doesn't do email so if there's a MX (mail exchange) record or a subdomain that's not behind CF there's a good chance that's the real address of the server, unless they use someone else like fastmail to handle it.
-
2015-11-03 at 8:05 AM UTC
Nah, curl just handles network requests, like a browser that doesn't handle state or do any rendering/JS execution. You can't get really get IP addrs off sites behind cloudflare unless cloudflare gives them to you, which it probably won't. And if configured correctly, sites won't talk to you if you're not going through CF. You can sometimes get around this by pulling the DNS records (`host` or `dig` should do the trick), CF doesn't do email so if there's a MX (mail exchange) record or a subdomain that's not behind CF there's a good chance that's the real address of the server, unless they use someone else like fastmail to handle it.
Makes sense. Thanks for the tips.