3 ms·
I like that: I can have a thing where you can provide "localhost" but can also provide other host names and IPs too.
by simonw 4y ago
I like that: I can have a thing where you can provide "localhost" but can also provide other host names and IPs too.
- vorpalhex 4y agoThat approach also makes things more docker friendly.
- tlarkworthy 4y agoUnfortunately the host header is spoofable
- simonw 4y agoYou mean the HTTP host header? Yeah that's a good call: I need to do these checks only based on IP. I could allow users to enter host names which I would resolve to the IP before checking though, which matches how networking is used in things like Kubernetes.