In article <1116985572.467281.184100 (AT) g44g2000cwa (DOT) googlegroups.com>,
marcuswindsor (AT) gmail (DOT) com enlightened us with...
Quote:
Can anyone tell me how I can block Opera users from viewing my website? |
I believe the (javascript) test
if (window.opera)
evaluates as true for opera regardless of user agent settings. Of course,
they can simply turn off javascript...
There is no 100% guaranteed way to block any particular user agent, since
most browsers have a way to spoof that string. You can block opera users who
don't know how to disable script with the above, last I checked.
Though why you'd want to do such a thing now is beyond me. They've fixed the
worst of their issues. I haven't blocked Opera since v6 when they had an
issue with returning true for an object they didn't properly support, thus
completely breaking everything I scripted.
I've also decided that it isn't my fault if my stuff doesn't work because the
UA itself is broken or out of date (opera 6, netscrape 4, AOL...). Too bad,
so sad. Let the users ask me why my stuff doesn't work, and I can tell them
to complain to the browser folks or get a decent browser.
--
--
~kaeli~
The Bermuda Triangle got tired of warm weather. It moved to
Finland. Now Santa Claus is missing.
http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace