News for hackers. Stuff that matters.
Re:Show HN: Adblock Analytics by zeeshanm on Wednesday December 02, 2015 @12:08PM (#10664178)
They are not storing cookies but simply relying on if an ad blocker blocks ads.js or not:

https://www.adblockanalytics.com/ads.js:

var d = document.createElement("div"); d.id='abaA'; d.style.display='none'; document.body.appendChild(d);

var abaA; if(!document.getElementById('abaA')) { abaA = 'N'; } else { abaA = 'Y'; }

https://www.adblockanalytics.com/analyze.js:

var r = new XMLHttpRequest(); r.open("POST","https://www.adblockanalytics.com/analyze/"); r.setRequestHeader("Content-type","application/x-www-form-urlencoded"); r.send("abaI="+abaI+"&abaA="+abaA+"&abaSw="+screen.width+"&abaSh="+screen.height+"&abaBw="+window.innerWidth+"&abaBh="+window.innerHeight);

Don't see any reason why an ad blocker would block them.

Re:Show HN: Adblock Analytics by amorgan on Wednesday December 02, 2015 @12:15PM (#10664234)
You are correct - no cookies or any visitor tracking is being used. We only track if the display of an ad is possible. And thanks for reminding me of the screen & window JavaScript variables. They aren't being used at all.
Re:Show HN: Adblock Analytics by pdkl95 on Wednesday December 02, 2015 @07:02PM (#10666819)
> open("POST","https://www.adblockanalytics.com/analyze/")

That's gong to cause confirmation bias.

Since you're still relying on trusting an unknown client to run your code and submit your result instead of simply parsing the server logs, you have aren't including anybody - with or without an ad blocker (either of which may include downloading ads.js straight to /dev/null) - who decides not to run that <script> tag.

> www.adblockanalytics.com/analyze/

Time to add another "IN A 0.0.0.0" record to the local resolver.

Re:Show HN: Adblock Analytics by amorgan on Thursday December 03, 2015 @03:14PM (#10672255)
The JavaScript screen & window variables have been removed.

https://www.adblockanalytics.com/analyze.js

var abaA; if(!document.getElementById('abaA')){ abaA='N'; } else{ abaA='Y'; } var r=new XMLHttpRequest(); r.open("POST","https://www.adblockanalytics.com/analyze/"); r.setRequestHeader("Content-type","application/x-www-form-urlencoded"); r.send("abaI="+abaI+"&abaA="+abaA);

Re:Show HN: Adblock Analytics by Cub3 on Wednesday December 02, 2015 @06:36PM (#10666694)
This is the same method I use to check for adblockers on my sites, is there an issue with this approach or?
Re:Show HN: Adblock Analytics by romanovcode on Friday December 04, 2015 @08:44AM (#10676236)
>Don't see any reason why an ad blocker would block them.

uBlock, for example is not only an ad-blocker but also a privacy enhancer. Maybe some users just don't like to be tracked.

Re:Show HN: Adblock Analytics by amorgan on Friday December 04, 2015 @09:03AM (#10676329)
We have no interest in tracking anyone and can't given our implementation. If you checkout our sample report (which is the same one that clients receive) all of the data is highly aggregated:

https://www.adblockanalytics.com/sample/