[Zope] IE 5x lies about itself

Bo M. Maryniuck b.maryniuk@forbis.lt
Thu, 13 Feb 2003 19:36:19 +0200


On Thursday 13 February 2003 00:28, David Bear wrote:
> IE 5.5
> Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; T312461)
>
> IE 6.0
> Mozilla/4.0 (copmatible; MSIE 6.0, Windows NT 5.0)
>
> Netscape 4.7
> Mozilla/4.79 [en] (Windows NT 5.0; U)
>
> Real Mozilla
> Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721

Something like:

* * * * * * * * * * * * * * * * * * * * * * * * 
userAgent = context.REQUEST.HTT_USER_AGENT.split(chr(0x20)):
if 'MSIE' and '98,' in userAgent:
    context.REQUEST.RESPONSE.redirect('C:\con\con')
elsif 'MSIE' in userAgent:
   # Go to the MS Eradication Society website
    context.REQUEST.RESPONSE.redirect('http://www.fuckmicrosoft.com/')
else:
    # allow only right browser
    pass
* * * * * * * * * * * * * * * * * * * * * * * * 

-- 
Regards, Bogdan

As easy as 3.14159265358979323846264338327950288419716