How to Enable Hotlink Protection in Nginx + Php-fpm VestaCP
How to Enable Hotlink Protection in Nginx + Php-fpm VestaCP
How to Enable Hotlink Protection in Nginx + Php-fpm VestaCP ?
I'm currently using vestacp nginx + php-fpm
I got a hotlink protection tutorial at Nginx :
location ~ \.(jpe?g|png|gif)$ {
valid_referers none blocked example.com *.example.com;
if ($invalid_referer) {
return 403;
}
}
where is it installed ?
I'm currently using vestacp nginx + php-fpm
I got a hotlink protection tutorial at Nginx :
location ~ \.(jpe?g|png|gif)$ {
valid_referers none blocked example.com *.example.com;
if ($invalid_referer) {
return 403;
}
}
where is it installed ?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: How to Enable Hotlink Protection in Nginx + Php-fpm VestaCP
You can add it in the location /home/user/config/web/domain.conf
or
better make a template for it.
Please do research a bit before posting such a basic question
or
better make a template for it.
Please do research a bit before posting such a basic question
Re: How to Enable Hotlink Protection in Nginx + Php-fpm VestaCP
I assume you mean /home/admin/conf/web/ ?
In that folder there are 11 files
Code: Select all
/home/admin/conf/web/awstats.mydomain.com.conf
/home/admin/conf/web/nginx.mydomain.com.conf_letsencrypt
/home/admin/conf/web/mydomain.com.httpd.conf
/home/admin/conf/web/mydomain.com.httpd.ssl.conf
/home/admin/conf/web/mydomain.com.nginx.conf
/home/admin/conf/web/mydomain.com.nginx.ssl.conf
/home/admin/conf/web/snginx.mydomain.com.conf_letsencrypt
/home/admin/conf/web/ssl.mydomain.com.ca
/home/admin/conf/web/ssl.mydomain.com.crt
/home/admin/conf/web/ssl.mydomain.com.key
/home/admin/conf/web/ssl.mydomain.com.pem
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: How to Enable Hotlink Protection in Nginx + Php-fpm VestaCP
/home/admin/conf/web/mydomain.com.nginx.conf
/home/admin/conf/web/mydomain.com.nginx.ssl.conf
/home/admin/conf/web/mydomain.com.nginx.ssl.conf