Forum Moderators: DixonJones

Message Too Old, No Replies

Alexa Toolbar Detection

         

Key_Master

5:51 am on Jan 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<html>
<head>
<title>Alexa Toolbar Detection</title>
<object id="BrowserProxy" classid="clsid:CA68BDCC-579C-4730-99F5-37C4E206E4F9"></object>
<script type="text/javascript" language="JavaScript">
function AlexaInstalled() {
document.write("Alexa Toolbar Detected");
}
window.onerror = AlexaInstalled;
</script>
</head>
<body>
<script type="text/javascript" language="JavaScript">
if (BrowserProxy.Version) {
document.write("Alexa Toolbar Detected");
}
else {
document.write("Alexa Toolbar Not Detected");
}
</script>
</body>
</html>

This may be the first script on the Internet capable of detecting the Alexa Toolbar. Let me begin by saying, the Alexa Toolbar is one of the worst pieces of spyware that I have ever encountered. I've sifted through each one of the garbage files they installed on my computer and it is mind boggling what you are allowing them to do with your data.

How does this script work? Well, the Alexa Toolbar does not like to be detected. If it encounters the ActiveX object above, it will deflect detection by causing a JavaScript error. However, this script detects the error and thus detects Alexa.

This script does not work with Netscape (yet). To avoid potential conflicts and errors, it should not be installed on the same page that contains other JavaScripts.

Feedback and testing encouraged!

Alexa Toolbar Detection [banbots.com]

andreasfriedrich

6:12 am on Jan 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It does nothing for me running IE6.0.2800 SP1 with the CLSID in the registry in the version you posted. There is a JavaScript error after BrowserCache.Version is accessed but it does not trigger the error handler. It is just silently ignored. I know because I tried putting an alert(); at the end of the script and it was not executed.

If I try to display BrowserCache.Version using alert instead of just using it as the condition in the if structure the error handler is triggered.

Andreas

Key_Master

6:18 am on Jan 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm, I have the same browser version and it worked fine. I made changes though using the alert boxes you suggested. Does it work for you now?

Brett_Tabke

6:19 am on Jan 10, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Dude! Must be that warm weather down there giving you extra time? lol. Worked perfect. Appreciated.

andreasfriedrich

6:38 am on Jan 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It worked after I lowered my security settings. You need to allow execution of ActiveX thingies that are not marked safe for execution.

Andreas