On Tue, Jul 22, 2003 at 06:47:55PM +1200, Vik Olliver wrote:
> On Mon, 2003-07-21 at 19:44, Matthew Gregan wrote:
> > On Mon, Jul 21, 2003 at 07:10:03PM +1200, Vik Olliver wrote:
> > > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
> > That's the default.
> 
> Hmm, so blocking ^Explorer.* wouldn't have done the trick?

Nope, but .*MSIE 6.0.* would work ... it's just a standard regexp, I
don't know if it has to be anchored (i.e. the leading and trailing
metas), you might get away with just MSIE (and you might have to quote
the space character too ... MSIE\ 6.0 - or, if that fails because the
parser is whitespace sensitive, MSIE.6.0 ...)

I suppose I could always rtfm ... 

Based on your current configuration, you could always identify the
allowed browser, and use the ! to negate ... i.e., rewrite if the
browser is NOT mine ...

As well as http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule
see http://httpd.apache.org/docs/misc/rewriteguide.html for specific
examples of how to perform common tasks, such as :-

Proxy Deny 
Description: 
How can we forbid a certain host or even a user of a special host from
using the Apache proxy? 

Solution: 
We first have to make sure mod_rewrite is below(!) mod_proxy in the
Configuration file when compiling the Apache webserver.  This way it
gets called _before_ mod_proxy. Then we configure the following for a
host-dependend deny... 

RewriteCond %{REMOTE_HOST} ^badhost\.mydomain\.com$ 
RewriteRule !^http://[^/.]\.mydomain.com.*  - [F] 

...and this one for a [EMAIL PROTECTED] deny: 

RewriteCond [EMAIL PROTECTED] [EMAIL PROTECTED] 
RewriteRule !^http://[^/.]\.mydomain.com.*  - [F] 

-jim

Reply via email to