Something wrong on your site?
by Volker Weber
I just made a small change that prevents people from loading images from this server if they are not contained in pages from my site. So, in case you have used IMG tags to refer to images from vowe.net your page may look all fck'd up now.
Comments
Very interesting! I didn't know that was possible.
It would be great if you shared how you did it, so I can do it too?
Background: Unfortunately, my site is the number 3 listing when you search for Eminem images on Google image search. Lots of kids have thus decided to use my image on their private little homepage. :-)
einmal über .htaccess:
http://www.webmasterworld.com/forum10/1809.htm
"SetEnvIf Referer ^$ local
SetEnvIfNoCase Referer ^(http://www\.¦http://)yourdomain\.com local
order deny,allow
deny from all
allow from env=local
"
und einmal mit PHP etwas komplexer:
http://www.thesitewizard.com/archive/protectimages.shtml
MT comment function deleted above the tags in the .htaccess entry, so once again (replace "[" / "]" with ">" and "
SetEnvIf Referer ^$ local
SetEnvIfNoCase Referer ^(http://www\.¦http://)yourdomain\.com local
[Files ~ "\.(gif¦jpg¦png¦css¦js)$"]
order deny,allow
deny from all
allow from env=local
[/Files]
and another link:
http://www.trafficklau.de/htaccess.html
(via WFLamme http://www.sns1.de/partner/flamme/wflamme.nsf/ )
Cool, thanks, Robert!
Stefan, as well as using the .htaccess method, you can also stop Google image search from displaying your images:
Just put a file called 'robots.txt' in your web server root directory, with these contents:
User-agent: Googlebot-Image
Disallow: /
It works for me!
Peter: Thanks for the tip, but I actually don't want to exclude Google from my images via the robots.txt.
I think it's quite cool that Google indexes my images, and I have no issues with thousands of people coming to my site for it. These people are of no "use" to me of course, but I guess it's kind of nice to be able to give something back. After all, I rely on Google image search for other stuff as well.
I only don't like if people display the images on their own site, but host them on mine.
Post a comment
Recent comments
Armin Roth
on Michael Sampson: "Hello, I'm a PC" at 02:45
Armin Roth
on Michael Sampson: "Hello, I'm a PC" at 02:41
Wolfgang Schwerber
on Just rented the ugliest car available at 00:07
Volker Weber
on Just rented the ugliest car available at 00:02
Ed Brill
on Just rented the ugliest car available at 23:58
Volker Weber
on Just rented the ugliest car available at 23:57
Volker Weber
on Just rented the ugliest car available at 23:56
Ken Bisconti
on Just rented the ugliest car available at 23:47
Ed Brill
on Just rented the ugliest car available at 23:45
Lars Berntrop-Bos
on Thank god you're a man at 23:39
Gregg Eldred
on CommonTime announces mSuite support for the new Nokia E71 at 22:30
Stefan Funke
on Thank god you're a man at 20:47
Volker Weber
on Just rented the ugliest car available at 20:33
Ben Poole
on Michael Sampson: "Hello, I'm a PC" at 20:20
Alper Iseri
on New Dollar bill at 20:19
Claude Lehmann
on Just rented the ugliest car available at 19:56
Rob McDonagh
on Michael Sampson: "Hello, I'm a PC" at 18:48
Manfred Wiktorin
on Just rented the ugliest car available at 18:22
Ben Poole
on Michael Sampson: "Hello, I'm a PC" at 18:21
Jon Walters
on Just rented the ugliest car available at 17:58
Stefan Weigand
on Thank god you're a man at 17:55
Craig Wiseman
on Michael Sampson: "Hello, I'm a PC" at 17:55
Jens-Christian Fischer
on Just rented the ugliest car available at 17:51
Stuart McIntyre
on Just rented the ugliest car available at 17:46
Volker Weber
on Just rented the ugliest car available at 17:46



