commit ff2415f34821cba95bc7cb3bedc4b7befac2ff2f parent 8b3728f23e71b9d656526a0d0d390265025b382c Author: corndog <cauchyn@firemail.cc> Date: Thu, 18 Oct 2018 22:51:37 -0700 Correct hotlink protection I actually read what the rewrite and status directives do. Diffstat:
| Caddyfile | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Caddyfile b/Caddyfile @@ -26,10 +26,10 @@ grgr.me { } rewrite { if {>Referer} not "" - if {>Referer} not_match ^https?:\/\/grgr\.me - to /static + if {>Referer} not_starts_with "https://grgr.me/" + to /hotlink } - status 403 /static + status 403 /hotlink minify gzip }