I get quite a lot of traffic to one of my sites from google image search and was wondering if there was any way i could automagically insert the image returned by the image search into a frame or something that said "image taken from www.xxxx.com ?"
You would use javascript to break out of Google's frame, and PHP to check if the referrer is image search and if so add an extra frame.
Here's my code for breaking out of Google's frame - <script type="text/javascript"> function handleError() { top.location.href = location.href } window.onerror = handleError; if (top.location != document.location) { if (top.location.href) { //do nothing } } </script> Code (markup): The referrer based frame you'll have to write yourself.