3 ms·
I assume you're running Apache? Have you taken a look at ModSecurity? I found it a little tricky to set up (the core rules it ships with by default are way too
by eli 16y ago
I assume you're running Apache? Have you taken a look at ModSecurity?
I found it a little tricky to set up (the core rules it ships with by default are way too aggressive, IMHO), but it does exactly what you're asking: block requests by regex.
- brandnewlow 16y agoWe're on a hybrid nginx/apache setup. I just added some lines to my nginx.conf though that appear to be working based on tips from here and elsewhere: location ~* /neighborhoods/[-\w]+/feed/?$ { deny all; }