Hello, I made an "anti hotlinking image" file, and put it in the /var/www/example.com/conf/nginx folder, but it doesn't work. Images still appear when loaded in another domain.
/var/www/example.com/conf/nginx
Does WordOps not support "anti hotlinking"?
Sorry for my bad English.
Did you reloaded nginx? service nginx reload
service nginx reload
yes, but still not working
bibitws What's your code for hotlink protection?
portofacil location ~* \.(jpg|jpeg|gif|png)$ { valid_referers none blocked example.com www.example.com ~.google. ~.bing. ~.yahoo. ~.yandex. ~.ask. ~.duckduckgo.; if ($invalid_referer) { return 403; } }
location ~* \.(jpg|jpeg|gif|png)$ { valid_referers none blocked example.com www.example.com ~.google. ~.bing. ~.yahoo. ~.yandex. ~.ask. ~.duckduckgo.; if ($invalid_referer) { return 403; } }
I'm having the same issue, I've tried putting similar code in the /var/www/example.com/conf/nginx folder as well as directly in locations-wo.conf. Nginx restarts fine but hotlinking isn't prevented, I can't quite figure it out.
Any news on the issue? It seems that hotlinking prevention is not working.
It's not a WordOps feature (as far as I know?) - although there is an enhancement request for it:- WordOps/WordOps#232 So presumably you're using custom code similar to what was posted above? If so, how are you testing it?
Hosted by VirtuBox