1

The following is generating a lot of traffic but it's not for me. Or they try to break in or they are voting for a house number, not sure.

Log:

POST /?xclzve_ty4AGLRXcipv06CINTZekrx28EKPVb HTTP/1.1

GET /?xclzve_lsx27CHMRWbglrw16BHMRWciou05AF HTTP/1.1

Is it possible to redirect to a 404 page or block ?xclzve_* (?xclzve_ is the same but the number or line behind it is different)

4

1 回答 1

0

尝试将其放入文档根目录(或虚拟主机配置)的 htaccess 文件中

RewriteEngine On
RewriteCond %{QUERY_STRING} xclzve_
RewriteRule ^ - [F,L]

这将返回 403 Forbidden,或者您可以将F,替换R=404为 404 not found。

尽管您可能想要阻止这些请求来自的 IP 地址?如果只是一两个,你可以这样做:

Order Allow,Deny
Deny From 123.45.67.89

如果 123.45.67.89 是 IP 发送虚假请求之一。它可能比使用重写引擎快一点。

于 2012-08-06T09:41:31.540 回答