From 836ebbaa8ed40d3e3d5c4b75b33a2826ba34e871 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 20 Jun 2013 22:49:04 -0400 Subject: [PATCH] Comment out example anti-hotlinking rules --- config/nginx.sample.conf | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 7e193f948ec..83da2e88214 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -21,12 +21,13 @@ server { location / { root /home/discourse/discourse/public; - location ~ \.(jpe?g|png|gif)$ { - valid_referers none blocked mysite.com *.mysite.com; - if ($invalid_referer) { - return 403; - } - } + ## optional image anti-hotlinking rules + #location ~ \.(jpe?g|png|gif)$ { + # valid_referers none blocked mysite.com *.mysite.com; + # if ($invalid_referer) { + # return 403; + # } + #} location ~ ^/t\/[0-9]+\/[0-9]+\/avatar { expires 1d;