Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
Search found 1 match
- Mon Jun 15, 2015 4:12 pm
- Forum: General Discussion
- Topic: Prevent hotlinking w/ nginx support
- Replies: 1
- Views: 3424
Prevent hotlinking w/ nginx support
Sorry guys, Im a newbie on this kind of customization.
I'm trying to prevent hotlinking with nginx support simply addin this to my conf file. (/home/$user/conf/web/nginx.conf):
location ~ \.(jpe?g|png|gif)$ {
valid_referers none blocked mydomain.com *.mydomain.com;
if ($invalid_referer ...
I'm trying to prevent hotlinking with nginx support simply addin this to my conf file. (/home/$user/conf/web/nginx.conf):
location ~ \.(jpe?g|png|gif)$ {
valid_referers none blocked mydomain.com *.mydomain.com;
if ($invalid_referer ...