写入 nginx.conf 过滤 Pingback CC请求

if ($http_user_agent ~*
(ApacheBench|pingback|WordPress|MJ12bot|AhrefsBot|360JK|PHP|php|Jorgee)
) {return 101;} if ($http_user_agent = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" ) {return 101;} if (
$request = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"POST /reg.html HTTP/1.1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" ) {return 400;} if ( $request =
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"POST / HTTP/1.1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" ) {return 400;} if ( $request = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"POST / HTTP/1.0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" )
{return 400;} if ( $request = \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"POST // HTTP/1.0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" ) {return 400;}

相关新闻

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

联系我们

联系我们

151-1101-0018

在线咨询:
邮件:30115776@qq.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信
关注微信
分享本页
返回顶部