Feed fail2ban with the log file to ban it
/etc/fail2ban/jail.local file with
[simple-empty]
enabled = true filter = simple-empty #action = iptables-multiport[name=ReqLimit, port="http,https", protocol=tcp] action = cloudflare logpath = /path/to/laravel.app/storage/app/fail2ban.txt findtime = 3600 bantime = 3600 maxretry = 1
/etc/fail2ban/action.d/cloudflare.conf with
actionban=... actionunban=...