There is to my knowledge no function in OPNsense that does that. You might want to look into Crowdsec.