有办法阻止具有特定查询字符串的所有请求吗?
GET /?7eyS=cUYD HTTP/2
GET /?8dkG=TMWZ HTTP/2
GET /?viYF=4KbU HTTP/2
GET /?Wv3y=oCSA HTTP/2
这很简单:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)7eyS= [NC,OR]
RewriteCond %{QUERY_STRING} (^|&)8dkG= [NC,OR]
RewriteCond %{QUERY_STRING} (^|&)viYF= [NC,OR]
RewriteCond %{QUERY_STRING} (^|&)Wv3y= [NC]
RewriteRule ^ - [F]
</IfModule>
或者我错过了什么?