nginx - How to prevent hotlinking of streaming content? -
I have a directory with my media files and I do not have to show them on other sites. The server does not support .htaccess, because it uses nginx.
How do I enable hotline protection for my files ?? Thank you.
The HTTP request will be the easiest way for the header. Actually if this header does not have a URL from your site, then this can be hot linking.
The following issues are:
- Referrer header can be forged -> Hot linking
- Not all user agents necessarily send referrer headers - > The legitimate user probably can not get the content
You can browse user cookies, and check the existence of the cookie when the user is reaching streaming content.
Comments
Post a Comment