Greenguy's Board WebcamWiz CRAZY $5,000 Reward Bonuses


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-11-07, 01:19 PM   #26
Tommy
NYC Boy That Moved To The Island
 
Join Date: Apr 2003
Posts: 2,940
Send a message via ICQ to Tommy
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
Tommy is offline   Reply With Quote
Old 2004-11-07, 01:55 PM   #27
Opti
I Didn't Do It
 
Opti's Avatar
 
Join Date: Aug 2003
Location: au
Posts: 795
Send a message via ICQ to Opti
Quote:
Originally posted by Tommy
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

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:
you do an allow and deny

one is by IP

deny from all
allow from 123.456.789.001

The other way is (folder that links the pages that loads the files

deny from all
allow from /www/sites/yourdomain.com/content/
I'll be trying it in the next day or so... and will let you know how I go.
Opti is offline   Reply With Quote
Old 2004-11-08, 09:37 AM   #28
tat2jr
Heh Heh Heh! Lisa! Vampires are make believe, just like elves and gremlins and eskimos!
 
tat2jr's Avatar
 
Join Date: May 2004
Posts: 73
Quote:
Originally posted by Opti
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.

I'll be trying it in the next day or so... and will let you know how I go.
Cool! Keep us informed on how that worked for ya. I have some I'd like to protect too.
tat2jr is offline   Reply With Quote
Old 2004-11-08, 04:55 PM   #29
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
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).

<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..
stev0 is offline   Reply With Quote
Old 2004-11-08, 04:58 PM   #30
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
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..
stev0 is offline   Reply With Quote
Old 2004-11-08, 05:51 PM   #31
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Do you have an example of a page that uses this?
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-08, 06:03 PM   #32
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
Quote:
Originally posted by Tommy
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
I prefer WMVs too as they look better and a smaller file size, however if I can't protect them fuck it. MPEGs are just fine.

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.
JenC is offline   Reply With Quote
Old 2004-11-08, 06:05 PM   #33
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
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.
JenC is offline   Reply With Quote
Old 2004-11-08, 06:22 PM   #34
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
Quote:
Originally posted by Cleo
Do you have an example of a page that uses this?
Cleo, do you have an XXXSexTicket password for reviewing?

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.
stev0 is offline   Reply With Quote
Old 2004-11-08, 06:37 PM   #35
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
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..
stev0 is offline   Reply With Quote
Old 2004-11-08, 06:42 PM   #36
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
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:
<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..
JenC is offline   Reply With Quote
Old 2004-11-08, 06:46 PM   #37
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
And yes I replaced the smiley
__________________
THIS IS MY SIG - CLICK IT.

Last edited by JenC; 2004-11-08 at 06:50 PM..
JenC is offline   Reply With Quote
Old 2004-11-08, 06:56 PM   #38
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally posted by stev0
Here's a little example I put together...

http://fuk.ca/wmvprotection/

(just uploading the stuff now.. be patient )
Nope can't play the video. I'm on a Mac so maybe your script is Windows IE only.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-08, 07:01 PM   #39
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
Hey Cleo, try refreshing and try it again... i made a mistake in there, but it should be fixed now.

http://fuk.ca/wmvprotection/
stev0 is offline   Reply With Quote
Old 2004-11-08, 07:04 PM   #40
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
Quote:
Originally posted by JenC
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:
<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>
Jen, is it not protecting your videos? or is it blocking all access?

If you're comming from your domain it should allow access because your domain is on the allow list in the htaccess.
stev0 is offline   Reply With Quote
Old 2004-11-08, 07:07 PM   #41
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally posted by stev0
Hey Cleo, try refreshing and try it again... i made a mistake in there, but it should be fixed now.

http://fuk.ca/wmvprotection/
Nope. WMP gets sent the html for a bad referral since WMP does not give any referral information.
Attached Images
File Type: jpg error.jpg (12.9 KB, 87 views)
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-08, 07:35 PM   #42
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
Quote:
Originally posted by Cleo
Nope. WMP gets sent the html for a bad referral since WMP does not give any referral information.
Ah... it must be trying to open the notice.html file as video.wmv. It does that if i right click and choose to download the file as well, but it calls it video.wmv.htm and still opens the notice.html file as a webpage.

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.
stev0 is offline   Reply With Quote
Old 2004-11-08, 07:57 PM   #43
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
Quote:
Originally posted by stev0
Jen, is it not protecting your videos? or is it blocking all access?

If you're comming from your domain it should allow access because your domain is on the allow list in the htaccess.
It's not protecting anything. I originally got an ISE and then I realized I needed to replace the smiley so I did and it didn't block a thing.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2004-11-08, 08:07 PM   #44
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
Quote:
Originally posted by JenC
It's not protecting anything. I originally got an ISE and then I realized I needed to replace the smiley so I did and it didn't block a thing.
Try copying the script off the example page I posted. It will work unless you already have to cookie, or you're trying to access the video from your own domain.

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.
stev0 is offline   Reply With Quote
Old 2004-11-08, 11:10 PM   #45
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
Quote:
Originally posted by stev0
Try copying the script off the example page I posted. It will work unless you already have to cookie, or you're trying to access the video from your own domain.

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.
I did try it from the page because I know the PHP board can put in extra stuff. I dunno why I can't do it.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2004-11-09, 02:00 AM   #46
stev0
You tried your best and you failed miserably. The lesson is 'never try'
 
stev0's Avatar
 
Join Date: Mar 2004
Location: Calgary
Posts: 165
Send a message via ICQ to stev0
Quote:
Originally posted by JenC
I did try it from the page because I know the PHP board can put in extra stuff. I dunno why I can't do it.
If you clear your cookies and try my code it will work... hit me up on ICQ if you're having problems with yours and i'll see if I can help you fix it

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.
stev0 is offline   Reply With Quote
Old 2004-11-09, 09:06 PM   #47
KCat
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
KCat's Avatar
 
Join Date: Sep 2003
Location: Pacific NW
Posts: 313
Send a message via ICQ to KCat
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.
KCat is offline   Reply With Quote
Old 2004-11-09, 09:16 PM   #48
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-10, 02:42 AM   #49
AndyS
They have the Internet on computers, now?
 
AndyS's Avatar
 
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 .
AndyS is offline   Reply With Quote
Old 2004-11-10, 04:10 PM   #50
JenC
Stupid risks make life worth living
 
JenC's Avatar
 
Join Date: Aug 2003
Location: Eastern Seaboard
Posts: 387
Send a message via ICQ to JenC
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.
JenC is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:34 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc