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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > SecFilterSelective HTTP_X_MOZ "prefetch" <-- broken!

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2007, 10:42 AM
phallstrom phallstrom is offline
Member
 
Join Date: Jan 2007
Posts: 28
Default SecFilterSelective HTTP_X_MOZ "prefetch" <-- broken!

Hi -

I am trying to block google's web accelerator. I have the following request filter setup:

Action: log,deny,status:403,msg:'GWA Prefetch'
Rule: SecFilterSelective HTTP_X_MOZ "prefetch"

I then test it using curl:

curl --header "X-Moz: prefetch" -v -I http://example.com

It returns a valid 200 response. If I change the rule to:

SecFilterSelective HTTP_USER_AGENT "curl"

Then it mostly works. It doesn't return a 403, but does return a 404.

This is occurring on standard edition, linux x86, version 3.2.2.

I've also tried the "REQUEST_HEADERS:X-Moz" which resulted in an error in the log files saying it was an unknown variable and couldn't be parsed.

Can you tell me if this is a known bug, if there's a work around and how we can get it to return a 403 instead of 404?
Reply With Quote
  #2  
Old 09-28-2007, 12:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
X-Moz is a custom header, not being recoginzed by the security engine now. You can let the engine to scan the whole request header for the signature.

Last edited by mistwang; 09-28-2007 at 12:22 PM..
Reply With Quote
  #3  
Old 09-28-2007, 12:26 PM
phallstrom phallstrom is offline
Member
 
Join Date: Jan 2007
Posts: 28
Ok. Thanks. It would be great if the security engine recognized every header, but maybe there are reasons it can't do that.
Reply With Quote
  #4  
Old 09-28-2007, 01:03 PM
phallstrom phallstrom is offline
Member
 
Join Date: Jan 2007
Posts: 28
can you tell me why it's returning a 404 instead of a 403? If I get it working by scanning all the headers will it work correctly? it didn't when i tested against the user agent.
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 06:33 AM.



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