Suming

Nginx:过滤Pingback CC请求

Written By

写入 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;}

Suming

不要走到山沟沟里,不要说一堆假大空.. 先想在做,先做再说..

2条回应:“Nginx:过滤Pingback CC请求”

  1. 疯狂的大叔说道:

    当访问量太多,每秒都能产生几M的日志的时候,配置差一点的机器,还是死。。。。

发表评论

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