3 ms·
From php.net, about using $_SERVER['SERVER_NAME'] : Note: Under Apache 2, you must set UseCanonicalName = On and ServerName. Otherwise, this value reflects
by calibas 10y ago
From php.net, about using $_SERVER['SERVER_NAME'] :
Note: Under Apache 2, you must set UseCanonicalName = On and ServerName. Otherwise, this value reflects the hostname supplied by the client, which can be spoofed. It is not safe to rely on this value in security-dependent contexts.