Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Hotlinking Video Files... (How to STOP It)


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

Hotlinking Video Files... (How to STOP It)
Reply
 
Thread Tools
Old 03-10-2005, 13:38   #1
Use The Force
 
JediMaster's Avatar
 
Join Date: Jan 2004
Location: Swansea
Posts: 1,013
JediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of Quads
Question Hotlinking Video Files... (How to STOP It)

I have a domain www.suziperry.tv & on it I wish to host Video Clips. These Clips are 3 MB to 30 MB and will be FREE.

I dont expect many to try & Hotlink these, but I need a way to prevent it (just incase).

I tried .htacces & it works on part of the Hotlinking. But it FAILES on another:

Example: If suziperry.tv/vid/123.avi is the File I want to Protect (and all vids in suziperry.tv/vid/ also) I put the .htaccess in the vid folder. If anyone tried to Hotlink they had a NoHotlink.jpg not the Video.

But if url2.com has a Direct Link to the Video, and a User Left Clicks & Saves Targer As, this will then allow him to Save File, as it has a referrer from my Domain (as it is a FULL Path to the Video) If Left Click it displays the JPG...

.htaccess wont work ... I tried all combo's

Any other Ideas? I want to Prevent ALL Holinking inside suziperry.tv/vid JPG, Vids.. Only allow if from my Website.
__________________
..:: My Sites ::..

Suzi Perry (Gallery & Video Archive) | Andrea McLean (GMTV & Loose Women) & Sweetie Darling Events (VIP Party)
JediMaster is offline   Reply With Quote
Old 03-10-2005, 13:55   #2
Legal Alien
 
Join Date: Jun 2003
Services: Cablevision
Posts: 8,126
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
Re: Hotlinking Video Files... (How to STOP It)

Is there any Cpanel hotlinking options you can use (if your website has cpanel mgmt?)
SMHarman is offline   Reply With Quote
Old 03-10-2005, 14:01   #3
cf.mega poster
 
Mike's Avatar
 
Join Date: Jan 2004
Age: 46
Posts: 1,759
Mike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these partsMike is just so famous around these parts
Re: Hotlinking Video Files... (How to STOP It)

That reminds me Gadget show in on tonight 1915 channel 5
Mike is offline   Reply With Quote
Old 03-10-2005, 14:18   #4
Eric Cartman Wannabe
 
punky's Avatar
 
Join Date: Jun 2003
Location: Cockney geeza land
Age: 27
Services: c:\> net start punky
Posts: 11,984
punky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver blingpunky has a lot of silver bling
punky has a lot of silver blingpunky has a lot of silver bling
Re: Hotlinking Video Files... (How to STOP It)

Do you know much PHP?

You should be able to use PHP as a download wrapper, to mask the true file's path.

You'd have a link like:

www.suziperry.tv/vid/downloadvid.php?id=12

And the PHP would be like:

PHP Code:
<?php

if (isset($_GET['id']))
{

    if(
$_SERVER['HTTP_REFERER'] == 'http://www.suziperry.tv/vid/vids.php')
    {
    
header"Location: http://www.suziperry.tv/secret.path.to.vids/" $_GET['id'] );
    }
    else
    {
    echo 
"Hotlinking is banned.";
    }

     
else
{
echo 
"Missing id number.";
}

?>
That should work, although I haven't tried it. If I get time later, I might test it out.

That's the simplest wrapper, but has a flaw. If people find out your secret path (a browser might display it), then they can still leech your site. The way to get around this is to have an array of filenames, so that people can't guess the names.

i.e. $filenames = array('suzieating.avi, 'suzidrinking.mpg'...) so 0 = her eating, 1 equals her drinking. PHP is server-side code, so users can't find out your array of filenames.

HTH.
__________________
"We're not here for a long time, we're here for a good time" - Mike Ness (Social Distortion)
"Reach for the sky, 'cause tomorrow may never come" - Reach For The Sky (Social Distortion)
punky is online now   Reply With Quote
Old 03-10-2005, 14:52   #5
Use The Force
 
JediMaster's Avatar
 
Join Date: Jan 2004
Location: Swansea
Posts: 1,013
JediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of Quads
Re: Hotlinking Video Files... (How to STOP It)

Quote:
Originally Posted by SMHarman
Is there any Cpanel hotlinking options you can use (if your website has cpanel mgmt?)
I have enabled the HotLinking via C/Pan, it created this....

Code:
 
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://suziperry.tv/.*$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://suziperry.tv$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://www.suziperry.tv/.*$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://www.suziperry.tv$	 [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|avi|AVI|zip)$ www.suzip.co.uk [R,NC]
So it should PREVENT any Direct Linking to Files on my Domain. (But it does NOT)

1) www.suziperry.tv/ntl/SuziPerry_2003-WSB.avi Try & Right Click & Save As. Most CAN save the AVI. Only a SMALL few get the NO Hotlink URL..

