Blocking Visits from Google Images
At approximately noon yesterday, I became a single mother.
At least until the end of the weekend. J is off to Minnesota to visit some friends, so it’s just the girls this weekend. Enter multiple binging sessions of pizza, cookies and Veggie Tales. Well, minus the pizza and the cookies because they are SO not on my diet. Ok, maybe some pizza and cookies. I’m not that good.
[queue random change of subject]
I hate Google Images. I get tons of hits to my site through them and it irks me because I don’t want that kind of traffic. I don’t want people getting to my site who are only here to steal my pictures. My Rome pics seem to be the most popular, but I don’t want that kind of surfer browsing through all my pictures of LB either.
So in case anyone else is having this same problem, I found and modified this bit of code, and then inserted it into my header. And voila! No more hits from Google Images.
<script language=”javascript” type=”text/javascript”>
var camefrom = document.referrer;var findit = “images.google”;
if (camefrom.indexOf(findit) > -1 )
{ window.location=”http://www.google.com”; }
</script>
It basically checks the referrer of any visitor to my site and if it’s someone coming from Google Images, they get redirected back to the Google.com home page. I would love to give credit to the creator of this spiffy little code, but I found it on some random forum site, and (as is my unfortunate habit) accidentally closed the browser window too soon.






































