Last week we published how many of seven security headers the top websites of 50 countries send. The same scan recorded three more things that cost one line of config to fix, so here they are.
On 25 November 2026 we loaded the homepage of the top 100 websites in each of 50 countries once, with an ordinary browser-like request. 4,326 sites answered over HTTPS. These are aggregates; no site is named.
1. Cookies without Secure
2,078 of those homepages set at least one cookie on the first visit. Of those:
- 49% set at least one cookie without the
Secureflag, so the browser may send it over plain HTTP. - 60% set at least one cookie without
HttpOnly, so any script on the page can read it.
Not every cookie needs HttpOnly (a consent banner reads its own cookie), but almost every cookie on an HTTPS site should carry Secure.
Countries with at least 20 cookie-setting homepages ranged from 23% (Colombia) and 27% (New Zealand) to 71–76% (Japan, Vietnam, Egypt) for the share with an insecure cookie.
The fix:
Set-Cookie: session=…; Secure; HttpOnly; SameSite=Lax; Path=/ In Express, cookie: { secure: true, httpOnly: true, sameSite: 'lax' } on your session middleware (behind a proxy, also app.set('trust proxy', 1)). In PHP, session.cookie_secure = 1 and session.cookie_httponly = 1.
2. Server version in the headers
9.7% of homepages send a Server or X-Powered-By header with an exact version, such as Apache/2.4.41 or PHP/7.4.3. A version string doesn't make a site vulnerable, but it tells a scanner which known issues to try first, and it often shows a server that hasn't been updated in years.
The share ranged from 2% (France, New Zealand) to 28% (Tunisia).
The fix:
# nginx server_tokens off; # Apache ServerTokens Prod ServerSignature Off # PHP (php.ini) expose_php = Off In Express, app.disable('x-powered-by').
3. Plain HTTP that never reaches HTTPS
We also requested http:// for each site. Of those that answered, 87% redirected straight to https://. The rest served the page over plain HTTP or sent the visitor to another http:// address first.
The best countries redirected 94–99% (Sweden, Singapore, Norway); the lowest were 76–77% (Japan, Argentina) and 66% (Israel).
The fix is a permanent redirect on port 80, and then HSTS so the browser stops trying plain HTTP at all:
# nginx server { listen 80; server_name example.com www.example.com; return 301 https://$host$request_uri; } # in the HTTPS server block add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; Your own site
Every country has its own page with these numbers, header by header: for example Germany, Japan or Brazil. The full ranking and method are on one page.
To see where your own homepage stands, the free security grade loads it once and compares it with the 4,326 sites. No signup.
Limits: one homepage load per site, on one day, from one location. A homepage is not a whole site, a missing flag is not proof of a vulnerability, and these checks are one layer of defence, not a security test.
Data: Security headers study 2026, Automatic QA by Arclay.
