Check IPs and how to set scripts

I would like to get some script advices on CSF. I wanted to check whether some IPs are good or bad through several online services, none of which provide practical solutions (have a large number of visits). So, I need help with setting up: setting up IP filters, table with visible IPs in CSF, and how to see whether my server is about to hit its limit.