Re: Как прибить POST HTTP/1.1

Илья Шипицин chipitsine at gmail.com
Tue Jul 8 14:28:43 UTC 2014


error_page 400 =444;

?

2014-07-08 19:19 GMT+06:00 lisua <nginx-forum at nginx.us>:
> Как прибить ботов с помощью Nginx без парсинга логов:
>
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:34 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:35 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:35 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:35 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:35 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:35 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:35 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:35 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:36 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:36 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:36 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:36 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:36 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:36 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:37 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:37 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 177.55.241.91 - - [08/Jul/2014:14:54:38 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:38 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:38 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 177.55.241.91 - - [08/Jul/2014:14:54:38 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:39 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 93.77.24.242 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 93.77.24.242 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 93.77.24.242 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.105.91 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 93.77.24.242 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 37.45.201.168 - - [08/Jul/2014:14:54:40 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:41 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 2.134.162.100 - - [08/Jul/2014:14:54:41 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 197.162.13.111 - - [08/Jul/2014:14:54:41 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 93.77.24.242 - - [08/Jul/2014:14:54:41 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 93.77.24.242 - - [08/Jul/2014:14:54:41 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
> 93.77.24.242 - - [08/Jul/2014:14:54:41 +0200] "POST  HTTP/1.1" 400 166 "-"
> "-"
>
> Такое не помогло:
> if ($request_method = POST){
> return 499;
> }
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,251542,251542#msg-251542
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru



Подробная информация о списке рассылки nginx-ru