Likely culprits are "performance analyzers" that grade a website and report an "F" (failing) grade for not using CDN-hosted common libraries. This is a red herring: this idea that the user will already have a cached copy of CDN-hosted jQuery is bogus. Even for a common library like jQuery: the number of versions of jQuery that are in use is likely above 50, and the number of popular CDNs that host jQuery is surely ab…
Some analysis of the 1M most popular sites on the web
31–40 of 130 posts
Re: Some analysis of the 1M most popular sites on the web
#32We offload a ton of our scripts to S3 buckets on random unrelated domains and it's a pretty common practice. Did this take that into account?
Re: Some analysis of the 1M most popular sites on the web
#33This can now be mitigated thanks to Referrer Policy [0]:
"The simplest policy is No Referrer, which specifies that no referrer information is to be sent along with requests made from a particular settings object to any origin. The header will be omitted entirely."
Voilà:
It's a W3C draft, but it's supported by latest FF/Chrome/Safari, and Microsoft Edge [1], although currently, with Edge, you'll want to use the legacy keyword "never" instead. (AFAIK "never" works with all the aforementioned browsers.)> Google analytics junkies in particular will have to weigh whether they feel their users privacy is more important to them than their ability to analyze their users movements on the site.
There's a nice alternative - Piwik [2]. It's very much like GA, but GPL and self-hosted, and with various options for privacy [3]. You can even use it without cookies, if you don't mind the somewhat reduced accuracy and functionality.
Regarding fonts from Google Fonts, it's super-easy to host them yourself. There's a nice bash script [4] that downloads the font you want in all its formats/weights and generates the proper CSS. There's also the google-webfonts-helper service [5], and Font Squirrel has a webfont generator [6].
[0] https://w3c.github.io/webappsec/specs/referrer-policy/
[1] https://msdn.microsoft.com/en-us/library/dn904194%28v=vs.85%...
[3] https://piwik.org/docs/privacy/
[4] https://github.com/neverpanic/google-font-download
Re: Some analysis of the 1M most popular sites on the web
#34> Flash seems to be very rapidly on the way out, less than 1% of the domains I looked at still contained flash content What exactly did you look at? Homepages?
Re: Some analysis of the 1M most popular sites on the web
#35- able to prevent download of any third party hosted assets - able to hash the above assets and allow user to approve their use (ie can approve jquery v1.5 from cdn.google.com) - is this whitelist approach going to work? Does ghostery or similar already do this?
I vastly prefer a whitelist approach - but if 2/3 of the web will break I am at a loss ...
Re: Some analysis of the 1M most popular sites on the web
#36Likely culprits are "performance analyzers" that grade a website and report an "F" (failing) grade for not using CDN-hosted common libraries. This is a red herring: this idea that the user will already have a cached copy of CDN-hosted jQuery is bogus. Even for a common library like jQuery: the number of versions of jQuery that are in use is likely above 50, and the number of popular CDNs that host jQuery is surely ab…
Re: Some analysis of the 1M most popular sites on the web
#37I wonder what's considered external though. If I compile / minify my javascript and CSS and then use a CDN to cache or host it -- is this considered external?? If so, how is it different from trusting my hosting provider to host my site in the first place, or my domain provider for resolving for me? How can this analysis know whether or not the resource is external? based on dns records alone? because I can still use…
You can point *.my-domain.com to an external resource but it would see that resource as still under your control.
I will post the code soon.
Re: Some analysis of the 1M most popular sites on the web
#38Re: Some analysis of the 1M most popular sites on the web
#39> Flash seems to be very rapidly on the way out, less than 1% of the domains I looked at still contained flash content What exactly did you look at? Homepages?
Yes, homepages and all the content subsequently loaded (directly or indirectly through multiple layers of scripting or iframes). Essentially what you'd get if you were to visit each and every homepage on the top list and logged the urls that were loaded as a consequence of that.
Re: Some analysis of the 1M most popular sites on the web
#40Like, security is hard, comp sci was hard, so the websites are all built by social science grads and "designers" who know fuck all about security.