$do_not_track_requested = ! empty( $_SERVER[ 'HTTP_DNT' ] );
All HTTP headers are present in $_SERVER
, prefixed with HTTP_
.
https://www.php.net/manual/en/reserved.variables.server.php#89567
$do_not_track_requested = ! empty( $_SERVER[ 'HTTP_DNT' ] );
All HTTP headers are present in $_SERVER
, prefixed with HTTP_
.
https://www.php.net/manual/en/reserved.variables.server.php#89567