Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-10-2021, 05:31 AM   #1
mightyjoe
Confirmed User
 
Join Date: Jun 2004
Posts: 1,388
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.
mightyjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 05:58 AM   #2
Brian mike
STAND OUR GROUND
 
Brian mike's Avatar
 
Industry Role:
Join Date: Oct 2014
Location: Canada
Posts: 7,103
Quote:
Originally Posted by mightyjoe View Post
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:

Brian mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 06:17 AM   #3
doeser
Confirmed User
 
Join Date: Jun 2001
Location: swiss alps
Posts: 204
Cloudflare..
doeser is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 06:48 AM   #4
hornyasf
Confirmed User
 
Industry Role:
Join Date: Jul 2021
Posts: 185
That fucking sucks.... follow the tips above
__________________
hornyasf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 07:24 AM   #5
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,179
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]
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 07:38 AM   #6
bugmenot4real
Confirmed User
 
bugmenot4real's Avatar
 
Industry Role:
Join Date: Jun 2013
Location: Canada
Posts: 184
Quote:
Originally Posted by k0nr4d View Post
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
__________________
bugmenot4real is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 08:37 AM   #7
hornyasf
Confirmed User
 
Industry Role:
Join Date: Jul 2021
Posts: 185
Quote:
Originally Posted by k0nr4d View Post
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
__________________
hornyasf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 08:51 AM   #8
ZTT
Confirmed User
 
ZTT's Avatar
 
Industry Role:
Join Date: Apr 2019
Posts: 657
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.
__________________
__________________
ZTT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 09:42 AM   #9
Black All Through
Confirmed User
 
Black All Through's Avatar
 
Industry Role:
Join Date: Oct 2010
Location: US
Posts: 2,078
Quote:
Originally Posted by k0nr4d View Post
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!
__________________
I want to buy contextual links on quality blogs
For both Adult and mainstream niche - Small to massive packages
Black All Through is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 06:33 PM   #10
mightyjoe
Confirmed User
 
Join Date: Jun 2004
Posts: 1,388
Quote:
Originally Posted by k0nr4d View Post
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-10-2021, 06:45 PM   #11
mightyjoe
Confirmed User
 
Join Date: Jun 2004
Posts: 1,388
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;

}
mightyjoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
videos, hotlinking, server, site, idiots, mysite.com/videos/001.mp4, vides, nginx, prevent, chance, format, uploaded, shots, personal, sites, streams



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.