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

WebcamWiz CRAZY $5,000 Reward Bonuses WebcamWiz CRAZY $5,000 Reward Bonuses WebcamWiz CRAZY $5,000 Reward Bonuses WebcamWiz CRAZY $5,000 Reward Bonuses 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-05, 06:44 PM   #1
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 need an anti-hotlinking htaccess for WMVs

I currently am using htaccess to do anti-hotlinking of the pictures on my site and it works well, but I need a script that will not allow users to hotlink WMVs.

Here is the script I am using now:

PHP Code:
RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ 
And if I just add "wmv" to the list of "rewrite rule" it works, but it works TOO good. People who are just trying to click the movies from my page cannot play the movies, much less hotlink to them.

Anyone have any ideas how I can get people to be able to view the movies from my site but not hotlink to them directly? Thanks!

__________________
THIS IS MY SIG - CLICK IT.

Last edited by JenC; 2004-11-05 at 06:47 PM..
JenC is offline   Reply With Quote
Old 2004-11-05, 07:01 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
There are ways of doing it but not using htaccess. I've seen scripts that can be installed on your server. Personally I just switched to mpegs and all is good.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-05, 08:40 PM   #3
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
Oh so MPEGs can be added to htaccess?
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2004-11-05, 08:42 PM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Yes and it works just like with GIFs and JPGs.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-05, 08:48 PM   #5
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
Oh well then that solution is obvious. I wasn't aware of that. I don't need WMVs.

Thanks Cleo, you just saved me $200 on a script.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2004-11-05, 08:52 PM   #6
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
What version of Apache are you on?

You could have altered the Rule to read
RewriteRule [^/]+.(jpg|jpeg|gif|png|bmp|wmv)$ - [F]

That may have worked.
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2004-11-05, 08:57 PM   #7
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 oast
What version of Apache are you on?

You could have altered the Rule to read
RewriteRule [^/]+.(jpg|jpeg|gif|png|bmp|wmv)$ - [F]

That may have worked.
Nope, it didn't like that.
__________________
THIS IS MY SIG - CLICK IT.
JenC is offline   Reply With Quote
Old 2004-11-05, 09:01 PM   #8
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
Quote:
Originally posted by oast
What version of Apache are you on?

You could have altered the Rule to read
RewriteRule [^/]+.(jpg|jpeg|gif|png|bmp|wmv)$ - [F]

That may have worked.
That doesnt work as no REFERER is sent when WMVs are played

DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Old 2004-11-05, 09:03 PM   #9
D-man
If something goes wrong at the plant, blame the guy who can't speak English
 
D-man's Avatar
 
Join Date: Jun 2004
Location: USA
Posts: 33
Send a message via ICQ to D-man Send a message via AIM to D-man
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/


google .htaccess and you should find one that works - I looked for one to cut and paste but I can't find the right one - I have done this before myself
__________________
D-man is offline   Reply With Quote
Old 2004-11-06, 07:06 AM   #10
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
Quote:
Originally posted by DangerDave
That doesnt work as no REFERER is sent when WMVs are played
Doesn't the same apply to .mpg and .avi files?
__________________
.
Nige is offline   Reply With Quote
Old 2004-11-06, 07:30 AM   #11
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
No it doesn't.

The browser plays mpegs so it sends referral info. You can play mpegs with no plugins installed at all with some browsers and they will still play. With WMV files another application plays them. Not really sure about AVI files but I seem to remember that they work the same way mpegs work.

WMV files work like crap on non Windows machines with lots of issues.

RealPlayer files have the same issues as WMV files.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-06, 10:39 AM   #12
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
Quote:
Originally posted by Cleo
The browser plays mpegs so it sends referral info. You can play mpegs with no plugins installed at all with some browsers and they will still play. With WMV files another application plays them. Not really sure about AVI files but I seem to remember that they work the same way mpegs work.
I don't play the mepgs within my browser, which would mean that no referral info is sent?

