mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 01:35:02 +00:00
docs: add caddy peppermint.json blocking instruction
This commit is contained in:
parent
f0289692d1
commit
11bc915990
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue