Home Francais E-mail Animanga - Anime and Manga Services





Search :



Subject:
From:
URL:
E-mail:
For those of you out there who HATE direct linkers / bandwidth theifs (Sun Nov 10 08:10:26 2002 )
xelloss [View profile ]
http://beepworld.de/members20/oskar-sensei/musik.htm
cels@xelloss.net

I don't know about the rest of you, but I've HAD 
IT with people direct linking to my files. Over 
half of my bandwidth has been stolen from these 
people. So I decided to take some steps.

Note: the following ONLY works if you your server 
admin has set up both htaccess and mod_rewrite 
set up. 

Create a file in your root directory called
".htaccess"
note that there is a dot in front of the word.

in the file add the following:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)? mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/theif.gif [R,L]
replace mydomain.com with your site URL, minus 
the WWW. Change the theif image to whatever you 
want. If you'd like to be able to use your images 
on animanga, add this RewriteCond before the 
ReWrite Rule.
RewriteCond %{HTTP_REFERER} !^http://(www\.)? eu.animanga.com/.*$ [NC]
 
and then add whatever other allowable sites you 
wish.  If you want to block out files as well, 
AFTER the RewriteRule above, copy all of the 
RewriteCond again, and at the very end of the 
list, add:
RewriteRule \.(mpeg|mp3|mpg|mpeg|avi|wav|au)$ http://www.mydomain.com/theif.html [R,L]
This will redirect all direct file links of the 
above extensions to your theif warning page >:-D

How well does this work? Well, if you have 
internet explorer, go to this page and double-
click on the characters...

Click Here

To see the media files in action, go to this page 
listed as my URL at the top of this post and 
click on the 'pink sugar heart attack' link, 2nd 
down in the 3rd table. The URL was too long to be 
shown here.

My sources of info come from

http://www.javascriptkit.com/howto/htaccess.shtml
 and 
http://httpd.apache.org/docs/mod/mod_rewrite.html


Hope this helps some other people too ^^

TTYL

Karen







[ Back to Cels Forum ]


Message thread :


Copyright ©2000 Yann Stettler and CohProg Sarl. All rights reserved. Privacy statement