New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helpers: take host name from SERVER_NAME instead of HTTP_HOST #309
Conversation
c5c5bab
to
0d0dbd8
Compare
17ddd81
to
9cb1b0f
Compare
6fd4a05
to
3f0d0cb
Compare
746b339
to
a2663ed
Compare
bb44626
to
526708d
Compare
7335fbf
to
5f47b0d
Compare
9b6ddf1
to
44b485d
Compare
c4fc317
to
20c031f
Compare
dbabb37
to
eb2e772
Compare
de3ad52
to
191c0d2
Compare
2b958bb
to
f36b649
Compare
68b0ec8
to
344c772
Compare
Why do you think SERVER_NAME can't be spoofed in the same way? |
@dg https://www.geeksforgeeks.org/what-is-the-difference-between-http_host-and-server_name-in-php/ |
The question should have been different. Why I'd like to see SERVER_NAME instead of spoofed HTTP_HOST in source line? HTTP_HOST better reflects what is in the address bar. |
bug fix
BC break? yes
Hi,
it is better to identify server host name by secure directive SERVER_NAME, because HTTP_HOST is not secure and can be changed by user.
https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html