fail2ban正则表达式规则

时间:2016-05-26 15:48:19

标签: regex fail2ban

仅供测试,我想阻止使用fail2ban从Android浏览器进入我的网站的所有流量。

这是日志文件中的字符串:

GET http://www.aaaaa.com/video/09_12_2014_spot_app.mp4 - ORIGINAL_DST/171.171.171.171 video/mp4 
[
    User-Agent: stagefright/1.2 (Linux;Android 5.0)
    Cookie: _gat=1; _ga=GA1.2.909922659.1455111791
    Range: bytes=705201-
    Connection: Keep-Alive
    Accept-Encoding: gzip
    Host: www.aaaaa.com
] 
[
    HTTP/1.1 206 Partial Content
    Date: Thu, 26 May 2016 15:27:16 GMT
    Server: Apache/2.2.15 (CentOS)
    Last-Modified: Tue, 09 Dec 2014 19:55:17 GMT
    ETag: "2b739f-ec2b1-509cdec1610e2"
    Accept-Ranges: bytes
    Content-Length: 262144
    Content-Range: bytes 705201-967344/967345
    Connection: close
    Content-Type: video/mp4
]

有任何帮助吗?提前谢谢!

0 个答案:

没有答案