Kolega je stavio recaptcha, ali i dalje imam dnevno 100K redova. Sa pojedinih IP adresa hiljade ovakvih redova.
Code:
[Sun Jan 29 12:52:42.431013 2017] [fcgid:warn] [pid 26520:tid 140677182564096] [client 188.112.37.200:52365] mod_fcgid: stderr: PHP Notice: Undefined index: g-recaptcha-response in /var/www/vhosts/site.at/httpdocs/guestbox0.93/gbeingabe.php on line 29, referer: http://www.site.at/
[Sun Jan 29 12:52:42.431028 2017] [fcgid:warn] [pid 26520:tid 140677182564096] [client 188.112.37.200:52365] mod_fcgid: stderr: PHP Notice: Undefined variable: navi in /var/www/vhosts/site.at/httpdocs/guestbox0.93/seitenwechsel.php on line 40, referer: http://www.site.at/
[Sun Jan 29 12:52:42.431042 2017] [fcgid:warn] [pid 26520:tid 140677182564096] [client 188.112.37.200:52365] mod_fcgid: stderr: PHP Notice: Undefined offset: 7 in /var/www/vhosts/site.at/httpdocs/guestbox0.93/gbshow.php on line 47, referer: http://www.site.at/
[Sun Jan 29 12:52:42.431013 2017] [fcgid:warn] [pid 26520:tid 140677182564096] [client 188.112.37.200:52365] mod_fcgid: stderr: PHP Notice: Undefined index: g-recaptcha-response in /var/www/vhosts/site.at/httpdocs/guestbox0.93/gbeingabe.php on line 29, referer: http://www.site.at/
[Sun Jan 29 12:52:42.431028 2017] [fcgid:warn] [pid 26520:tid 140677182564096] [client 188.112.37.200:52365] mod_fcgid: stderr: PHP Notice: Undefined variable: navi in /var/www/vhosts/site.at/httpdocs/guestbox0.93/seitenwechsel.php on line 40, referer: http://www.site.at/
[Sun Jan 29 12:52:42.431042 2017] [fcgid:warn] [pid 26520:tid 140677182564096] [client 188.112.37.200:52365] mod_fcgid: stderr: PHP Notice: Undefined offset: 7 in /var/www/vhosts/site.at/httpdocs/guestbox0.93/gbshow.php on line 47, referer: http://www.site.at/
Ovi logovi su iz error_log.
Pokušao sam da napravim filter u fail2ban, ali mi ne funkcioniše. Kako videh, treba mi neko python-sko znanje koje nemam. Po nekom skroz petom primeru sa neta sam napisao ovako nešto.
Code:
failregex = ^\[.*]* \[client <HOST>:[0-9]+\] mod_fcgid: stderr: PHP Notice: Undefined index: .* in .* on line .*, referer: .*
ali ne radi failregex = ^\[.*]* \[client <HOST>:[0-9]+\] mod_fcgid: stderr: PHP Notice: Undefined index: .* in .* on line .*, referer: .*
edit:
Izgleda nije problem u botovima, nego u nekom php kodu... Sad sam samo kliknuo na stranicu, i sa moje IP adrese sam dobio 20 ovakvih redova kao gore.
Prvo to moram da vidim
[Ovu poruku je menjao CoyoteKG dana 29.01.2017. u 17:38 GMT+1]