Old 6th November 2003, 12:30   #1
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
Help Preventing Bandwidth Theft With .htaccess

I need help.

I want people to stop the leeching of some videos off my site without people going to my site first, i.e. direct linking to the video.

My host gave my this code:

code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]



But it only blocks the request. I want to modify the RewriteRule to redirect to an image or something saying no-no, please link to my site.

How teh heck do I do that?

And for future reference, can someone give me a site so I can learn a bunch of commands for messing with .htaccess files and getting them to do what I want?

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Old 6th November 2003, 12:47   #2
. - .... .- -. ....
Backpacking
Moderator
 
. - .... .- -. ....'s Avatar
 
Join Date: Nov 2000
Location: საქართველო (Georgia)
Posts: 10,104
Send a message via ICQ to . - .... .- -. .... Send a message via Yahoo to . - .... .- -. ....
http://www.htmlbasix.com/disablehotlinking.shtml

This should generate the htaccess code for you...

Like my photography? Buy some here....
. - .... .- -. .... is offline   Reply With Quote
Old 6th November 2003, 12:51   #3
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
Forgot about that. Tried that before, forget what happened...

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Old 7th November 2003, 03:51   #4
corkhead0
Major Dude
 
Join Date: Oct 2002
Posts: 548
Replace with a giant GIF saying "This webmaster is a bandwidth stealing asshole!"

Won't be long before they take the hotlinks down (personal experience).
corkhead0 is offline   Reply With Quote
Old 7th November 2003, 06:53   #5
psyfive
Forum King
 
psyfive's Avatar
 
Join Date: Dec 2001
Location: Colorado
Posts: 2,527
if it was me, i would replace the link with a copy of the ******.cx picture... I think that would stop the linking.
psyfive is offline   Reply With Quote
Old 7th November 2003, 07:19   #6
Rellik
Major Dude
 
Rellik's Avatar
 
Join Date: Oct 2003
Location: localhost
Posts: 1,099
dude, that's evil

I like it!
Rellik is offline   Reply With Quote
Old 7th November 2003, 08:35   #7
Viper007Bond
Major Dude
 
Viper007Bond's Avatar
 
Join Date: May 2002
Location: Portland, OR Life: None
Posts: 1,054
Send a message via ICQ to Viper007Bond Send a message via AIM to Viper007Bond Send a message via Yahoo to Viper007Bond
Yeah, I'd do something like that if it was an image, but it's just a video that I don't want them directly linking to.

Anyway, I had to take it down 'cause I had already used 1/2 my bandwidth for the month. LOL

- Viper007Bond | Viper007Bond.com
Viper007Bond is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Community Center > General Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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