Can house an Anti-AI Hacking AI on Raspberry Pi

I’m looking for a Cheap Solution Rogue attacks on Websites? If this is possible which AI Model is best to protect said website?