Forum Moderators: DixonJones
<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]
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