=== Antypas Security Headers ===
Contributors: ioannisantypas
Tags: security, headers, csp, hsts, security headers
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add recommended HTTP security headers with safe defaults, a live A to F grade, and a built-in conflict check for other security plugins.

== Description ==

Antypas Security Headers adds the HTTP response headers that browsers use to harden your site against clickjacking, MIME sniffing, mixed content and other common issues. It ships with a safe default set that will not break a normal site, and gives you careful, well-explained control over the more powerful headers.

= What it sends =

* X-Content-Type-Options, X-Frame-Options and Referrer-Policy are on by default. These are widely compatible and rarely cause problems.
* Strict-Transport-Security (HSTS), Content-Security-Policy, Permissions-Policy and the Cross-Origin isolation headers are available but off by default, because they need testing before they are enforced.

= Security grade =

A dashboard shows a live A to F grade based on which recommended headers are active, so you can see your baseline at a glance and exactly what to enable to improve it. An Apply recommended safe set button turns on the safe headers in one click.

= Built-in conflict check =

Many sites already run a security plugin such as Wordfence, Solid Security, Sucuri or Really Simple SSL, and some of those also send security headers. This plugin includes a conflict check that:

* Detects other known security and header plugins that are active and names them.
* Watches the real response and flags any header that another plugin or your server is already sending.
* Offers an Avoid duplicate headers mode, on by default, that defers to the existing source instead of sending a second copy, so you do not end up with conflicting duplicate headers.

= Honest about scope =

Security headers are defense in depth. They make a real difference, but they are not a substitute for keeping WordPress, themes and plugins updated, using strong passwords, and taking backups. HSTS and Content-Security-Policy in particular can break a site if misconfigured, which is why they are off by default and clearly labelled.

No API keys, no external services, no tracking. Nothing about your site leaves your server.

== Installation ==

1. Upload the plugin to your wp-content/plugins directory, or install it from the Plugins screen in WordPress.
2. Activate it. The safe header set is enabled automatically.
3. Open Security Headers from the admin menu to see your grade, run the conflict check, and configure the advanced headers.

== Frequently Asked Questions ==

= Will this break my site? =

The default headers are chosen to be safe on a normal site. The headers that can break things, HSTS and Content-Security-Policy, are off until you deliberately turn them on, and each carries a clear warning.

= I already use Wordfence or Really Simple SSL. Is that a problem? =

No. The conflict check detects those plugins and, with Avoid duplicate headers on, this plugin will not send a header that another source already sends. You can also simply choose which plugin owns each header.

= Does it work with caching and CDNs? =

Yes. Headers are sent by WordPress on each request. If a CDN or your server also sets some of these headers, the conflict check will show you, and Avoid duplicate headers keeps things clean.

= How is the grade calculated? =

It reflects how many of the six recommended headers are active: X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy, HSTS and Content-Security-Policy. It is a guide, not an external scan.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
First release of Antypas Security Headers.