View Single Post
Old 09-10-2021, 06:33 PM  
mightyjoe
Confirmed User
 
Join Date: Jun 2004
Posts: 1,395
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