成长值: 342 签到天数: 4739 天 [LV.Master]伴坛终老
|
发表于 2019/4/29 01:15
|
显示全部楼层
|阅读模式
|Google Chrome 74.0.3729.108 |Windows 10
测试,服务器完整拿到的信息
- <?php
- print_r($_SERVER);
- ?>
复制代码
服务器拿到的头部信息
- <?php
- print_r(getallheaders());
- ?>
复制代码
SERVER输出
- Array
- (
- [PHPRC] => /tmp/php-www.ini
- [PHP_FCGI_MAX_REQUESTS] => 0
- [HOSTNAME] => itzmx.com
- [TERM] => xterm
- [SHELL] => /bin/bash
- [HISTSIZE] => 1000
- [SSH_CLIENT] => 117.182.247.76 25354 22
- [SSH_TTY] => /dev/pts/0
- [USER] => root
- [LS_COLORS] => rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:
- [MAIL] => /var/spool/mail/root
- [PATH] => /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
- [PWD] => /root
- [LANG] => C
- [HISTCONTROL] => ignoredups
- [SHLVL] => 1
- [HOME] => /root
- [LOGNAME] => root
- [CVS_RSH] => ssh
- [SSH_CONNECTION] => 117.182.247.76 25354 185.xxx.xxx.xxx 22
- [LESSOPEN] => ||/usr/bin/lesspipe.sh %s
- [G_BROKEN_FILENAMES] => 1
- [_] => /vhs/kangle/bin/kangle
- [OLDPWD] => /root/kangle
- [VH_NAME] => www
- [DOCUMENT_ROOT] => /home/ftp/w/www/bbs/
- [REMOTE_PORT] => 48723
- [REMOTE_ADDR] => 45.119.209.194
- [SERVER_PORT] => 80
- [SERVER_ADDR] => 185.xxx.xxx.xxx
- [SCRIPT_FILENAME] => /home/ftp/w/www/bbs/11.php
- [PATH_TRANSLATED] => /home/ftp/w/www/bbs/11.php
- [SCRIPT_NAME] => /11.php
- [REQUEST_URI] => /11.php
- [REQUEST_METHOD] => GET
- [SERVER_PROTOCOL] => HTTP/1.1
- [SERVER_NAME] => bbs.itzmx.com
- [GATEWAY_INTERFACE] => CGI/1.1
- [SERVER_SOFTWARE] => kangle/sakura
- [HTTP_IF_MODIFIED_SINCE] => Sun, 28 Apr 2019 20:19:26 GMT
- [HTTP_CDN_LOOP] => cloudflare
- [HTTP_CF_CONNECTING_IP] => 45.119.209.194
- [HTTP_COOKIE] => __cfduid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- [HTTP_ACCEPT_LANGUAGE] => zh-CN,zh;q=0.9
- [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
- [HTTP_DNT] => 1
- [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36
- [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
- [HTTP_CACHE_CONTROL] => max-age=0
- [HTTP_CF_VISITOR] => {"scheme":"http"}
- [HTTP_CF_RAY] => 4cebbb2a1d25959e-IAD
- [HTTP_CF_IPCOUNTRY] => US
- [HTTP_ACCEPT_ENCODING] => gzip
- [HTTP_HOST] => bbs.itzmx.com
- [FCGI_ROLE] => RESPONDER
- [PHP_SELF] => /11.php
- [REQUEST_TIME_FLOAT] => 1556482766.5718
- [REQUEST_TIME] => 1556482766
- )
复制代码
[HTTP_CF_CONNECTING_IP] => 真实IP
[HTTP_CF_IPCOUNTRY] => US
[HTTP_CF_VISITOR] => {"scheme":"http"}
[HTTP_X_FORWARDED_FOR] => 包含代理的真实IP
[REMOTE_ADDR] => cloudflare用于连接到的服务器IP
参考:https://support.cloudflare.com/hc/en-us/articles/200170986
|
|