嘟嘟社区

请问我用的是apache


然后日志频繁检测到这个ua端:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

我想把它屏蔽掉,.htaccess要咋写呢

  1. RewriteEngine On
  2. RewriteCond %{HTTP_USER_AGENT} (^$|Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36) [NC]
  3. RewriteRule ^(.*)$ – [F]

复制代码

感谢大佬,我试试