docs: add caddy peppermint.json blocking instruction

This commit is contained in:
Starbeamrainbowlabs 2023-12-16 20:20:02 +00:00
parent f0289692d1
commit 11bc915990
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 10 additions and 0 deletions

View File

@ -57,6 +57,16 @@ $HTTP["url"] =~ "^/peppermint.json" {
}
```
#### Caddy
The Caddy web server makes it easy to block files. Add this to your `server` block if you have one, or if not just to the end of your file:
```caddy
@blocked {
path *peppermint.json
}
respond @blocked 403
```
#### Microsoft IIS
For those running IIS, the following will grant the appropriate read and write permissions to the IIS_IUSRS group, and prevent the peppermint.json file from being retrieved.