A使用cloudflare服务curlB接口,B网站打印$_SERVER信息如下:

{
	"USER": "www",
	"HOME": "\/home\/www",
	"HTTP_CF_REQUEST_ID": "08f0750f850000d346c59e7000000001",
	"HTTP_CDN_LOOP": "cloudflare",
	"HTTP_CF_CONNECTING_IP": "121.42.11.93",   // 真实IP
	"HTTP_ACCEPT": "*\/*",
	"HTTP_USER_AGENT": "okhttp\/3.12.0",
	"HTTP_CF_VISITOR": "{\"scheme\":\"http\"}",
	"HTTP_X_FORWARDED_PROTO": "http",
	"HTTP_CF_RAY": "632dbdf8dc3cd346-LAX",
	"HTTP_X_FORWARDED_FOR": "121.42.11.93",    // 真实ip
	"HTTP_CF_IPCOUNTRY": "CN",
	"HTTP_ACCEPT_ENCODING": "gzip",
	"HTTP_CONNECTION": "Keep-Alive",
	"HTTP_HOST": "fastadmin.wuxinzhe.top",
	"PATH_INFO": "",
	"REDIRECT_STATUS": "200",
	"SERVER_NAME": "fastadmin.wuxinzhe.top",
	"SERVER_PORT": "80",
	"SERVER_ADDR": "172.31.82.15",
	"REMOTE_PORT": "32384",
	"REMOTE_ADDR": "172.69.34.176",    // cloudflare用于缓存的服务器IP
	"SERVER_SOFTWARE": "nginx\/1.16.1",
	"GATEWAY_INTERFACE": "CGI\/1.1",
	"REQUEST_SCHEME": "http",
	"SERVER_PROTOCOL": "HTTP\/1.1",
	"DOCUMENT_ROOT": "\/www\/wwwroot\/fastadmin.wuxinzhe.top\/public",
	"DOCUMENT_URI": "\/hstv.php",
	"REQUEST_URI": "\/hstv.php?id=26&domain=www.hao123.com",
	"SCRIPT_NAME": "\/hstv.php",
	"CONTENT_LENGTH": "",
	"CONTENT_TYPE": "",
	"REQUEST_METHOD": "GET",
	"QUERY_STRING": "id=26&domain=www.hao123.com",
	"SCRIPT_FILENAME": "\/www\/wwwroot\/fastadmin.wuxinzhe.top\/public\/hstv.php",
	"FCGI_ROLE": "RESPONDER",
	"PHP_SELF": "\/hstv.php",
	"REQUEST_TIME_FLOAT": 1616230742.2745,
	"REQUEST_TIME": 1616230742
}

发表评论

邮箱地址不会被公开。 必填项已用*标注