EN, Change language
Englishالعربية
BH-123

The server sends protective headers (HSTS, X-Content-Type-Options, frame protection, a content security policy).

The requirement

The server sends protective headers (HSTS, X-Content-Type-Options, frame protection, a content security policy).

Why it matters to users

Without protective headers, a government site can be framed inside a fake page that tricks citizens into clicking, or have code injected that steals what they type. The citizen cannot tell the real site from the compromised one.

How to fix it

Configure the server to send Strict-Transport-Security, X-Content-Type-Options: nosniff, frame protection (frame-ancestors or X-Frame-Options) and a Content-Security-Policy with every response. Then scan again.

How we measure it

Response headers of the homepage. The source (2.4.3, measures against common web attacks) names no header: these four are xfix's measurable proxy for it.

Its official source

Related rules

Protective security headers · Bahrain BH-123 | xfix