{"id":2214,"date":"2017-06-28T09:47:30","date_gmt":"2017-06-28T16:47:30","guid":{"rendered":"https:\/\/blog.mozilla.org\/security\/?p=2214"},"modified":"2017-06-28T10:49:15","modified_gmt":"2017-06-28T17:49:15","slug":"analysis-alexa-top-1m-sites","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/","title":{"rendered":"Analysis of the Alexa Top 1M sites"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Prior to the release of the <\/span><a href=\"https:\/\/observatory.mozilla.org\/\"><span style=\"font-weight: 400;\">Mozilla Observatory<\/span><\/a><span style=\"font-weight: 400;\"> a year ago, I ran a scan of the Alexa Top 1M websites. Despite being available for years, <\/span><a href=\"https:\/\/pokeinthe.io\/2016\/04\/15\/state-of-security-alexa-one-top-million-2016-04\/\"><span style=\"font-weight: 400;\">the usage rates<\/span><\/a><span style=\"font-weight: 400;\"> of modern defensive security technologies was frustratingly low. A lack of tooling combined with poor and scattered documentation had led to there being little awareness around countermeasures such as <\/span><a href=\"https:\/\/wiki.mozilla.org\/Security\/Guidelines\/Web_Security#Content_Security_Policy\"><span style=\"font-weight: 400;\">Content Security Policy<\/span><\/a><span style=\"font-weight: 400;\"> (CSP), <\/span><a href=\"https:\/\/wiki.mozilla.org\/Security\/Guidelines\/Web_Security#HTTP_Strict_Transport_Security\"><span style=\"font-weight: 400;\">HTTP Strict Transport Security<\/span><\/a><span style=\"font-weight: 400;\"> (HSTS), and <\/span><a href=\"https:\/\/wiki.mozilla.org\/Security\/Guidelines\/Web_Security#Subresource_Integrity\"><span style=\"font-weight: 400;\">Subresource Integrity<\/span><\/a><span style=\"font-weight: 400;\"> (SRI).<\/span><\/p>\n<p><span style=\"font-weight: 400;\">A few months after the Observatory&#8217;s release \u2014 and 1.5M Observatory scans later \u2014 I reassessed the Top 1M websites. The situation appeared as if it was <\/span><a href=\"https:\/\/pokeinthe.io\/2016\/11\/14\/state-of-security-alexa-one-top-million-2016-11\/\"><span style=\"font-weight: 400;\">beginning to improve<\/span><\/a><span style=\"font-weight: 400;\">, with the use of HSTS and CSP up by approximately 50%. But were those improvements simply low-hanging fruit, or has the situation continued to improve over the following months?<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><b>Technology<\/b><\/td>\n<td style=\"text-align: center;\"><b>April 2016<\/b><\/td>\n<td style=\"text-align: center;\"><b>October 2016<\/b><\/td>\n<td style=\"text-align: center;\"><b>June 2017<\/b><\/td>\n<td style=\"text-align: center;\"><b>% Change<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Content Security Policy (CSP)<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.005%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>1<\/sup><br \/>\n<\/span><\/a><span style=\"font-weight: 400;\">.012%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>2<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.008%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>1<\/sup><br \/>\n<\/span><\/a><span style=\"font-weight: 400;\">.021%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>2<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.018%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>1<\/sup><br \/>\n<\/span><\/a><span style=\"font-weight: 400;\">.043%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>2<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+125%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Cookies (Secure\/HttpOnly)<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>3<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">3.76%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">4.88%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">6.50%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+33%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Cross-origin Resource Sharing (CORS)<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>4<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">93.78%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">96.21%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">96.55%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+.4%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">HTTPS<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">29.64%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">33.57%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">45.80%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+36%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">HTTP \u2192 HTTPS Redirection<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">5.06%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>5<\/sup><br \/>\n<\/span><\/a><span style=\"font-weight: 400;\">8.91%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>6<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">7.94%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>5<\/sup><br \/>\n<\/span><\/a><span style=\"font-weight: 400;\">13.29%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>6<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">14.38%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>5<\/sup><br \/>\n<\/span><\/a><span style=\"font-weight: 400;\">22.88%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>6<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+57%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Public Key Pinning (HPKP)<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.43%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.50%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.71%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+42%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\"> \u00a0\u2014 HPKP Preloaded<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>7<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.41%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.47%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.43%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #6c2b2b; font-weight: 400;\">-9%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Strict Transport Security (HSTS)<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>8<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">1.75%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">2.59%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">4.37%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+69%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\"> \u00a0\u2014 HSTS Preloaded<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>7<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.158%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.231%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.337%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+46%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Subresource Integrity (SRI)<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.015%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>9<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.052%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>10<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">0.113%<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>10<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+117%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">X-Content-Type-Options (XCTO)<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">6.19%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">7.22%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">9.41%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+30%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">X-Frame-Options (XFO)<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>11<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">6.83%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">8.78%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">10.98%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+25%<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">X-XSS-Protection (XXSSP)<\/span><a href=\"https:\/\/pokeinthe.io\/2017\/06\/13\/state-of-security-alexa-top-one-million-2017-06\/#footnotes\"><span style=\"font-weight: 400;\"><sup>12<\/sup><\/span><\/a><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">5.03%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">6.33%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">8.12%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+28%<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">The pace of improvement across the web appears to be continuing at an astounding rate. Although a 36% increase in the number of sites that support HTTPS might seem small, the absolute numbers are quite large \u2014 it represents over <\/span><b>119,000<\/b><span style=\"font-weight: 400;\"> websites.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Not only that, but <\/span><b>93,000<\/b><span style=\"font-weight: 400;\"> of those websites have chosen to be HTTPS by default, with <\/span><b>18,000<\/b><span style=\"font-weight: 400;\"> of them forbidding any HTTP access at all through the use of HTTP Strict Transport Security.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The sharp jump in the rate of Content Security Policy (CSP) usage is similarly surprising. It can be difficult to implement for a new website, and often requires extensive rearchitecting to retrofit to an existing site, as most of the Alexa Top 1M sites are. Between increasingly improving documentation, advances in CSP3 such as <\/span><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Headers\/Content-Security-Policy\/script-src#strict-dynamic\"><span style=\"font-weight: 400;\">&#8216;strict-dynamic&#8217;<\/span><\/a><span style=\"font-weight: 400;\">, and CSP policy generators such as the <\/span><a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/laboratory-by-mozilla\/\"><span style=\"font-weight: 400;\">Mozilla Laboratory<\/span><\/a><span style=\"font-weight: 400;\">, it appears that we might be turning a corner on CSP usage around the web.<\/span><\/p>\n<h3><b>Observatory Grading<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Despite this progress, the vast majority of large websites around the web continue to not use Content Security Policy and Subresource Integrity. As these technologies \u2014 when properly used \u2014 can nearly eliminate huge classes of attacks against sites and their users, they are given a significant amount of weight in Observatory scans.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As a result of their low usage rates amongst established websites, they typically receive failing grades from the Observatory. Nevertheless, I continue to see improvements across the board:<\/span><\/p>\n<table style=\"height: 153px;\" width=\"600\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\"><b>Grade<\/b><\/td>\n<td style=\"text-align: center;\"><b>April 2016<\/b><\/td>\n<td style=\"text-align: center;\"><b>October 2016<\/b><\/td>\n<td style=\"text-align: center;\"><b>June 2017<\/b><\/td>\n<td style=\"text-align: center;\"><b>% Change<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\"> \u00a0A+<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.003%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.008%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.013%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+62%<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">A<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.006%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.012%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.029%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+142%<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">B<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.202%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.347%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.622%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+79%<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">C<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.321%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">.727%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">1.38%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+90%<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">D<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">1.87%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">2.82%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">4.51%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">+60%<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">F<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">97.60%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">96.09%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"font-weight: 400;\">93.45%<\/span><\/td>\n<td style=\"text-align: center;\"><span style=\"color: #40702b; font-weight: 400;\">-2.8%<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400;\">As 969,924 scans were successfully completed in the last survey, a decrease in failing grades by 2.8% implies that over <\/span><b>27,000<\/b><span style=\"font-weight: 400;\"> of the largest sites in the world have improved from a failing grade in the last eight months alone.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In fact, my research indicates that over <\/span><b>50,000<\/b><span style=\"font-weight: 400;\"> websites around the web have directly used the Mozilla Observatory to improve their grades, indicated by scanning their website, making an improvement, and then scanning their website again. Of these <\/span><b>50,000<\/b><span style=\"font-weight: 400;\"> websites, over <\/span><b>2,500<\/b><span style=\"font-weight: 400;\"> have improved all the way from a failing grade to an A or A+ grade.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When I first built the Observatory a year ago at <\/span><a href=\"https:\/\/www.mozilla.org\/\"><span style=\"font-weight: 400;\">Mozilla<\/span><\/a><span style=\"font-weight: 400;\">, I had never imagined that it would see such widespread use. 3.8M scans across 1.55M unique domains later, it seems to have made a significant difference across the internet. I feel incredibly lucky to work at a company like Mozilla that has provided me with a unique opportunity to work on a tool designed solely to make internet a better place.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Please share the <\/span><a href=\"https:\/\/observatory.mozilla.org\/\"><span style=\"font-weight: 400;\">Mozilla Observatory<\/span><\/a><span style=\"font-weight: 400;\"> and the <\/span><a href=\"https:\/\/wiki.mozilla.org\/Security\/Guidelines\/Web_Security\"><span style=\"font-weight: 400;\">Web Security Guidelines<\/span><\/a><span style=\"font-weight: 400;\"> so that the web can continue to see improvements over the years to come!<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Footnotes:<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Allows <\/span><span style=\"font-weight: 400;\"><tt>'unsafe-inline'<\/tt><\/span><span style=\"font-weight: 400;\"> in neither <\/span><span style=\"font-weight: 400;\"><tt>script-src<\/tt><\/span><span style=\"font-weight: 400;\"> nor <\/span><span style=\"font-weight: 400;\"><tt>style-src<\/tt><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Allows <\/span><span style=\"font-weight: 400;\"><tt>'unsafe-inline'<\/tt><\/span><span style=\"font-weight: 400;\"> in <\/span><span style=\"font-weight: 400;\"><tt>style-src<\/tt><\/span><span style=\"font-weight: 400;\"> only<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Amongst sites that set cookies<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Disallows foreign origins from reading the domain&#8217;s contents within user&#8217;s context<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Redirects from HTTP to HTTPS on the same domain, which allows HSTS to be set<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Redirects from HTTP to HTTPS, regardless of the final domain<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">As listed in the <\/span><a href=\"https:\/\/code.google.com\/p\/chromium\/codesearch#chromium\/src\/net\/http\/transport_security_state_static.json\"><span style=\"font-weight: 400;\">Chromium preload list<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><tt>max-age<\/tt><\/span><span style=\"font-weight: 400;\"> set to at least six months<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Percentage is of sites that load scripts from a foreign origin<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Percentage is of sites that load scripts<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">CSP <\/span><span style=\"font-weight: 400;\"><tt>frame-ancestors<\/tt><\/span><span style=\"font-weight: 400;\"> directive is allowed in lieu of an XFO header<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Strong CSP policy forbidding <\/span><span style=\"font-weight: 400;\"><tt>'unsafe-inline'<\/tt><\/span><span style=\"font-weight: 400;\"> is allowed in lieu of an XXSSP header<\/span><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Prior to the release of the Mozilla Observatory a year ago, I ran a scan of the Alexa Top 1M websites. Despite being available for years, the usage rates of &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/\">Read more<\/a><\/p>\n","protected":false},"author":1227,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[],"coauthors":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Analysis of the Alexa Top 1M sites - Mozilla Security Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"April King\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/\",\"url\":\"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/\",\"name\":\"Analysis of the Alexa Top 1M sites - Mozilla Security Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/security\/#website\"},\"datePublished\":\"2017-06-28T16:47:30+00:00\",\"dateModified\":\"2017-06-28T17:49:15+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/security\/#\/schema\/person\/cab208d1e0249bd2da73bc39c3d542b7\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/security\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Analysis of the Alexa Top 1M sites\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/security\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/security\/\",\"name\":\"Mozilla Security Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/security\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/security\/#\/schema\/person\/cab208d1e0249bd2da73bc39c3d542b7\",\"name\":\"April King\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/security\/#\/schema\/person\/image\/dd59dfe8e9604d209d11d9a03e8ab3a6\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b874e43ec7b59fdca0b4f9b8c3b7cc1b?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b874e43ec7b59fdca0b4f9b8c3b7cc1b?s=96&d=identicon&r=g\",\"caption\":\"April King\"},\"description\":\"IRC: April\",\"sameAs\":[\"https:\/\/pokeinthe.io\/\",\"https:\/\/x.com\/aprilmpls\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Analysis of the Alexa Top 1M sites - Mozilla Security Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/","twitter_misc":{"Written by":"April King","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/","url":"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/","name":"Analysis of the Alexa Top 1M sites - Mozilla Security Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/security\/#website"},"datePublished":"2017-06-28T16:47:30+00:00","dateModified":"2017-06-28T17:49:15+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/security\/#\/schema\/person\/cab208d1e0249bd2da73bc39c3d542b7"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/security\/2017\/06\/28\/analysis-alexa-top-1m-sites\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/security\/"},{"@type":"ListItem","position":2,"name":"Analysis of the Alexa Top 1M sites"}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/security\/#website","url":"https:\/\/blog.mozilla.org\/security\/","name":"Mozilla Security Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/security\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/security\/#\/schema\/person\/cab208d1e0249bd2da73bc39c3d542b7","name":"April King","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/security\/#\/schema\/person\/image\/dd59dfe8e9604d209d11d9a03e8ab3a6","url":"https:\/\/secure.gravatar.com\/avatar\/b874e43ec7b59fdca0b4f9b8c3b7cc1b?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b874e43ec7b59fdca0b4f9b8c3b7cc1b?s=96&d=identicon&r=g","caption":"April King"},"description":"IRC: April","sameAs":["https:\/\/pokeinthe.io\/","https:\/\/x.com\/aprilmpls"]}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/posts\/2214"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/users\/1227"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/comments?post=2214"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/posts\/2214\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/media?parent=2214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/categories?post=2214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/tags?post=2214"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blog.mozilla.org\/security\/wp-json\/wp\/v2\/coauthors?post=2214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}