I have clients with multiple websites on the same physical dedicated server. Often, brute force attacks will try accessing invalid urls on one website and then continue on others.
Is there a way to capture invalid url requests on one website and update a shared block list for all the sites on the same server?
I read this: How do I use a PHP/MySQL-based script to ban IP blocks from a website? and was looking for a way to update some kind of file I could auto-include on each site to reduce the hit of the malicious activities, perhaps cleaning that file on a cron.
Any thoughts or best practices for this kind of situation?
Thanks!
While I have serious reservations about it, our server admin installed PSAD, which ‘seems’ to work – lots of alerts about the Chinese (China based IP addresses, with a proxy that could of course be any one anywhere) at the moment. Just be clear that you know what you are blocking and why.
TIP: set alert level to 4+ for email alerts (or just turn email alerts off) or you get thousands a day.