My understanding of the above is that any image format listed which is hotlinked outside of mysite.com will be redirected to the /images/hotlink.gif file under my public_html folder. Great, but how would I allow sites such as google, yahoo, bing, etc who have image searches to still show my images in their results?
Second, is there a better solution of the above code or anything else that is recommended?
Msg#: 4307521 posted 10:44 pm on May 3, 2011 (gmt 0)
Quick-and-simple answer: robots arrive with null referrers, so you've already let them in. (My logs confirm this.)
The code version you've posted-- hm, looks like you and I swiped from the same source ;)-- points visitors to an alternative image you've created. Mine's intentionally ugly so users will say "Ouch!" and take it down quickly. There are other approaches, especially if bandwidth is an issue. But just replacing your gorgeous multi-megabyte jpg with a little 150x150 16-color png already saves you a bundle.
Oh, and the !^$ should probably say !^-?$ to allow for servers (or other in-transit software) that changes empty strings to -. Someone somewhere in these Forums said so.