diff options
Diffstat (limited to 'guix/etc/nginx/apps/drupal/hotlinking_protection.conf')
-rw-r--r-- | guix/etc/nginx/apps/drupal/hotlinking_protection.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/guix/etc/nginx/apps/drupal/hotlinking_protection.conf b/guix/etc/nginx/apps/drupal/hotlinking_protection.conf new file mode 100644 index 0000000..f2926e1 --- /dev/null +++ b/guix/etc/nginx/apps/drupal/hotlinking_protection.conf @@ -0,0 +1,10 @@ +# -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*- + +### Hotlinking protection for images. Include it in any context you +### want. Adjust the list of allowed referers to your liking. + +valid_referers none blocked *.example.com *.google.com my.site.com; + +if ($invalid_referer) { + return 200 "No image hotlinking allowed!\n"; +} |