GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   HELP! Some idiots hotlinking my videos! (https://gfy.com/showthread.php?t=1348229)

mightyjoe 09-10-2021 05:31 AM

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.

Brian mike 09-10-2021 05:58 AM

Quote:

Originally Posted by mightyjoe (Post 22911798)
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.

Find this on google/ youtube, hope this help:


doeser 09-10-2021 06:17 AM

Cloudflare..

hornyasf 09-10-2021 06:48 AM

That fucking sucks.... follow the tips above :thumbsup

k0nr4d 09-10-2021 07:24 AM

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]

bugmenot4real 09-10-2021 07:38 AM

Quote:

Originally Posted by k0nr4d (Post 22911828)
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]

can you give a version for without www with first one?
ty

hornyasf 09-10-2021 08:37 AM

Quote:

Originally Posted by k0nr4d (Post 22911828)
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]

Actually this is the best approach - didnt even think of this

ZTT 09-10-2021 08:51 AM

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.

Black All Through 09-10-2021 09:42 AM

Quote:

Originally Posted by k0nr4d (Post 22911828)
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]

Best way to go!

mightyjoe 09-10-2021 06:33 PM

Quote:

Originally Posted by k0nr4d (Post 22911828)
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]

Where do I put this? It is work for nginx? I stream the videos for 5 domains from the domain it hosted the videos. So the domain that hosted the videos is not stteaming the videos.

mightyjoe 09-10-2021 06:45 PM

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