Prevent Hot linking of video
To Prevent Hot linking of video create a .htaccess file with following content
Upload it to flvideo folder.
If you do not want web access on video folder (orginal uploded video stored in this folder). Create a .htaccess file with following content and upload it to video folder
Re: Prevent Hot linking of video
I'm sorry to bump an old thread, but I was wondering if someone could clue me in as to the most common hotlinking method so I can test this. I've uploaded the prescribed htaccess file and an image to be displayed on the theif's site. I've done a test embed on a blog and the embed worked good, which is what I wanted. But now how do I test to see if hotlinking will be stopped?
Update --
I just used the player setup wizard to load up one of my flv files directly. Since this is external of my site I thought it should be stopped and the thief image displayed. Unfortunately, the video played just fine, so it seems like maybe it's not protecting against hotlinking after all.
Has anyone tested this successfully?
Re: Prevent Hot linking of video
post a direct link to one of your flv files here....when u click the link it should stop you as the refering site is buyscripts.in
Re: Prevent Hot linking of video
Thanks Leki. Let me see here. Actually, I used the code from the other thread; I just pulled up the wrong one to post in. Maybe I should try the htaccess file in this one.
The problem is probably how I did the htaccess file.
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?foxxytheater.com(/)?.*$ [NC]
RewriteRule \.(flv|swf|png|bmp)$ /cinema/include/contenttheif.jpg [L,NC]
I added the cinema part before the include because my vshare is located in a subdirectory titled cinema. Maybe this is where I went wrong.
Re: Prevent Hot linking of video
also make sure the file isn't in your cache....you a different browser to test on a video you have not opened
http://www.foxxytheater.com/cinema/flvi ... 548850.flv
redirects to vshare.in ....that what u set it to?
Re: Prevent Hot linking of video
Ah, I see. I was planning to install opera tomorrow, so maybe that will give me something to do when playing around with the browser.
No, I didn't set it to do that. I think there is something in the player.inc that calls that. I'll look into it tomorrow since it's nearly 3am here.
Re: Prevent Hot linking of video
To prevent hotlinking of certain file types, you need to include the extention in the .htaccess in this line:
Code:
RewriteRule \.(flv|swf|png|bmp)$ /cinema/include/contenttheif.jpg [L,NC]
However I too tried the setup wizard and my video played as well so not sure why this isn't working like it's supposed to....
I put "deny from all' and the videos don't play on my site.
UPDATE: The code needs to be in the .htaccess in the root directory (not the flvideo directory). I added this bit of code to the main .htaccess AND the logo was displayed instead!!!! Yay!!!! To get the image to be displayed, I just needed to remove the first "slash" so that it was like this (notice the missing slash from infront of "cinema"):
Code:
RewriteRule \.(flv|swf|png|bmp)$ cinema/include/contenttheif.jpg [L,NC]
Re: Prevent Hot linking of video
Hi, How to stop hotlinking in IIS6?
because I am using ftv server to host my FLV files. I noticed lately my bandwidth consumption is very high its highly likely its due to hotlinking. I think .httaccess dont work in IIS. How can i use .httaccess in IIS or is there any other way to do what .httaccess does in IIS?
Re: Prevent Hot linking of video
create .htaccess and put this in it and upload to your flvideo folder
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
RewriteRule \.(gif|jpe?g|png|bmp|flv)$ templates/images/logo.jpg [L,NC]
If that still doesn't work, another thing you can do is rename the flv file in admin panel (that's why it's there).
or try this: http://www.google.com/search?hl=en&q=pr ... gle+Search
Please do post your findings if someone else here doesn't answer first.
Re: Prevent Hot linking of video
Re: Prevent Hot linking of video
Nice. What I do, and this is just a suggestion, is have it link to your site LOGO instead of a "bandwidth theft" notice..this way it appears more like an ad banner (like free advertising for you!!). :D
Re: Prevent Hot linking of video