nginx配置文件里加上这些 [ol] if ($http_user_agent ~* (Macintosh.*bot|Macintosh.*spider|Macintosh.*crawl|Macintosh.*scraper|Macintosh.*curl|Macintosh.*wget|Macintosh.*python|Macintosh.*httpclient|Macintosh.*java|Macintosh.*Go-http)){ # [20260606] 屏蔽Mac爬虫类UA,保留正常Mac浏览器 return 403;} # [20260606] 屏蔽伪装老Mac UA(PPC已停产,Safari 125不存在) if ($http_user_agent ~* "Macintosh.*U;.*PPC"){ return 403; }[/ol]复制代码 屏蔽, 设备