![]() |
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. |
Re: Hotlinking Video Files... (How to STOP It)
Is there any Cpanel hotlinking options you can use (if your website has cpanel mgmt?)
|
Re: Hotlinking Video Files... (How to STOP It)
That reminds me Gadget show in on tonight 1915 channel 5
|
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:
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. |
Re: Hotlinking Video Files... (How to STOP It)
Quote:
Code:
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.:dunce: 3) Left Clicking on http://www.suziperry.tv/ntl/ Link to Video works. Nothing else Any Tips or Ideas buddy? :D Yes 7.15 Gadget show lol. 45 min now not 30mins |
Re: Hotlinking Video Files... (How to STOP It)
you should be able to specify allowed referrers in the .htaccess file, in your root directory.
|
Re: Hotlinking Video Files... (How to STOP It)
Quote:
Code:
RewriteCond %{HTTP_REFERER} !^http://suziperry.tv/.*$ [NC] |
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.
|
Re: Hotlinking Video Files... (How to STOP It)
Quote:
|
Re: Hotlinking Video Files... (How to STOP It)
Quote:
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? :confused: What gives lol |
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?
|
Re: Hotlinking Video Files... (How to STOP It)
Quote:
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) |
Re: Hotlinking Video Files... (How to STOP It)
Quote:
Wish i could do as well as you with this stuff!:confused: |
Re: Hotlinking Video Files... (How to STOP It)
Quote:
I enjoy doing the Site. & KingPhoenix sent you a PM ;) |
Re: Hotlinking Video Files... (How to STOP It)
King Phoenix has been a :angel:
But even he was confused at my Server :confused: Anyone here used a Anti-Leech script? Cheers |
| All times are GMT. The time now is 14:30. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum