Quote:
Originally posted by venturi
Here's a one-time-only freebie from venturi:
The reason you are having problems is that when WinAmp or RealPlayer or WinblozeMediaPlayer fires up and tries to access the movie clip it looks like a type-in (i.e. there is no refering URL), so your .htaccess file 'thinks' it's a hotlinker and blocks the program from accessing the file. The following snippets of code are all you need to grant access to your clips while still blocking hotlinkers/cheaters/etc.
.htaccess file:
RewriteEngine on
RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
RewriteRule .*$ http://www.yourdomain.com/cheaters.html
js to set the cookie:
<script>
document . cookie = "id=valid; path=/"
</script>
Instructions:
1) Add the js to the <head> section of the document containing the links to your videos. (Note: remove the spaces in 'document . cookie' )
2) Modify the .htaccess code above to reflect your proper domain and page to redirect hotlinkers and place it into your directory/folder containing the videos you want protected.
3) Upload the files.
4) HUGE PROFITS!
p.s. - you can donate the $10 to your favorite charity (even if that happens to be me )
|
I have been trying to get a hold of you via ICQ for 2 days now man, your idea is great and just need a bit of help to get it running if it's not too much trouble. Thanks to everyone for helping me out on my problem!
