Migdiradmin
Verified User
- Joined
- Jan 5, 2020
- Messages
- 158
Hi i cant put this working in directadmin in cpanel works ok by default.
I want to try to ban IPs in CSF that returns 404 in
/var/log/httpd/access_log
/var/log/httpd/domain.com.log
Example:
Anyone can do this with CSF/LFD and directadmin?
I want to try to ban IPs in CSF that returns 404 in
/var/log/httpd/access_log
/var/log/httpd/domain.com.log
Example:
Code:
122.22.22.22 - - [19/Aug/2022:09:32:54 +0100] "GET /sadasadasd HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
122.22.22.22 - - [19/Aug/2022:09:32:55 +0100] "GET /sadasdasdadsasdasdasdasd HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
122.22.22.22 - - [19/Aug/2022:09:32:56 +0100] "GET /saasdasddsasdasd HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
122.22.22.22 - - [19/Aug/2022:09:32:57 +0100] "GET /sadaasddadsasdasd HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
122.22.22.22 - - [19/Aug/2022:09:32:58 +0100] "GET /sadasasddsasdasd HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
122.22.22.22 - - [19/Aug/2022:09:32:59 +0100] "GET /sadasdaasdasasdasd HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
122.22.22.22 - - [19/Aug/2022:09:32:59 +0100] "GET /sadasasdasdsasdasd HTTP/1.1" 404 518 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"
Anyone can do this with CSF/LFD and directadmin?