So I have a WordPress site and we all know how vulnerable WordPress plugins can be and get over time. I'm curious to know what you guys think about possibly just IP banning anyone that get an HTTP 404. Obviously I'd have to ensure that the site does not submit any requests to invalid links and all, but I figured it'd be a pretty good way to deter attackers.
I mean if someone visits the site and they click on the links that are on the site, there's no reason they should get an HTTP 404. If someone gets an HTTP 404, they're most likely going to be up to no good.
That being said, is there an easy way to accomplish this?