mod_sec SCRIPT_BASENAME not working?

optize

Well-Known Member
#1
I have a simple mod_sec rule to block spam.html:

SecRule SCRIPT_BASENAME "spam\.html" "t:none,deny"

This works fine in Apache, however it doesn't trigger on Litespeed.

Is this a known issue?
 

webizen

Well-Known Member
#2
litespeed skips modsec rules for static file like *.html as it would not cause any real issue. so it is by design not an overlook or bug.
 
Top