Пример print_r $_SERVER на PHP
Массив $_SERVER:
Array
(
[UNIQUE_ID] => YApuCHJ6jDF0Cg-K1ZVy6HAAAMU
[REMOTE_USER] =>
[HTTPS] => on
[SSL_TLS_SNI] => test.ru
[HTTP_HOST] => test.ru
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
[HTTP_ACCEPT_ENCODING] => gzip, deflate, br
[HTTP_CONNECTION] => keep-alive
[HTTP_REFERER] => https://test.ru/disweb/catalog/
[HTTP_COOKIE] => _ga=GA1.2.788031338.0000000000; _ym_uid=0000000000833019874; _ym_d=0000000000; __unam=c9c1be2-000000000-00000000-732; _fbp=fb.1.1585723744087.000000000; fpestid=Er-gdregergergrewg-B-greger654654ygrtgh; _gid=GA1.2.00000000.00000000; PHPSESSION=0000fgu09760ovg7vg; _gat=1; _gat_gtag_UA_90000000_1=1; _ym_isad=2; _ym_visorc=w
[HTTP_UPGRADE_INSECURE_REQUESTS] => 1
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache/2.4.37 (centos) OpenSSL/1.1.1c PHP/7.3.24
[SERVER_NAME] => test.ru
[SERVER_ADDR] => 67.56.211.201
[SERVER_PORT] => 443
[REMOTE_ADDR] => 80.219.61.12
[DOCUMENT_ROOT] => /home/test.ru/www
[REQUEST_SCHEME] => https
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /home/test.ru/www
[SERVER_ADMIN] => info@test.ru
[SCRIPT_FILENAME] => /home/test.ru/www/catalog/index.php
[REMOTE_PORT] => 56682
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] => sort=name&order=asc
[REQUEST_URI] => /catalog/dobavki-dlja-gipsa/?sort=name&order=asc
[SCRIPT_NAME] => /catalog/index.php
[PHP_SELF] => /catalog/index.php
[REQUEST_TIME_FLOAT] => 1611266264.2298
[REQUEST_TIME] => 1611266264
)