$host = $request->server("HTTP_HOST");
$uri = $request->server("REQUEST_URI");
$ua = $request->server("HTTP_USER_AGENT");
$method = $request->server("REQUEST_METHOD");
$param = $request->request();
$a = $this->ip_details($request->ip());
$city ="";
if(!empty($a)){
$city = json_decode($a,true)['content']['address_detail']['province'];
}
//放入数组
$content = [
'ip'=>$request->ip(),
"host"=>$host,
"uri"=>$uri,
"name"=>isset($this->urlarr[$uri])?$this->urlarr[$uri]:'',
"ua"=>$ua,
"method"=>$method,
USER | www |
HOME | /home/www |
HTTP_REFERER | http://weigaoprefills.com/news/show-258.aspx |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | weigaoprefills.com |
PATH_INFO | //news/show-258.aspx |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.weigaoprefills.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.21.126.143 |
REMOTE_PORT | 52716 |
REMOTE_ADDR | 54.145.82.104 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/weigao/public |
DOCUMENT_URI | /index.php//news/show-258.aspx |
REQUEST_URI | /news/show-258.aspx |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_FILENAME | /www/wwwroot/weigao/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php//news/show-258.aspx |
REQUEST_TIME_FLOAT | 1711728072.7018 |
REQUEST_TIME | 1711728072 |