News for hackers. Stuff that matters.
Re:A New Future for Icanhazip by ColdHeat on Sunday June 06, 2021 @04:06PM (#27415866)
I used to use this site until I found https://checkip.amazonaws.com/. Switched because I wasn't sure who was behind icanhazip.com and it's tough to beat AWS. Glad to hear that it will likely be maintained for awhile longer!
Re:A New Future for Icanhazip by madars on Sunday June 06, 2021 @04:18PM (#27415952)
Something to be aware of: checkip.amazonaws.com will happily return an X-Forwarded-For address https://stackoverflow.com/questions/52618096/under-what-circ...
Re:A New Future for Icanhazip by kortilla on Sunday June 06, 2021 @04:32PM (#27416056)
Use https
Re:A New Future for Icanhazip by lucb1e on Sunday June 06, 2021 @04:52PM (#27416225)
That has nothing to do with an HTTP header. See for yourself:

    $ curl -HX-Forwarded-For:127.0.0.1 https://checkip.amazonaws.com
    127.0.0.1
Re:A New Future for Icanhazip by thewakalix on Sunday June 06, 2021 @04:59PM (#27416267)
HTTPS encrypts headers, thereby preventing other people from adding headers to your request. Typically people are not adding X-Forwarded-For to their own requests.
Re:A New Future for Icanhazip by lucb1e on Sunday June 06, 2021 @05:39PM (#27416582)
I'm not arguing either point, I just pointed out that headers are independent of whether you use encryption. But now that I'm thinking about it for a sec, you might want to know what the proxy's exit IP is, and if the proxy adds an XFF Header then you just learn your own IP which wasn't what you wanted. If that is what GGGP meant.
Re:A New Future for Icanhazip by gruez on Sunday June 06, 2021 @04:56PM (#27416246)
I think the point is to prevent middleboxes (eg. caching proxy servers) from interfering with the request. Otherwise I don't really see the issue with the ip address being affected by X-Forwarded-For. You can just... not specify the header.
Re:A New Future for Icanhazip by kortilla on Saturday June 12, 2021 @01:54AM (#27481936)
Headers don’t get injected on you unexpectedly if you encrypt.
Re:A New Future for Icanhazip by epse on Sunday June 06, 2021 @05:18PM (#27416424)
Does that one only do IPv4?
Re:A New Future for Icanhazip by bombcar on Sunday June 06, 2021 @09:55PM (#27418164)
Seems so. But ipv6 is much more likely that your local address IS your global one though translation still can occur.