Skip to content
FixSecurityHeadersScan a site

Only the domain and grade are shown. Uncheck to remove it.

www.wordpress.org

Score 25/100 · Stack WordPress · HTTP 200

Final URL: https://wordpress.org/ · Scanned Fri, 27 Nov 2026 07:55:28 GMT

PCI DSS 4.0 6.4.3 & 11.6.1NIST 800-171 / CMMC L2OWASP ASVS V14.4SOC 2 CC6

Email me this report

We'll send the grade and a link to this report. One email, no newsletter.

Header results

Your fixes

Detected WordPress from WordPress link/pingback header, Server: nginx. Also detected: Nginx.

Copy all: WordPress

Paste into functions.php (child theme) or a headers plugin. Purge your caching plugin and CDN, then curl -I your homepage.

functions.php (child theme) or a headers plugin
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('Strict-Transport-Security: max-age=63072000; includeSubDomains; preload');
    header('Content-Security-Policy: default-src \'self\'; script-src \'self\'; style-src \'self\'; img-src \'self\' data: https:; object-src \'none\'; base-uri \'self\'; frame-ancestors \'none\'; form-action \'self\'; upgrade-insecure-requests');
    header('X-Content-Type-Options: nosniff');
    header('Referrer-Policy: strict-origin-when-cross-origin');
    header('Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=()');
    header('Cross-Origin-Opener-Policy: same-origin');
    header('Cross-Origin-Resource-Policy: same-origin');
});
  • If you can, set headers in nginx, Apache or your CDN instead. PHP headers don't reach static files.
  • Page caching plugins can keep serving cached responses without the new headers until you purge them.

Strict-Transport-Security

What it does
HSTS tells the browser to go straight to HTTPS for your domain for a set period. Someone types http://, clicks an old link or follows a bookmark from 2015, and the browser upgrades it before a single byte goes out in the clear.
Risk if missing
Without it, that first request can go out over plain HTTP. On hotel or coffee shop Wi-Fi, an attacker can intercept it and keep the victim on HTTP while they talk HTTPS to you (SSL stripping).

Recommended value: max-age=63072000; includeSubDomains; preload

Strict-Transport-Security · WordPress
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('Strict-Transport-Security: max-age=63072000; includeSubDomains; preload');
});

Gotchas

  • Don't add preload on day one. Getting off the browser preload list takes months, and you can't speed it up.
  • includeSubDomains will break any subdomain still serving plain HTTP. That forgotten legacy.example.com box counts. Audit first.
  • Roll out with a short max-age like 300, check nothing breaks, then raise it to one or two years.
  • Browsers ignore HSTS on plain HTTP responses. It has to come back on the HTTPS response.
Full guide: Strict-Transport-Security on WordPress

Content-Security-Policy

What it does
CSP lists where your page is allowed to load scripts, styles, images, frames and connections from. Anything not on the list gets blocked. It's the best header-level defence against cross-site scripting you have.
Risk if missing
With no CSP, any script that gets onto the page (an XSS bug, a compromised analytics tag, a Magecart skimmer) runs with full access to your users' sessions and whatever they type into your forms.

Recommended value: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests

Content-Security-Policy · WordPress
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('Content-Security-Policy: default-src \'self\'; script-src \'self\'; style-src \'self\'; img-src \'self\' data: https:; object-src \'none\'; base-uri \'self\'; frame-ancestors \'none\'; form-action \'self\'; upgrade-insecure-requests');
});

Gotchas

  • Ship it as Content-Security-Policy-Report-Only first and read the violation reports for a week or two before you enforce.
  • 'unsafe-inline' or 'unsafe-eval' in script-src throws away most of the XSS protection. Use nonces or hashes instead.
  • Analytics, chat widgets and payment iframes each need their hosts added. Expect to find a few you forgot about.
  • Send one CSP header, not two. Multiple policies are intersected, so the result is usually stricter than either one and things break in confusing ways.
Full guide: Content-Security-Policy on WordPress

X-Content-Type-Options

