1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

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

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 #### 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. 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.