User Controls

Someone teach me how to curl.

  1. #1
    Sophie Pedophile Tech Support
    So 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.
  2. #2
    aldra JIDF Controlled Opposition
    doesn't cloudflare function as an upstream proxy? they shouldn't let you connect directly to the site if that's the case
  3. #3
    Lanny Bird of Courage
    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.
  4. #4
    Sophie Pedophile Tech Support
    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.
Jump to Top