On Tue, Aug 24, 2004 at 10:55:49AM +1000, Peter Rundle wrote:

> is it possible to detect the users browser (assume yes) and then block / 
> ignore the request based on the browser being used (dunno).

Something like this should work (warning: completely untested, if it
breaks you get to keep both halves):

    acl MSIE browser Mozilla/[0-9]+\.[0-9]+ \(compatible; MSIE [0-9]+\.[0-9]+;
    http_access deny MSIE

This relies though on the user-agent header not being changed, although
if they're smart enough to change the user-agent, they're probably smart
enough to not use MSIE :-)

One thing to be aware of though: it'll block anyone faking the
user-agent to pretend to be MSIE to use their online banking.  You
might be able to stop that by setting the mozilla version in your regex
to 4.0 (AFAIK MSIE always uses 4.0) and having your users use a
different version number.


Cheers,

John
-- 
Holly: Rude alert! Rude alert! An electrical fire has knocked out my voice 
       recognition unicycle! Many Wurlitzers are missing from my database! 
       Abandon shop! This is not a daffodil. Repeat: This is _not_ a daffodil!
Rimmer: Well, thankfully Holly's unaffected.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to