We have been the target of some nasty SQL injection attacks - all hitting the same page, and using roughly the same injection parameters. They aren't actually getting anywhere, but when they hit the same page it takes up server resources and slows everything down.
I've attempted using a generic SQL Injection code block like the one found here, but not 100% it's actually working.
I've taken a snippet of the URL they are hitting, see below:
I just want to send them to an error page or something, but not quite sure how to implement what I am after.
Any and all help appreciated.
On a side note, it is not a Wordpress directory they are hitting, so Wordpress security plug-ins are no good.
I'd also add that the injection parameters are not in a query string. The requests are similar to below: