I have the fallowing configuration to disable hotlinking on nginX.
location / {
root /var/www/html;
index index.html index.htm;
}
location ~ \.(xml|jpg|jpeg)$ {
root /var/www/html;
valid_referers none blocked www.domain.com dev.domain.net;
if ($invalid_referer) {
return 444;
}
}
I have reloaded nginX several times and I am still able to access images from facebook. I have several folders within /var/www/html.
Am I missing something?