From 11bc9159900c839befff292104da53e21e98286f Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 16 Dec 2023 20:20:02 +0000 Subject: [PATCH] docs: add caddy peppermint.json blocking instruction --- docs/04-Getting-Started.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/04-Getting-Started.md b/docs/04-Getting-Started.md index d50d14e..c402dad 100644 --- a/docs/04-Getting-Started.md +++ b/docs/04-Getting-Started.md @@ -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.