Answer the question
In order to leave comments, you need to log in
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;
}
}
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question