View Full Version : Sending robots info via php headers


eduardomaio
09-02-2004, 03:26 AM
I have a script that finds an image on my server and display it. Something like this...

http://www.sprinttotal.com/decode.php?src=santarem2004/santarem029.jpg

I have added to the php headers the following code in order to prevent Google, Google Images and other image search engine spiders to grab this image

header('Robots: noindex, nofollow, noarchive');

This will give the following responde headers

Robots: noindex, nofollow, noarchive
Connection: close
Transfer-Encoding: chunked
Content-Type: image/jpeg

Will this work and prevent spiders from grabing my images (as they are posted in lots of forums?). Thank you for any help on this one.

Cyber-SEO
09-02-2004, 07:39 AM
Yes, i belive it will stop the spiders which follow the rules from not cashing your images.