O
O
OKNOZA2015-03-03 13:41:01
Nginx
OKNOZA, 2015-03-03 13:41:01

How to close TS from hotlink?

There are two servers, one has regular PHP scripts, and the other gives a CDN live stream.
How to close from hotlink so that links on other sites do not work?
I wrote this on the CDN server in Nginx.

location ~ \.(ts)$ {
     valid_referers none blocked site_.info *.site_.info;
     if ($invalid_referer) {
       return 403;
     }
}

So he www.cdn.site_.info does not give content where the player itself is located.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OKNOZA, 2015-03-03
@OKNOZA

According to the logs, TS is not returned, it returns 404, but it does not return for my central site, but I need to return it for mine, but not for others.
My site is site_.info
And the video content is cdn.site_.info
How to correctly register it so that it gives only to my central site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question