vps交流

访问日志里User Agent是中划线-的话,代表空还是真的是中划线


访问日志里User Agent是中划线-的话,代表空还是真的是中划线 访问日志里User Agent是中划线-的话,代表空还是真的是中划线?

122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /uc_server/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/uc/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/ucenter1/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/uc_server/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/ucenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/uc_server/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/server/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/uccenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/uc/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/center/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/ucenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /ucenter1/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/ucenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/ucenter1/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /uccenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/uccenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/uc/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /center/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /bbs/ucserver/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /upload/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/center/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /upload/uc_server/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/uccenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /uc/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /ucenter/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/center/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /old/ucserver/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/ucserver/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/ucenter1/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /ucserver/install/index.php HTTP/1.1" 301 0 "-" "-"
122.114.182.163 – – [26/Dec/2021:13:23:03 +0800] "HEAD /club/uc_server/install/index.php HTTP/1.1" 301 0 "-" "-"

NULL是 ""
– 是 "-"
屏蔽空ua和 – 就行 访问日志里User Agent是中划线-的话,代表空还是真的是中划线

durov 发表于 2021-12-26 13:42
屏蔽空ua和 – 就行

访问日志里User Agent是中划线-的话,代表空还是真的是中划线 这最后的那一条,就是空吧?

if ($http_user_agent ~* (http-client|python|colly|Curl|HttpClient|^$)) {

micto 发表于 2021-12-26 13:47
这最后的那一条,就是空吧?

if ($http_user_agent ~* (http-client|python|colly|Curl|HttpClie …

是的 访问日志里User Agent是中划线-的话,代表空还是真的是中划线  访问日志里User Agent是中划线-的话,代表空还是真的是中划线访问日志里User Agent是中划线-的话,代表空还是真的是中划线

Syc 发表于 2021-12-26 13:41
NULL是 ""
– 是 "-"

访问日志里User Agent是中划线-的话,代表空还是真的是中划线 感谢,我去把这些整天拿着工具扫人网站的孙子给屏蔽了。。

应该就是 空