Comment out example anti-hotlinking rules
This commit is contained in:
parent
9778bfb749
commit
836ebbaa8e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue