aboutsummaryrefslogtreecommitdiff
path: root/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Caddyfile b/Caddyfile
index ff902c8..404b190 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -2,6 +2,10 @@
# Site's directory
root * /var/www/html/src
+ # Block direct access to JSON data files
+ @jsonFiles path *.json
+ respond @jsonFiles 404
+
# Enable the static file server.
file_server