2) Then If ABOVE works... I cant Link Files on my site like http://www.suziperry.tv/ntl/ as Right Click Save as is not Working.

3) Left Clicking on http://www.suziperry.tv/ntl/ Link to Video works. Nothing else

Any Tips or Ideas buddy?

Yes 7.15 Gadget show lol. 45 min now not 30mins
__________________
..:: My Sites ::..

Suzi Perry (Gallery & Video Archive) | Andrea McLean (GMTV & Loose Women) & Sweetie Darling Events (VIP Party)
JediMaster is offline   Reply With Quote
Old 03-10-2005, 15:45   #6
cf.procrastinator
 
bmxbandit's Avatar
 
Join Date: Oct 2004
Location: Nottingham
Age: 26
Posts: 1,295
bmxbandit has reached the bronze age
bmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze age
Re: Hotlinking Video Files... (How to STOP It)

you should be able to specify allowed referrers in the .htaccess file, in your root directory.
__________________
I brake for cake!
bmxbandit is offline   Reply With Quote
Old 03-10-2005, 15:51   #7
Use The Force
 
JediMaster's Avatar
 
Join Date: Jan 2004
Location: Swansea
Posts: 1,013
JediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of Quads
Re: Hotlinking Video Files... (How to STOP It)

Quote:
Originally Posted by bmxbandit
you should be able to specify allowed referrers in the .htaccess file, in your root directory.
I thought these were ALLOWED Referers.....
Code:
RewriteCond %{HTTP_REFERER} !^http://suziperry.tv/.*$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://suziperry.tv$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://www.suziperry.tv/.*$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://www.suziperry.tv$	 [NC]
Or what do I need to include?
__________________
..:: My Sites ::..

Suzi Perry (Gallery & Video Archive) | Andrea McLean (GMTV & Loose Women) & Sweetie Darling Events (VIP Party)
JediMaster is offline   Reply With Quote
Old 03-10-2005, 16:32   #8
I-Web Solutions
 
KingPhoenix's Avatar
 
Join Date: Jun 2003
Location: On top of this heat sink
Age: 28
Services: Sky+ & 8mb ADSL + BT Together option 3
Posts: 2,345
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
Send a message via MSN to KingPhoenix
Re: Hotlinking Video Files... (How to STOP It)

THe hotlink protection in cPanel will not stop people downloading things from your site, purely just stop them "hot linking" your images and other media files.
KingPhoenix is offline   Reply With Quote
Old 03-10-2005, 16:45   #9
cf.procrastinator
 
bmxbandit's Avatar
 
Join Date: Oct 2004
Location: Nottingham
Age: 26
Posts: 1,295
bmxbandit has reached the bronze age
bmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze agebmxbandit has reached the bronze age
Re: Hotlinking Video Files... (How to STOP It)

Quote:
Originally Posted by JediMaster
I thought these were ALLOWED Referers.....
Code:
RewriteCond %{HTTP_REFERER} !^http://suziperry.tv/.*$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://suziperry.tv$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://www.suziperry.tv/.*$	 [NC]
RewriteCond %{HTTP_REFERER} !^http://www.suziperry.tv$	 [NC]
Or what do I need to include?
yup, thats right, i hadnt read your post properly... i thought you were talking about php
__________________
I brake for cake!
bmxbandit is offline   Reply With Quote
Old 03-10-2005, 16:49   #10
Use The Force
 
JediMaster's Avatar
 
Join Date: Jan 2004
Location: Swansea
Posts: 1,013
JediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of Quads
Re: Hotlinking Video Files... (How to STOP It)

Quote:
Originally Posted by KingPhoenix
THe hotlink protection in cPanel will not stop people downloading things from your site, purely just stop them "hot linking" your images and other media files.
I am TOTALLY lost lol

I enabled the C/Pan option. So No-One can Hotlink (Right?)

But on http://www.suziperry.tv/ntl/ I cant even link to my own site?

What gives lol
__________________
..:: My Sites ::..

Suzi Perry (Gallery & Video Archive) | Andrea McLean (GMTV & Loose Women) & Sweetie Darling Events (VIP Party)
JediMaster is offline   Reply With Quote
Old 03-10-2005, 20:21   #11
Ring a ding a ding a ring
 
