I have been searching for quite some time and finally decided to posts this question on how Mod Security locks out a user from a domain.
I have a large site with a lot of legacy URL's with '$' and "%" in them, this was removed but there are legacy links all over that will trip some mod security rules.
The main issue is once a rule is triggered, a 403 error is returned as expected on that page, but going to any other page on the domain now will throw a 403 error as well utill the cookies are cleared on the browser. This of course is not user friendly as many people will not know about the clear cookies fix and If they are locked out I cant obviously let them know easily while not wanting to remove all the rules that cause this.
example of a url
[code] Request: GET /phpBB2/promotions/9927-1st-deposit-bonus-125%25move-up-sun-palace-casin.html Action Description: Access denied with code 403 (phase 2). Justification: Invalid URL Encoding: Non-hexadecimal digits used at REQUEST_URI. [/code]
this is a
950107: URL Encoding Abuse Attack Attempt
Also many errors in the Mod Security Log I see simply GET / as the trigger and that obviously is not the root cause.