FYI: CanvasBlocker can be detected by sites
moved from https://github.com/ghacksuserjs/ghacks-user.js/issues/12
https://github.com/kkapsner/CanvasBlocker/issues/114#issuecomment-295259795
Detection Test: https://kkapsner.github.io/CanvasBlocker/test/detectionTest.html
edit: other interesting links about Canvas fingerprinting:
- https://browserleaks.com/canvas#how-does-it-work
- Websites using HTML5 canvas fingerprinting - with code samples
- List of websites that track you using Canvas
- Canvas Fingerprinting Scripts - thanks @Atavic
=> shows the summary of canvas fingerprinting scripts found on the homepages of top 100K Alexa sites.
- LOL some of them didn't even change the "Text drawn into the canvas" :man_facepalming:
@zymase wrote:
@earthlng does your detection test concern only the CanvasBlocker add-on or does it detect the fact canvas is blocked, whatever the blocker? I am wondering if the other similar FF add-on, Canvas Defender would be detected by your test, and if is it detected by other sites as CanvasBlocker is.
@Gitoffthelawn wrote:
@zymase I just tested it for you. Canvas Defender is not detected.
@zymase wrote:
OK, @Gitoffthelawn .
Just wondering : earthlng's detection test mentions, here with CanvasBlocker:
function length: CB detected function name: CB not detected error provocation 1: CB not detected error provocation 2: CB not detected error provocation 3: CB not detectedI guess the result is all in function length?
I don't know that other addon. If it has a "fake readout" functionality it's possibly detectable too. If it only blocks canvas readout then that's detectable anyway. This test is specifically for CanvasBlocker. But if you look at the 3 year old bugzilla ticket that kkapsner him/her-self submitted, it mentions that any addon that uses exportFunction can be detected that way.
I'll echo my comment on Ghacks :+1:
I've just disabled CanvasBlocker (CB) and installed 'Canvas Defender' (CD) At this point I'm wondering if CD is reliable. Why?
CB with Block Mode=fake readout API has the option to notify the user when the fake mode is used. CD as well displays a notification.
When testing, both add-ons notified the canvas on the BrowserLeaks Canvas test page, but when testing on Google Maps, only CB notified, not CD. Google Maps definitely uses Canvas. So why did CD not notify me?
CD, 'Canvas Defender' ver. 1.1.0 is at this time marked as experimental by its developers. Maybe is that the explanation?
At this point I remain uncertain on what is the best option for managing Canvas tracking.
CB blocks the Javascript
what is the best option
CB on default uses spoofing as default, but I use it on block mode.
CB alone (block mode) isn't a good option, you should find some combo as this one. Are you going to block such fingerprinting APIs? Block most of them.
Otherwise, if you go with the spoofing option (on either CB or CD), you should check how much reliable are those spoofing methods. Altough spoofing sounds better to me, there are some issues to consider.
As far as I understand CB, when choosing CB with Block Mode=fake readout API the process is not that of blocking, literately. CB has several modes (see https://addons.mozilla.org/en-US/firefox/addon/canvasblocker/), and,
fake readout API: Canvas Blocker's default setting, and my favorite! All websites not on the white list or black list can use the
Moreover, as I mentioned above, CD didn't notify the active Canvas on Google Maps ...
If it didn't notify, maybe the site has bypassed CD. As Gorhill said on my last link above, these specific addons face many workarounds as counter actions by site owners and developers.
I don't know this spoofing reliability: does it spoof various browsers based on your OS? Is its randomness excessive, far and wide?
Well, the site mentioned above doesn't bypass CB ... and CB did not block the canvas (with Block Mode=fake readout API ) but spoofed it in fact, as far as I understand it. I even believe Google Maps just wouldn't run correctly with Canvas blocked.
Gmaps needs the Canvas API to be working correctly. Maybe CB works in a clever way, by spoofing a readout API response that doesn't break Gmaps? better ask @kkapsner
I've tested Google Maps (in fact the true Canvas requirement is Google Street View) with CB's BlockMode=Block Readout API and Google Street View failed (black screen).
Now, I read at https://addons.mozilla.org/en-US/firefox/addon/canvasblocker/reviews/890823/ the developer of CB answering this:
You could switch to "fake input"-mode which should not be detected. But this mode is less secure - fingerprinting over WebGL is possible with that.
So if Goofle Maps/Street View runs with CB/Block Mode=fake readout API it's maybe, as Atavic mentioned it, because that mode is bypassed by Google.
In fact when a Canvas blocker/defender doesn't break a Canvas page it is either because it's efficient either because the page bypassed it. This is cruel.
@Atavic wrote,
Maybe CB works in a clever way, by spoofing a readout API response that doesn't break Gmaps?
That's what I had in mind, a hope rather than a certitude, because of above mentioned.
All this brain storming for the sole purpose of trying to defeat Web tracking....
With CanvasBlocker / Block Mode=fake readout API , testing on;
1- https://browserleaks.com/canvas

-> Canvas signature different with every page reload
2-https://browserleaks.com/proxy

-> HTML5 Canvas Protection detected, as well as with the CanvasBlocker tester page ... ! : I tested previously is same conditions and the Canvas protection had not been detected. This is weird. !! : In fact, HTML5 Canvas Protection is detected when reloading that test page but not on first load.
PAUSE
This particular fingerprinting isn't so widely used and most of the sites using it call a Javacript file hosted by addthis.com but uBlock's Privacy filter list blocks it.
More here.
@Thorin-Oakenpants ,
With CB & fake readout API I get HTML5 Canvas Protection ✔ not detected This is at complete odds with your test
I did mention,
In fact, HTML5 Canvas Protection is detected when reloading that test page but not on first load.
When the test is first performed HTML5 Canvas Protection is not detected, When I reload the test page, HTML5 Canvas Protection is detected.
^^I have not detected on reload also.
Using CB, fake readout API, persistent
But the link provided by @earthlng gives me function length: CB detected
@crssi ,
^^I have not detected on reload also. Using CB, fake readout API, persistent
Tested again, Block mode = fake readout API 1- Random number generator = non persistent -> Not detected on initial page, detected on page reload 2- Random Number generator = persistent -> detected on initial page load (+ of course on reload).
This is mystery. Of course, as you, earthlng's link to CanvasBlocker detection test proves CB detected.
Reminds me my teen-age years, wondering if she loved me or not :)
To bring a little bit insight to the question if the canvas protection is detected or not: this protection detection is performed on a one pixel canvas. CB adds exactly one bit of entropy to one pixel. Therefor it's 50% that the pixel is not altered and therefore the detection does not work.
I will update my detection test to include this tests.
@kkapsner to the rescue... nice to have you here. :)
@kkapsner hi and thanks for chiming in here :)
this protection detection is performed on a one pixel canvas.
"this protection detection" - which one? https://browserleaks.com/proxy ?
I will update my detection test to include this tests.
I hope you don't mind that I copied your test file and hosted it on my repo to make it accessible online. I tried a couple of links to see if you had already set it up on your repo but it didn't seem like it. Maybe you could change the settings on your repo to make your test folder online accessible via a github.io page, that would be great.
Yes - the one from browserleaks.
I don't mind you copying it. But you're right having them online available ist better: http://kkapsner.github.io/CanvasBlocker/test/detectionTest.html