View Full Version : How do you prevent other sites linking to your attachments?
Gutspiller
02-01-2002, 08:23 PM
I don't want sites to steal bandwidth from my server. How do I make it so that if they link to an image, it looks like a dead page, or shows some default image that says, this image that says some sort of warning.
Thanks in advance.
DrkFusion
02-01-2002, 10:17 PM
UHh I guess you can always install a php antileecher, and then change the coding in post and reply, so when it generates a url for the attatchment it would put the url of the antileecher first
ex:
http://yoursite.com/antileech.php?http://url-of-file.com/st.zip
Gutspiller
02-01-2002, 10:40 PM
Do you know where I would find such a program and how I change the attachments url? :confused:
DrkFusion
02-01-2002, 10:56 PM
Umm, I should have a php antileech sumwhere around here....let me find it and I will reply. Also I have an idea of where to change it, I think I should make a hack out of this, hehe, my first hack!
Gutspiller
02-02-2002, 05:59 PM
Yes, please. Instead of doing a so so job on it, make it a hack and then everybody can use it. :up:
DrkFusion
02-02-2002, 06:12 PM
hey I need a place where I can test this hack with. Know where I can get about 50 mb of space, MySQL, Php and CGI? for Free lol
Lesane
02-02-2002, 07:38 PM
Originally posted by Gutspiller
I don't want sites to steal bandwidth from my server. How do I make it so that if they link to an image, it looks like a dead page, or shows some default image that says, this image that says some sort of warning.
Thanks in advance.
I'm using this method and it works perfect:
http://vbulletin.com/forum/showthread.php?s=&threadid=19021
Gutspiller
02-02-2002, 09:29 PM
It doesn't work all that great, but it's better than nothing. :(
Thanks though.
TELEK
02-02-2002, 10:55 PM
I saw this one Javascript site with a javascript you could put on your page and if anybody put your page in a frame on their page, it loaded your page into their browser, instead of the frame. So the people goign there ended up going to your site instead of The site they were on. Don't remember seeing something about pictures, but there probably is something.
Then you could make the picture that comes up instead of the picture they linked to say:
"i hate you all. Leave this site and never come back. Or I will hack into your computer and format your C drive. I wish you all would die. I am a loser. Somebody kill me. This site sucks. I am going to upload deadly viruses to it, so never come back or your computer will break."
hehehe...
<a href="https://vborg.vbsupport.ru/showthread.php?threadid=35399" target="_blank">https://vborg.vbsupport.ru/showt...threadid=35399</a>
Erwin
11-16-2003, 08:30 AM
No hack needed at all - just use a .htaccess file (as long as you are using Apache with mod_rewrite).
.htaccess with the following content, and upload to root directory:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC]
RewriteCond %{HTTP_REFERER} !^http://IPADDRESS [NC]
RewriteRule attachment.php [F]
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.