webhook.site icon indicating copy to clipboard operation
webhook.site copied to clipboard

Use `x-forwarded-for` as `Host`

Open KaKi87 opened this issue 2 years ago • 1 comments
trafficstars

Hello,

I'm running the app using Docker through Apache : it displays the former's IP in Host despite the real IP being present in x-forwarded-for.

Thanks

KaKi87 avatar Jul 10 '23 13:07 KaKi87

Host would be incorrect, as Host is the hostname (and port) that you ask the webserver to serve. The correct header would be X-Forwarded-Host, if you want the hostname forwarded.

X-Forwarded-For contains the client IP

itssimple avatar Sep 20 '23 10:09 itssimple