From 0f8f6d381c3a2e885dcd5bf903fc8452b6ca3171 Mon Sep 17 00:00:00 2001 From: Igor Hrcek Date: Mon, 21 Mar 2022 11:40:40 +0100 Subject: [PATCH] docs: Updated documentation for Security Headers --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 165dfdc..3f5436c 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,18 @@ Removes all security rules. wp secure flush ``` +### Add Security Headers +Adds the HSTS, Referrer-Policy, X-Content-Type-Options, X-Frame-Options and X-XSS-Protection + +You can choose to add all above or only one or more by using `--headers` argument. + +Example: +```bash +wp secure add-security-headers +wp secure add-security-headers --headers=Strict-Transport-Security +wp secure add-security-headers --headers=Strict-Transport-Security,X-Frame-Options +``` + ### Block the access to sensitive files and directories ```bash wp secure block-access