What it does
With nosniff set, the browser trusts the Content-Type you send instead of guessing from the file contents. An uploaded .txt file stays a text file and can't be run as a script.
Risk if missing
MIME sniffing can turn user uploads or JSON responses into something the browser executes as script or applies as a stylesheet.

Recommended value: nosniff

X-Content-Type-Options · WordPress
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('X-Content-Type-Options: nosniff');
});

Gotchas

  • If your server sends wrong Content-Type values (JavaScript served as text/plain is the classic), those files will stop loading once nosniff is on. Fix the types, don't drop the header.
Full guide: X-Content-Type-Options on WordPress

Referrer-Policy

What it does
Referrer-Policy decides what URL information the browser sends in the Referer header when users click a link or your page loads something from another site.
Risk if missing
Full URLs can leak to third parties, including password reset tokens, search terms and internal paths you'd rather nobody saw.

Recommended value: strict-origin-when-cross-origin

Referrer-Policy · WordPress
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('Referrer-Policy: strict-origin-when-cross-origin');
});

Gotchas

  • no-referrer is stricter, but it can wreck analytics attribution and break some payment and SSO flows that check the referrer.
Full guide: Referrer-Policy on WordPress

Permissions-Policy

What it does
Permissions-Policy switches off powerful browser APIs for your page and anything it embeds, unless you explicitly allow them.
Risk if missing
An injected or third-party script could ask for the camera, microphone, location or payment APIs. Most sites never use these, so there's no reason to leave them available.

Recommended value: camera=(), microphone=(), geolocation=(), payment=(), usb=()

Permissions-Policy · WordPress
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=(), usb=()');
});

Gotchas

  • Allow the features you actually use, for example payment=(self) if your checkout uses the Payment Request API.
  • Drop interest-cohort=() if you copied it from an old guide. FLoC was abandoned and browsers now log a console warning for it.
Full guide: Permissions-Policy on WordPress

Cross-Origin-Opener-Policy

What it does
COOP puts your page in its own browsing context group, so a window opened from another origin can't get a reference to it (and vice versa).
Risk if missing
Cross-window attacks like XS-Leaks and tabnabbing, plus Spectre-style side channels.

Recommended value: same-origin

Cross-Origin-Opener-Policy · WordPress
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('Cross-Origin-Opener-Policy: same-origin');
});

Gotchas

  • OAuth and payment pop-ups that report back through window.opener will break under same-origin. Use same-origin-allow-popups for those pages.
Full guide: Cross-Origin-Opener-Policy on WordPress

Cross-Origin-Resource-Policy

What it does
CORP tells browsers which origins are allowed to embed your images, scripts and other files.
Risk if missing
Other sites can embed your resources and use side channels to infer data from them.

Recommended value: same-origin

Cross-Origin-Resource-Policy · WordPress
<?php
// Child theme functions.php (or a small mu-plugin)
add_action('send_headers', function () {
    header('Cross-Origin-Resource-Policy: same-origin');
});

Gotchas

  • Assets that other sites are meant to embed (a public CDN, an embeddable widget) need cross-origin instead.
Full guide: Cross-Origin-Resource-Policy on WordPress

Redirect chain

  1. 301 → https://www.wordpress.org/
  2. 200 https://wordpress.org/

Raw response headers

curl -I https://wordpress.org/
server: nginx
date: Fri, 27 Nov 2026 07:55:28 GMT
content-type: text/html; charset=UTF-8
transfer-encoding: chunked
connection: close
vary: Accept-Encoding, accept, content-type
strict-transport-security: max-age=3600
x-olaf: ⛄
link: <https://wordpress.org/wp-json/>; rel="https://api.w.org/", <https://wordpress.org/wp-json/wp/v2/pages/457>; rel="alternate"; title="JSON"; type="application/json", <https://w.org/>; rel=shortlink
x-frame-options: SAMEORIGIN
alt-svc: clear
x-remembering: Eric Binnion <https://friendsofericbinnion.wordpress.com/>
x-nc: EXPIRED dca 1