summaryrefslogtreecommitdiff
path: root/historic/guix/etc/nginx/apps/drupal/hotlinking_protection.conf
diff options
context:
space:
mode:
Diffstat (limited to 'historic/guix/etc/nginx/apps/drupal/hotlinking_protection.conf')
-rw-r--r--historic/guix/etc/nginx/apps/drupal/hotlinking_protection.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/historic/guix/etc/nginx/apps/drupal/hotlinking_protection.conf b/historic/guix/etc/nginx/apps/drupal/hotlinking_protection.conf
new file mode 100644
index 0000000..f2926e1
--- /dev/null
+++ b/historic/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";
+}