O
O
OKNOZA2015-06-22 19:11:53
Nginx
OKNOZA, 2015-06-22 19:11:53

Have you configured the hotlink to nginx correctly?

I closed the folder completely.

location /hls/ {
        valid_referers none blocked 128.**.293.88;
      if ($invalid_referer) {
           return   403;
      }
        }

Everything plays on the URL for me, on the localhost it also plays everything, I threw it on the domain name (test site) the link did not work there already 403 code (it seems everything is normal). But if you try through VLC everything works (on the local machine) Is this normal? Since there is no other car handy.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
OKNOZA, 2015-06-22
@OKNOZA

Conducted a number of experiments, through a proxy, and so on. other services seem to work, but I don’t know if all this is reliable or not, I don’t want to give away content.

S
Sergey, 2015-06-23
@Weidmann

Try adding an internal directive to location;
nginx.org/ru/docs/http/ngx_http_core_module.html#i...

V
Vlad Zhivotnev, 2015-06-23
@inkvizitor68sl

> But if you try through VLC, everything works
Reasonably, VLC does not transmit the referrer (like any other http client, if you just give it a link).
And you have none in valid_referers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question