![]() |
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 |
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:
|
Quote:
|
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} !(^|(.+;)*)id=valid(;.*|$) 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). 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. |
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 |
Do you have an example of a page that uses this?
|
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. |
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.
|
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. |
Here's a little example I put together...
http://fuk.ca/wmvprotection/ (just uploading the stuff now.. be patient :) ) |
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} !(^|(.+;)*)id=valid(;.*|$) RewriteRule /* http://www.picz.ca/notice.html [R,L] ) And here is my javascript: |
And yes I replaced the smiley
|
Quote:
|
Hey Cleo, try refreshing and try it again... i made a mistake in there, but it should be fixed now.
http://fuk.ca/wmvprotection/ |
Quote:
If you're comming from your domain it should allow access because your domain is on the allow list in the htaccess. |
1 Attachment(s)
Quote:
|
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. |
Quote:
|
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. |
Quote:
|
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. |
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. |sad|
|
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.
|
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 .
|
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. :D
|
All times are GMT -4. The time now is 07:23 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc