So i am newbie about all this. This is how log looks:
213.135.179.254 - - [27/Apr/2017:17:39:06 +0200] "GET /get.php?username=1515&password=1515&type=m3u HTTP/1.1" 200 0 "-" "-"
213.135.179.254 - - [27/Apr/2017:17:39:06 +0200] "GET /get.php?username=1859&password=1859&type=m3u HTTP/1.1" 200 0 "-" "-"
213.135.179.254 - - [27/Apr/2017:17:39:07 +0200] "GET /get.php?username=1877&password=1877&type=m3u HTTP/1.1" 200 0 "-" "-"
So i need custom filter and everything else. I want to to ban every ip that sends more than 10 requests like that. Well, trick is that when they send requests like this, its wrong url, i mean, they dont get anything. When ip sends correct get.php requests, they get downloadable m3u file, so i think its status code 302? So i want to ban ip that sends more than 10 wrong get.php requests, with status code 200. please help
EDIT: This is how it looks when get.php requests is valid:
185.24.35.240 - - [30/Apr/2017:15:14:27 +0200] "GET /get.php?username=bracelo@apan-135d&password=4sfZ8va5OS&type=m3u&output=mpegts HTTP/1.1" 200 93528 "-" "VLC/2.2.4 LibVLC/2.2.4"
185.24.35.240 - - [30/Apr/2017:15:14:37 +0200] "GET /get.php?username=tester2ip@262sdf&password=D86Td3v3TP&type=m3u&output=mpegts HTTP/1.1" 200 92588 "-" "VLC/2.2.4 LibVLC/2.2.4"