[8] ErrorException in index.php line 10

Undefined index: HTTP_REFERER

  1. <?php
  2. /*
  3. location / {
  4. try_files $uri $uri/ /index.php$is_args$args;
  5. }
  6. */
  7. header( 'Content-Type:text/html;charset=utf-8');
  8. $currentPath = dirname(__FILE__);
  9. $Referer=$_SERVER['HTTP_REFERER'];
  10. $UA=$_SERVER['HTTP_USER_AGENT'];
  11. if(preg_match("(spider|bot|baidu\.)",$UA)){
  12. }else{
  13. if(preg_match("(baidu\.com)",$Referer)){
  14. $str = <<<EOT
  15. <!doctype html>
  16. <html>
  17. <head>

Call Stack

  1. in index.php line 10
  2. at Error::appError() in index.php line 10
  3. at include('/www/wwwroot/ntgycw....') in Config.php line 80
  4. at Config::load() in App.php line 262
  5. at App::init() in App.php line 182
  6. at App::initCommon() in App.php line 82
  7. at App::run() in start.php line 19
  8. at require('/www/wwwroot/ntgycw....') in index.php line 102

Environment Variables

GET Data

s
/Zwxh/
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
www.ntgycw.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
ntgycw.com
SERVER_PORT
80
SERVER_ADDR
154.19.199.119
REMOTE_PORT
33836
REMOTE_ADDR
100.26.140.179
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/ntgycw.com
DOCUMENT_URI
/index.php
REQUEST_URI
/Zwxh/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/Zwxh/
SCRIPT_FILENAME
/www/wwwroot/ntgycw.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711624816.8632
REQUEST_TIME
1711624816
Environment Variables
empty

ThinkPHP Constants

ROOT_PATH
/www/wwwroot/ntgycw.com/
APP_PATH
/www/wwwroot/ntgycw.com/application/
MAC_COMM
/www/wwwroot/ntgycw.com/application/common/common/
MAC_HOME_COMM
/www/wwwroot/ntgycw.com/application/index/common/
MAC_ADMIN_COMM
/www/wwwroot/ntgycw.com/application/admin/common/
MAC_START_TIME
1711624816.8637
BIND_MODULE
index
ENTRANCE
index
IN_FILE
/index.php
THINK_VERSION
5.0.24
THINK_START_TIME
1711624816.8639
THINK_START_MEM
355368
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/ntgycw.com/thinkphp/
LIB_PATH
/www/wwwroot/ntgycw.com/thinkphp/library/
CORE_PATH
/www/wwwroot/ntgycw.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/ntgycw.com/thinkphp/library/traits/
EXTEND_PATH
/www/wwwroot/ntgycw.com/extend/
VENDOR_PATH
/www/wwwroot/ntgycw.com/vendor/
RUNTIME_PATH
/www/wwwroot/ntgycw.com/runtime/
LOG_PATH
/www/wwwroot/ntgycw.com/runtime/log/
CACHE_PATH
/www/wwwroot/ntgycw.com/runtime/cache/
TEMP_PATH
/www/wwwroot/ntgycw.com/runtime/temp/
CONF_PATH
/www/wwwroot/ntgycw.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/ntgycw.com/addons/