The article talks about things involved in this fingerprinting that is beyond the User Agent, so likely the method being used to get this information from the client is going to be javascript. Obviously the answer here is to whitelist sites for javascript, meaning unless the known good site you visited is compromised (such as from ads or external includes) then you are more likely to be safe.