I'm trying to limit requests to an API on an internal site
I've managed to implement mod_evasive to successfully block requests after a specific amount in a specific time.
But this is causing problems for users of the webUI
I've tried limiting the scope of mod_evasive to the api directory but Apache2 is complaining about an invalid config file
<Location /api >
<IfModule mod_evasive20.c>
DOSPageCount 2
DOSSiteCount 50
..
</IfModule>
</Location>
Any ideas SO?