Skip to content

Commit

Permalink
docs: Updated documentation for Security Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
igorhrcek committed Mar 21, 2022
1 parent 11cb19a commit 0f8f6d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <what-to-block>
Expand Down

0 comments on commit 0f8f6d3

Please sign in to comment.