Web Hosting Talk







View Full Version : image leeching


Typhoon
05-06-2002, 06:06 PM
I'm trying to find out how to block one particuliar site from leeching my images.
I want an alternative image to be displayed instead.
I know I can use the option in cpanel or just block everything except my site.
But I don't want this, does anyone know what the code in the .htaccess file would be to just block and redirect images to one particuliar site,

thanks
Peter

ngc1977
05-07-2002, 01:49 AM
Just put my .htaccess file to good use!! All you have to do is replace my domain with yours. Since Google was so insistant on pirating my bandwidth, I decided to make it sort of an advertising tool by simply sending people to my index page :-) Just use the download link.

smacx
05-07-2002, 09:37 AM
That works very well,

I have been using the same sorta thing on www.directbabes.com and im pretty sure that most of the linking stopped.

Samuel
05-07-2002, 09:50 AM
More information here:http://websiteowner.info/articles/pages/hotlinking.asp

Typhoon
05-08-2002, 02:22 PM
What would the code be to block just one particuliar site and replace the leeched image with an alternative I supplied..

I just want to block this one site, but I post my images on a dif site but they keep getting blocked as well.

For example blocked site is blocked.com
and I wanna let notblocked.com through as well as any other site..

Thanks

Typhoon
08-26-2002, 09:23 AM
I need to bump this again.

I want to replace the image with another image, say if someone posted the image on a message board.

I'm pretty certain it can be done, anyone know how?

maxbear
08-26-2002, 10:26 AM
try this one:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://aaa.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.aaa.com.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|swf|SWF)$ http://www.aaa.com/bad.gif [R]