Hi,
I would like to use this service to find out if an IP is good or bad:
https://getipintel.net/free-proxy-vpn-t ... ction-api/
If it is bad, I would like to redirect all traffic from that IP to a blank page.
I am thinking of writing a script to check each IP against this service and pass matching bad IPs to a forwarding mechanism. Since I realized that doing this in realtime might not be practical. Moreover, there is a ratelimit imposed by this service provider. So, my idea is to use CSF to collect all the IPs that visited our websites and then, run this script at the end of the day (thru cron) to figure this out.
My queries in this regard are:
a) How to get the IPs that CSF/iptables see?
b) How to forward the traffic of matching IPs to blank page (from their next visit onwards) using iptables rules?
c) How can I ensure that I do not hit the server limits by doing this?
Thank you...