Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
27 views
by Rookie

I implemented hotlink protection code inside Nginx server configuration but it doesn't work?

Here is the code:

location ~ .(gif|png|jpeg|jpg|svg)$ {

     valid_referers none blocked ~.google. ~.bing. ~.yahoo. mydomain.com *.mydomain.com;

     if ($invalid_referer) {

        return   403;

    }

}

Please log in or register to answer this question.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...