zoombini's Avatar
 
Join Date: Jun 2003
Location: Outer Space.
Services: Portable TV + Wet string = vast improvement on what I got from NTL.
Posts: 3,669
zoombini has reached the bronze age
zoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze agezoombini has reached the bronze age
Re: Hotlinking Video Files... (How to STOP It)

Dare I sugest you ask your ISP support dept which is the best way to do this?
__________________
Not really visiting CF much these days....
If you need me, PM me.
zoombini is offline   Reply With Quote
Old 03-10-2005, 20:47   #12
I-Web Solutions
 
KingPhoenix's Avatar
 
Join Date: Jun 2003
Location: On top of this heat sink
Age: 28
Services: Sky+ & 8mb ADSL + BT Together option 3
Posts: 2,345
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
KingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze arrayKingPhoenix has a bronze array
Send a message via MSN to KingPhoenix
Re: Hotlinking Video Files... (How to STOP It)

Quote:
Originally Posted by JediMaster
I am TOTALLY lost lol

I enabled the C/Pan option. So No-One can Hotlink (Right?)

But on http://www.suziperry.tv/ntl/ I cant even link to my own site?

What gives lol
Im confused....

lol..

It wont let you put the images / video onto your own site?? It should do.... make sure you dont have another .htaccess file in your ntl directory with different permissions (over writing the parent perms)
KingPhoenix is offline   Reply With Quote
Old 03-10-2005, 22:16   #13
SlapHead and Proud of it!
 
budwieser's Avatar
 
Join Date: Jan 2004
Location: Cambridgeshire
Services: I also do Data Recovery. Very Reasonable charges. No Recovery, No fee. You pay Postage both ways.
Posts: 1,830
budwieser has a bronzed appealbudwieser has a bronzed appeal
budwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appealbudwieser has a bronzed appeal
Re: Hotlinking Video Files... (How to STOP It)

Quote:
Originally Posted by JediMaster
I have a domain www.suziperry.tv & on it I wish to host Video Clips. These Clips are 3 MB to 30 MB and will be FREE.

I dont expect many to try & Hotlink these, but I need a way to prevent it (just incase).

I tried .htacces & it works on part of the Hotlinking. But it FAILES on another:

Example: If suziperry.tv/vid/123.avi is the File I want to Protect (and all vids in suziperry.tv/vid/ also) I put the .htaccess in the vid folder. If anyone tried to Hotlink they had a NoHotlink.jpg not the Video.

But if url2.com has a Direct Link to the Video, and a User Left Clicks & Saves Targer As, this will then allow him to Save File, as it has a referrer from my Domain (as it is a FULL Path to the Video) If Left Click it displays the JPG...

.htaccess wont work ... I tried all combo's

Any other Ideas? I want to Prevent ALL Holinking inside suziperry.tv/vid JPG, Vids.. Only allow if from my Website.
F*****g great site Mate.!!!!!!!!!!
Wish i could do as well as you with this stuff!
__________________



budwieser is offline   Reply With Quote
Old 04-10-2005, 10:05   #14
Use The Force
 
JediMaster's Avatar
 
Join Date: Jan 2004
Location: Swansea
Posts: 1,013
JediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of Quads
Re: Hotlinking Video Files... (How to STOP It)

Quote:
Originally Posted by budwieser
F*****g great site Mate.!!!!!!!!!!
Wish i could do as well as you with this stuff!
Thanks M8
I enjoy doing the Site.


& KingPhoenix sent you a PM
__________________
..:: My Sites ::..

Suzi Perry (Gallery & Video Archive) | Andrea McLean (GMTV & Loose Women) & Sweetie Darling Events (VIP Party)
JediMaster is offline   Reply With Quote
Old 06-10-2005, 16:06   #15
Use The Force
 
JediMaster's Avatar
 
Join Date: Jan 2004
Location: Swansea
Posts: 1,013
JediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of QuadsJediMaster has a fine set of Quads
Re: Hotlinking Video Files... (How to STOP It)

King Phoenix has been a
But even he was confused at my Server

Anyone here used a Anti-Leech script?

Cheers
__________________
..:: My Sites ::..

Suzi Perry (Gallery & Video Archive) | Andrea McLean (GMTV & Loose Women) & Sweetie Darling Events (VIP Party)
JediMaster is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 15:10.


Links
Google
 
Web www.cableforum.co.uk


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Copyright © 2003 - 2008, Cable Forum.
(s204569790.onlinehome.info)