If you have a link to a .mgp which is only protected with .htaccess please post a direct link here so I can test it, thanks.
__________________
.
Nige is offline   Reply With Quote
Old 2004-11-06, 12:22 PM   #13
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 Nige
If you have a link to a .mgp which is only protected with .htaccess please post a direct link here so I can test it, thanks.
http://kinky-cleo.com/porn/movies/shower/tgp/
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-06, 12:29 PM   #14
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
Quote:
Originally posted by Cleo
http://kinky-cleo.com/porn/movies/shower/tgp/
I copy & pasted this link http://kinky-cleo.com/porn/movies/shower/movies/06.mpg directly in the browser, and it downloaded just fine.
__________________
.
Nige is offline   Reply With Quote
Old 2004-11-06, 12:34 PM   #15
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 Nige
I copy & pasted this link http://kinky-cleo.com/porn/movies/shower/movies/06.mpg directly in the browser, and it downloaded just fine.
As it should. I have bookmarking of movies allowed.

I'm stopping hotlinking not bookmarking a movie, but a simple change to my htaccess would also prevent this.

This line in my htacess allows bookmarking a movie or pic.
RewriteCond %{HTTP_REFERER} !^$

Try pasting the url of the movie into this page and you will see that it does not play.
http://altlab.com/hotlinking.html
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-06, 12:34 PM   #16
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
Quote:
Originally posted by Nige
I copy & pasted this link http://kinky-cleo.com/porn/movies/shower/movies/06.mpg directly in the browser, and it downloaded just fine.
And if you click the link you'll be able to download the movie, so your so called "hotlinking protection" isn't working.

EDIT: Link removed.
__________________
.

Last edited by Nige; 2004-11-06 at 01:32 PM..
Nige is offline   Reply With Quote
Old 2004-11-06, 12:40 PM   #17
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
Quote:
Originally posted by Cleo
Try pasting the url of the movie into this page and you will see that it does not play.
http://altlab.com/hotlinking.html
Correct, but the movie wouldnt play even if you allowed it. That script only works with pictures.
__________________
.
Nige is offline   Reply With Quote
Old 2004-11-06, 12:49 PM   #18
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
My htaccess is working the way I want it to.

You can click on it from this board and play the movie because the greenguysboard.com is in my htaccess file.

But just to prove my point I have changed my htaccess file for this one gallery and you can no longer bookmark a movie or play it from this board. Only kinky-cleo.com is now a good referral.

That is the beauty of htaccess in that you can control access without spending money on scripts or the hassle of scripts. Plus you can do it by directory as I have just shown.

You have turned into a spammer just trying to sell your script which I don't need or want.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-06, 12:55 PM   #19
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 Nige
Correct, but the movie wouldnt play even if you allowed it. That script only works with pictures.
It works with anything. All it does is hotlink media. If you don't believe me then go build yourself a page on your server and try to hotlink my movie.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-06, 12:58 PM   #20
Southfun
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: May 2004
Location: Denmark
Posts: 31
Send a message via ICQ to Southfun
I love Cleo's redirecting to "cleo-says-fuck-you"

Nige, sorry to say so, but 250$ for AHL is money out of the window. There is an easy way to by-pass it |rasta|
Southfun is offline   Reply With Quote
Old 2004-11-06, 01:00 PM   #21
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
I guess I was wrong, I didn't know you could use .htaccess to block .mpg's from being hotlinked.

I apologize.

And I am in no way affiliated with AHL. Just so you know.
__________________
.
Nige is offline   Reply With Quote
Old 2004-11-06, 01:03 PM   #22
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
Quote:
Originally posted by Southfun
Nige, sorry to say so, but 250$ for AHL is money out of the window. There is an easy way to by-pass it |rasta|
Really, how?
__________________
.
Nige is offline   Reply With Quote
Old 2004-11-06, 01:14 PM   #23
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
You sure sound like you are an affiliate of that script. If you are not then I apologize for calling you a spammer.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-11-06, 01:39 PM   #24
Nige
Just because I don't care doesn't mean I don't understand!
 
Join Date: Aug 2003
Posts: 94
Quote:
Originally posted by Cleo
You sure sound like you are an affiliate of that script. If you are not then I apologize for calling you a spammer.
If I were I would most likely have used a ref. link. And I removed the link.

I guess you owned me big time.

I'm surprised that not more people are using .htaccess to block access to .mpg's, there's a lot of big affiliate programs that are having their movie files hotlinked.
__________________
.
Nige is offline   Reply With Quote
Old 2004-11-06, 02:36 PM   #25
Southfun
If something goes wrong at the plant, blame the guy who can't speak English
 
Join Date: May 2004
Location: Denmark
Posts: 31
Send a message via ICQ to Southfun
Quote:
Originally posted by Nige
Really, how?
Not gonna post something like that on a public board since not all viewers have "good" intentions.
Southfun 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 05:08 PM.


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