LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > modsec issues

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2012, 11:21 AM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Default modsec issues

Can someone help me figure out why this modsec rule don't work in Litespeed, but work in Apache?

SecRule REQUEST_FILENAME ".{1,}paypal\.com{1,}" "phase:1,t:none,log,deny"

It's a simple request, to block the request if there is paypal.com anywhere in the URL string.

example: domain.com/hi/paypal.com/file.html or domain.com/hellopaypal.com/

Is there another way I should be doing this via Litespeed?
Reply With Quote
  #2  
Old 10-08-2012, 08:09 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
you can try a rewrite rule.
LiteSpeed modsec engine only block URL that does not result in 404 or static file.
Reply With Quote
  #3  
Old 10-08-2012, 08:13 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Quote:
Originally Posted by mistwang View Post
you can try a rewrite rule.
LiteSpeed modsec engine only block URL that does not result in 404 or static file.
Is there a way to turn that off? We're trying to block phishing attempts, which are all static files.
Reply With Quote
  #4  
Old 10-08-2012, 08:17 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We can add an option in next release.
Reply With Quote
  #5  
Old 02-23-2013, 05:21 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Quote:
Originally Posted by mistwang View Post
We can add an option in next release.
Was this added?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:07 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.