How To Disable Opera AdSense
This script doesn't block the AdSense ads inside Opera 7.2x/7.3 - it blocks
Opera 7.2/7.3 unregistered users from a website and registers a complaint to
Opera's server logs via the parameter. Call it a sledge hammer. Hopefully Opera
will get enough complaints to stop this but I think the horse is already out of
the barn. With an installed base of 10 million users - this is worse than Gator
or WhenU. What's next? AOL v9.0 or MSN v9.0 browsers?
Power corrupts - absolute power corrupts absolutely.
Line: Script and Edit suggestions
- <script script language="JavaScript" type="text/javascript">
- <!--
- onresize = check
- var Opera = (navigator.userAgent.indexOf('Opera') != -1) ? 1:0
- var OperaVersion =
navigator.userAgent.substring(navigator.userAgent.indexOf('Opera')+6,
navigator.userAgent.indexOf('Opera')+9) > 7.1 ? 1:0
- var OperaHacked = (window.opera && !Opera) ? 1:0
- var OperaAdvert = (screen.availHeight - window.outerHeight > 78) ? 1:0
- var OperaFullScreen =(screen.availHeight - window.outerHeight < 1) ? 1:0
- var OperaDivert = ((Opera && OperaVersion && (OperaAdvert ||
OperaFullScreen)) || OperaHacked) ? 1:0
- function check(){
- if (OperaDivert){
- top.location.replace("http://www.opera.com/contact/?do_not_use_Google_AdSense_at_my_site")
- alert ("Please ask Opera why your Opera browser has been blocked by this
site. It may have something to do with Opera displaying AdSense advertisements
on copyrighted material. If Opera hasn't responded in 30 minutes - please
resubmit. If they have not responded in 7 days - assume the worse and look for
another browser.")
- }}
- check()
- //-->
- </script>
ROBOTS.TXT
If you are not using AdSense in your website then you can add the following
to your robots.txt file:
User-agent: Mediapartners-Google*
Disallow:/
Amazon Associates Forum Threads On This Topic
MyOpera Forum Threads On This Topic
|