在我的网络服务器上收到大量请求后,我想阻止facebookexternalhit
我有以下conf,但它不起作用:
badbots = facebookexternalhit
failregex = ^<HOST> -.*"(GET|POST).*HTTP.*"(?:%(badbots)s|%(badbotscustom)s)".*
一个示例,我要阻止的请求:
173.252.127.15 - - [10/Jun/2019:20:06:25 +0300] "GET /wp-content/uploads/2019/03/IMG_7368-1.jpg HTTP/1.1" 200 61318 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"