Cokama Tools

Cokama Security Headers

See which HTTP security headers and HTTPS checks your site is missing, then switch them on from WordPress.

Download free plugin

Free. Works with WordPress 6.5 or later and PHP 7.4 or later. Version 1.2.20.

Cokama Security Headers plugin hero image showing header check results.

Overview

Missing security headers are one of the first things a scanner flags, and one of the easier things to get wrong in server config. HSTS preload, in particular, is very hard to undo.

This WordPress security headers plugin fetches your home page, login page and admin headers, grades the usual set, and can send the missing ones from WordPress. Installing the plugin changes nothing. Each header is off until you tick it and save. Preload is never sent. HSTS max-age is capped at one year. Deactivating the plugin stops every header it was sending, but HSTS already stored in a browser stays until it expires. When you turn HSTS off, the plugin offers to send max-age=0 so browsers can forget it.

What it checks

  • Headers: HSTS without preload (max-age capped at one year), Content-Security-Policy Report-Only (an enforcing CSP is checked when the site already sends one, but this plugin will not send one), X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, and Cross-Origin policies.
  • HTTPS: whether the site is served over TLS, redirects including the www twin, and whether the certificate covers the host.
  • Couldn't test: if the request back to this site fails (a blocked loopback, a local certificate the PHP stack does not trust), that row is a check that could not run, not a pass.

How to use it

  1. Install and activate the plugin, then open Cokama Tools → Security Headers.
  2. Click Run check. Read the table. A missing header is not the same as a failed request.
  3. Open Set headers, tick only what you want, watch the preview, and save. Preload is never sent. HSTS max-age cannot go above one year.
  4. Run the check again. Turn all off puts every header this plugin sends back to off. If you turn HSTS off, you can send max-age=0 for 30 days so browsers forget it.
  5. Copy the report if you need to send it to a developer or a host.

Safe by default

Installing it changes nothing. Each header is off until you tick it and save. Deactivating the plugin stops every header it was sending. HSTS already stored in a browser stays until it expires; turning the plugin off cannot undo that. It does not write .htaccess or server config. Preload is never sent. HSTS max-age is capped at one year. It does not claim a header is present when the fetch could not run.

Privacy

The check only requests your own site. Nothing is sent to us.

Where we come in

Ticking two headers is straightforward. Writing a Content-Security-Policy that does not break your forms, fonts or payment pages, and keeping certificates and redirects correct across www and the apex, is the slower part. That is ordinary hosting and WordPress work for us.

Rather spend your time on your organisation than on your website?

The plugins point out the problems. A Cokama care plan sorts them out and keeps an eye on things afterwards. One price a year covers updates, backups, security checks, speed and email, with people in Dublin you can ring when something looks wrong. You get no surprise bills and you never have to hunt for a developer.

Talk to us about a care plan