My code to redirect google images vistor

m7shsh

Regular Member
Joined
Jun 17, 2007
Messages
202
Reaction score
128
Hello

you Know if any one search in google images about any thing

and he found image in your site

google will show him the image and the vistor save the image and close the page :(

i found this code his job when vistor come from google images he will redirect them to the image in post :))

only copy the code and post it in the header

go to google images and write site:example.com
change example to your site
and test it


Code:
<script type="text/javascript">
<!--
var SESSIONURL = "";
var IMGDIR_MISC = "images/ca_evo2_purple/misc";
var vb_disable_ajax = parseInt("1", 10);

if (self != top && document.referrer.indexOf('http://images.google.') <= -1 && document.referrer.indexOf('/imgres?imgurl=') <= -1){
top.location.href = document.location.href ;
}

// -->
</script>

i hop that help you :)
thanks+ rep please if help
 
Really want to try this out on one of my sites as I get about 3k visits daily through images, but will this piss of big G? Wouldn't want my adsense to get slapped or my rankings for those words to drop... Anyone using this method with Adsense?
 
Really want to try this out on one of my sites as I get about 3k visits daily through images, but will this piss of big G? Wouldn't want my adsense to get slapped or my rankings for those words to drop... Anyone using this method with Adsense?

yes no problem with adsense and G

see her example for site using this code :)

Code:
http://www.google.com.sa/imgres?q=site:forums.fatakat.com&um=1&hl=ar&safe=active&tbm=isch&tbnid=DnE1aXuV7iCvrM:&imgrefurl=http://forums.fatakat.com/thread2285193&docid=0ay0To3cGUPwfM&imgurl=http://files2.fatakat.com/2011/12/13231269475599.jpg&w=2128&h=2832&ei=iqfiTommHu_44QTyzaXnDQ&zoom=1&iact=hc&vpx=679&vpy=115&dur=887&hovh=259&hovw=195&tx=132&ty=127&sig=111746779425820401918&page=1&tbnh=153&tbnw=115&start=0&ndsp=32&ved=1t:429,r:4,s:0&biw=1762&bih=828
 
I also have a website that gets traffic from google images, also with a frame breaker. I advice against using adsense on that website.

I don't know if it affects rankings, so I deleted my frame breaker now from header.php and I guess I'll find out.
 
How long have you been using it, i'm in the same situation as rush7 lots of image traffic but don't want to piss off the G.
 
yes no problem with adsense and G

see her example for site using this code :)

Code:
http://www.google.com.sa/imgres?q=site:forums.fatakat.com&um=1&hl=ar&safe=active&tbm=isch&tbnid=DnE1aXuV7iCvrM:&imgrefurl=http://forums.fatakat.com/thread2285193&docid=0ay0To3cGUPwfM&imgurl=http://files2.fatakat.com/2011/12/13231269475599.jpg&w=2128&h=2832&ei=iqfiTommHu_44QTyzaXnDQ&zoom=1&iact=hc&vpx=679&vpy=115&dur=887&hovh=259&hovw=195&tx=132&ty=127&sig=111746779425820401918&page=1&tbnh=153&tbnw=115&start=0&ndsp=32&ved=1t:429,r:4,s:0&biw=1762&bih=828

Look at that Alexa Rank ... 599
Rules can be bent even with google if you have a real website, not a money making website.

For example look at SourceForge>dot<net
They have 4 x 300x250 banners ... when Google clearly states that you're only allowed to have 3

Another example: ArmorGames>dot<com
Google demands that all ads should be atleast 150px away from the flash games, because the user could accidentaly click on the ad while playing the game.

...
 
Last edited:
Back
Top