![]() |
HELP! Some idiots hotlinking my videos!
My videos are my personal shots (no face) Now I uploaded on my server and streams to my 5 sites with this format: mysite.com/videos/001.mp4. I find out that there are site that are hotlinking my vides.
Are there any chance to prevent my videos from hotlinking? My server is NGINX. |
Quote:
|
Cloudflare..
|
That fucking sucks.... follow the tips above :thumbsup
|
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC] RewriteRule \.(jpg|jpeg|mp4)$ - [F] Or you can rewrite it to some fucked up disgusting video (1 man 1 jar or something) and display that for them instead, or like a video that just displays your domain or something. RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)yourdomain.com/.*$ [NC] RewriteRule \.(mp4)$ /fuckedupvid.mp4 [R,L] |
Quote:
ty |
Quote:
|
I always thought that kind of hotlink protection only worked for images, not video. In any case OP is using Nginx, and that code is for Apache.
|
Quote:
|
Quote:
|
found this for nginx, but it is not working. also i have 5 domains
location ~* .(mp4)$ { valid_referers none server_names domain1.com www.domain2.com; } if ($invalid_referer) { return 403; } |
All times are GMT -7. The time now is 09:08 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc