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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > USERAGENT BLOCK how

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2005, 08:48 PM
bacanak bacanak is offline
Member
 
Join Date: Jun 2005
Location: New York
Posts: 12
Default USERAGENT BLOCK how

I searched the forum but could not find any info

I wanna Block "Attacker" from accesing my server all headers with " attacker" should be dropped
please advice thnx
Reply With Quote
  #2  
Old 07-04-2005, 07:41 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please use URL rewrite for now, Apache compatible BrowserMatch will be added soon.
Reply With Quote
  #3  
Old 06-30-2008, 02:59 PM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
Quote:
Originally Posted by mistwang View Post
Please use URL rewrite for now, Apache compatible BrowserMatch will be added soon.
Bump.

Has this feature arrived? I can't find it.

If it never arrived, what would a v3.3.14 Request Filter rule look like that, for example, performed the same as the following in an Apache http.conf:
Code:
BrowserMatchNoCase ^Jakarta badbot
<Files *>
Order Allow,Deny
Allow from all
Deny from env=badbot
</Files>
?
Reply With Quote
  #4  
Old 06-30-2008, 03:49 PM
brrr brrr is offline
Senior Member
 
Join Date: Aug 2007
Posts: 94
Sorry - should have searched forum: request filter rule answered here:

http://www.litespeedtech.com/support...request+filter
Example Request Filter rule:
Code:
SecFilterSelective HEADER_USER_AGENT ^Jakarta
Checked and working.

Last edited by brrr; 06-30-2008 at 03:53 PM..
Reply With Quote
  #5  
Old 08-14-2008, 10:25 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Another vote for BrowserMatch

IE8 is going to practically require BrowserMatch to not break existing webpages.

Should be simple to impliment no? It's just a matter of testing the requested string against the user-agent?
Reply With Quote
  #6  
Old 08-14-2008, 10:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Since you can implement the same logic with a rewrite rule, we don't see the need for supporting BrowserMatch explicitly.
Reply With Quote
  #7  
Old 08-14-2008, 10:43 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Remember the idea is to be as completely compatible with existing htaccess files as possible.

I want to be able to use something as simple as this:
Code:
BrowserMatch MSIE ie8-support
Header set X-UA-Compatible IE=7 env=ie8-support
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Context settings to block directories zellster Install/Configuration 2 06-07-2006 10:37 PM
UserAgent whitelist in Hotlink protection chipus Feedback/Feature Requests 2 04-19-2005 06:15 AM
Request: Uploading text files for ip block lists MagicMike Feedback/Feature Requests 1 03-11-2005 09:30 AM


All times are GMT -7. The time now is 11:20 PM.



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