View Single Post
  #4  
Old 05-14-2009, 12:34 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You should not use chroot with a hosting control panel unless the control panel support chroot.

For the security rule, if you want to block something like a URL "/blabla"

Just add a rule in modsec2.user.conf like
SecRule REQUEST_URI "/blabla"

then create a file to serve url "/blabla". remember, if file not found (404), LSWS will not go through the security rules.

then hit the URL, you will see 406 response, means that the request was blocked by security rule. check the audit_log, it should be logged.
Reply With Quote