<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anas Charfi</title>
    <description>The latest articles on DEV Community by Anas Charfi (@anascharfi).</description>
    <link>https://dev.to/anascharfi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4269634%2F232d2350-ca5b-4abc-844f-38197b391dd8.png</url>
      <title>DEV Community: Anas Charfi</title>
      <link>https://dev.to/anascharfi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anascharfi"/>
    <language>en</language>
    <item>
      <title>We checked 4,326 top websites in 50 countries: only 4% send all seven security headers</title>
      <dc:creator>Anas Charfi</dc:creator>
      <pubDate>Sat, 28 Nov 2026 09:26:43 +0000</pubDate>
      <link>https://dev.to/anascharfi/we-checked-4326-top-websites-in-50-countries-only-4-send-all-seven-security-headers-4en0</link>
      <guid>https://dev.to/anascharfi/we-checked-4326-top-websites-in-50-countries-only-4-send-all-seven-security-headers-4en0</guid>
      <description>&lt;p&gt;Security headers are the cheapest defence on the web. They're a few lines of server config, they cost nothing at runtime, and every modern browser enforces them. So we wanted to know how many of the most-visited websites in the world actually send them.&lt;/p&gt;

&lt;p&gt;On 25 November 2026 we loaded the homepages of the top 100 websites in each of 50 countries and counted which of seven browser security headers each one returns. 4,326 sites answered over HTTPS.&lt;/p&gt;

&lt;h2&gt;
  
  
  The headline numbers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The average top website sends &lt;strong&gt;2.78 of 7&lt;/strong&gt; headers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;185 sites (4%)&lt;/strong&gt; send all seven.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1,005 sites (23%)&lt;/strong&gt; send none at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here's how many sites send each header:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Header&lt;/th&gt;
&lt;th&gt;Sites that send it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frame protection (&lt;code&gt;X-Frame-Options&lt;/code&gt; or CSP &lt;code&gt;frame-ancestors&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;58.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;Strict-Transport-Security&lt;/code&gt; (HSTS)&lt;/td&gt;
&lt;td&gt;54.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;X-Content-Type-Options&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;53.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Referrer-Policy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;38.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Content-Security-Policy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;37.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Permissions-Policy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;21.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Cross-Origin-Opener-Policy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;13.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Even HSTS, the oldest and simplest of the set, is missing on almost half of these homepages. That's every top site in the sample serving its first response without telling the browser "only ever talk to me over HTTPS".&lt;/p&gt;

&lt;h2&gt;
  
  
  How sites score
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Sites&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0 of 7&lt;/td&gt;
&lt;td&gt;1,005&lt;/td&gt;
&lt;td&gt;23%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 of 7&lt;/td&gt;
&lt;td&gt;569&lt;/td&gt;
&lt;td&gt;13%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 of 7&lt;/td&gt;
&lt;td&gt;546&lt;/td&gt;
&lt;td&gt;13%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3 of 7&lt;/td&gt;
&lt;td&gt;475&lt;/td&gt;
&lt;td&gt;11%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4 of 7&lt;/td&gt;
&lt;td&gt;593&lt;/td&gt;
&lt;td&gt;14%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 of 7&lt;/td&gt;
&lt;td&gt;428&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6 of 7&lt;/td&gt;
&lt;td&gt;525&lt;/td&gt;
&lt;td&gt;12%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7 of 7&lt;/td&gt;
&lt;td&gt;185&lt;/td&gt;
&lt;td&gt;4%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The distribution is flat, not a bell curve. Some teams treat headers as a checklist and get to 6 or 7. A quarter of top sites have never touched them.&lt;/p&gt;

&lt;h2&gt;
  
  
  By country
&lt;/h2&gt;

&lt;p&gt;The top five by average score: the Philippines (3.77), the United Arab Emirates (3.68), Australia (3.49), Finland (3.46) and Singapore (3.46).&lt;/p&gt;

&lt;p&gt;The bottom five: Israel (2.04), Nigeria (2.03), Vietnam (1.98), Japan (1.62) and South Korea (1.44). In South Korea, 51% of the top homepages send none of the seven.&lt;/p&gt;

&lt;p&gt;The full 50-country table is on the &lt;a href="https://automatic-qa.arclay.tn/research/security-headers-2026" rel="noopener noreferrer"&gt;study page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method
&lt;/h2&gt;

&lt;p&gt;For each of 50 country-code TLDs we took the first 100 domains in the &lt;a href="https://tranco-list.eu/" rel="noopener noreferrer"&gt;Tranco&lt;/a&gt; top-1M research list, excluding major global platforms, plus the top 500 generic domains as a separate global group. Each homepage was loaded once with an ordinary browser-like request. A site scores one point per header present: HSTS, CSP, &lt;code&gt;X-Content-Type-Options&lt;/code&gt;, frame protection, &lt;code&gt;Referrer-Policy&lt;/code&gt;, &lt;code&gt;Permissions-Policy&lt;/code&gt; and &lt;code&gt;Cross-Origin-Opener-Policy&lt;/code&gt;. Percentages are of sites that answered over HTTPS (67 to 97 per country).&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A homepage isn't a whole site. Logged-in pages often have stricter headers.&lt;/li&gt;
&lt;li&gt;Presence isn't quality. &lt;code&gt;Content-Security-Policy: default-src *&lt;/code&gt; counts as "sent" here and protects almost nothing.&lt;/li&gt;
&lt;li&gt;Headers are one layer of defence. A missing header does &lt;strong&gt;not&lt;/strong&gt; mean a site is vulnerable or has been attacked.&lt;/li&gt;
&lt;li&gt;We publish aggregates only and name no site.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Check your own site
&lt;/h2&gt;

&lt;p&gt;If you want to see where your site lands against this set, we put the benchmark behind a free grader: &lt;a href="https://automatic-qa.arclay.tn/tools/website-security-grade" rel="noopener noreferrer"&gt;website security grade&lt;/a&gt;. It makes one GET to your homepage, no signup.&lt;/p&gt;

&lt;p&gt;If your site scores low, the fix is usually five to ten lines in your web server or framework config. I'll cover the exact config for nginx, Express and Next.js in the next post.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I work on Automatic QA at Arclay, which runs this study and the grader. Questions about the method are welcome in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>research</category>
      <category>http</category>
    </item>
  </channel>
</rss>
