|
![]() |
![]() |
![]() |
![]() |
![]() |
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
![]() |
#26 |
NYC Boy That Moved To The Island
|
I love wmv's, small file size, easy to make and they seem smoother but protecting them is a bitch
if someone came up with a script that would protect them for like 50 bucks I bet they would make a lot of money I have some sort of issue where i cant view mpeg online I have to download them to my harddrive and then they will play
__________________
Accepting New partners |
![]() |
![]() |
![]() |
#27 | ||
I Didn't Do It
|
Quote:
I agree... and have to sort out a solution myself right now. I thought what D-Man posted looked like it would work for my situation, in conjunction with a simple php script. Quote:
|
||
![]() |
![]() |
![]() |
#28 | |
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
Join Date: May 2004
Posts: 73
|
Quote:
__________________
Please Re-Read The Rules For Sig Files |
|
![]() |
![]() |
![]() |
#29 |
You tried your best and you failed miserably. The lesson is 'never try'
|
This is what I use and it works with my wmv files...
.htaccess file RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*yourdomain.com(:80)*/ [NC] RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*anyotherreferingdomain.com(:80)*/ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+ ![]() RewriteRule /* http://www.picz.ca/notice.html [R,L] ) Then here's the trick to get it working with wmv's or any file for that matter. Put this in the head of the html file that your visitors will see (with the videos on it). <SCRIPT LANGUAGE="javascript"> // Calculate the expiration date var expires = new Date (); expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000); document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString(); </SCRIPT> That javascript will make a cookie (which is one of the rewritecond's in the htaccess file). So even though the wmv file doesnt show a referal, the surfer that was at that page will have that cookie and therfore can download the wmv file. Last edited by stev0; 2004-11-08 at 04:59 PM.. |
![]() |
![]() |
![]() |
#30 |
You tried your best and you failed miserably. The lesson is 'never try'
|
haha, the board put a smiley into the middle of that code.... so if you copy and paste it just turn the smiley back into a "; )" (without the space between).
If anyone has any problems feel free to hit me up on ICQ 421-34-11 Last edited by stev0; 2004-11-08 at 05:08 PM.. |
![]() |
![]() |
![]() |
#31 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Do you have an example of a page that uses this?
|
![]() |
![]() |
![]() |
#32 | |
Stupid risks make life worth living
|
Quote:
I also have the same issue that I can't stream MPEGs. Some weird broken up looking player appears in my browser if I try to do that.
__________________
THIS IS MY SIG - CLICK IT. |
|
![]() |
![]() |
![]() |
#33 |
Stupid risks make life worth living
|
Update on my situation....I just did what Cleo suggested and I converted all my WMVs into MPEGs and they cannot be hotlinked now. I don't see the benefit of buying AHL just to keep them in the WMV format. It looks like a good script but since there are so many work arounds, it doesn't seem to be money well spent.
__________________
THIS IS MY SIG - CLICK IT. |
![]() |
![]() |
![]() |
#34 | |
You tried your best and you failed miserably. The lesson is 'never try'
|
Quote:
Here's an example... http://www.picz.ca/enter.html when the user enters from that page they can access http://www.picz.ca/content/index.html (which has that javascript code that makes the cookie). Not the greatest example i know... i'll set up another one without the avs script for you guys to check out. |
|
![]() |
![]() |
![]() |
#35 |
You tried your best and you failed miserably. The lesson is 'never try'
|
Here's a little example I put together...
http://fuk.ca/wmvprotection/ (just uploading the stuff now.. be patient ![]() Last edited by stev0; 2004-11-08 at 06:39 PM.. |
![]() |
![]() |
![]() |
#36 |
Stupid risks make life worth living
|
It's just not working for me Stev0. Here is my htaccess:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*trailertrashvideos.com(:80)*/ [NC] RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*trailertrashvideos.com(:80)*/ [NC] RewriteCond %{HTTP_COOKIE} !(^|(.+ ![]() RewriteRule /* http://www.picz.ca/notice.html [R,L] ) And here is my javascript: <SCRIPT LANGUAGE="javascript"> // Calculate the expiration date var expires = new Date (); expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000); document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString(); </SCRIPT>
__________________
THIS IS MY SIG - CLICK IT. Last edited by JenC; 2004-11-08 at 06:50 PM.. |
![]() |
![]() |
![]() |
#37 |
Stupid risks make life worth living
|
And yes I replaced the smiley
__________________
THIS IS MY SIG - CLICK IT. Last edited by JenC; 2004-11-08 at 06:50 PM.. |
![]() |
![]() |
![]() |
#38 | |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Quote:
|
|
![]() |
![]() |
![]() |
#39 |
You tried your best and you failed miserably. The lesson is 'never try'
|
Hey Cleo, try refreshing and try it again... i made a mistake in there, but it should be fixed now.
http://fuk.ca/wmvprotection/ |
![]() |
![]() |
![]() |
#40 | |
You tried your best and you failed miserably. The lesson is 'never try'
|
Quote:
If you're comming from your domain it should allow access because your domain is on the allow list in the htaccess. |
|
![]() |
![]() |
![]() |
#41 | |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
Quote:
|
|
![]() |
![]() |
![]() |
#42 | |
You tried your best and you failed miserably. The lesson is 'never try'
|
Quote:
Does it download fine after you visit the content URL? If so, the hotlink protection would still work, but non windows visitors wouldn't be sent back to your site. |
|
![]() |
![]() |
![]() |
#43 | |
Stupid risks make life worth living
|
Quote:
__________________
THIS IS MY SIG - CLICK IT. |
|
![]() |
![]() |
![]() |
#44 | |
You tried your best and you failed miserably. The lesson is 'never try'
|
Quote:
Try clearing your cookies to test it... if you already have the cookie (by loading the content page) it will stay there for 24 hours unless you delete it. |
|
![]() |
![]() |
![]() |
#45 | |
Stupid risks make life worth living
|
Quote:
__________________
THIS IS MY SIG - CLICK IT. |
|
![]() |
![]() |
![]() |
#46 | |
You tried your best and you failed miserably. The lesson is 'never try'
|
Quote:
![]() ICQ 421-3411 Cleo said javascript is banned some places though... which could be a problem for freesites/mgp's, but for protecting members area's this works great. |
|
![]() |
![]() |
![]() |
#47 |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
A lot of people have cookies blocked these days, especially from porn sites. I don't think many TGP owners would list a gallery with that script either.
![]() |
![]() |
![]() |
![]() |
#48 |
Subversive filth of the hedonistic decadent West
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
|
It is too bad that MPEG-4 isn't widely accepted. It is another open standard, looks great, you can protect it with htaccess, has fast start streaming.
|
![]() |
![]() |
![]() |
#49 |
They have the Internet on computers, now?
Join Date: Nov 2003
Posts: 144
|
Had the same problem a while back and got a script for a couple hundred dollars, It works great, really simple and can be put on as many sites as you have. Think it works by renaming the link and redirecting to it through the script, it does this say every hour so it can be hotlinked but only for that short time then its a dead link. I can did out the info if anyone is interested .
|
![]() |
![]() |
![]() |
#50 |
Stupid risks make life worth living
|
I finally got Stev0's script working. After I cleared cookies it worked just fine. I don't mind if it's not blocking Macintosh, that's a small % of the web overall. And no I'm not ragging on Mac, I own two of them myself......I'm bi-platformal.
![]()
__________________
THIS IS MY SIG - CLICK IT. |
![]() |
![]() |
![]() |
|
|