For All Wallpaper/ Picture Site owners (Get Traffic from Google images)

Discussion in 'JavaScript' started by Jeehan, Jan 18, 2011.

  1. #1
    Google is killing our (wallpaper/picture site owners) income by showing our site's wallpaper/pics in the image search while completely blocking the site. This affecting our income. So here is a code to prevent it.This will take the user to the page where the image is actually located instead showing in google image preview.


    Add the following code just before </head> in your page.
    <script type="text/javascript">var isInIFrame = (window.location != window.top.location) ? true : false; if (isInIFrame) window.top.location = window.location;</script> 
    Code (markup):
    Test it by typing
    site:yoursite.com
    Code (markup):
    on http://images.google.com and click on any image.



    Hope this will be helpful to someone.
     
    Jeehan, Jan 18, 2011 IP
  2. DevNCode2009

    DevNCode2009 Member

    Messages:
    200
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    absolutely beautiful ... I just tried it on my wallpaper site, and it works perfectly! Thankyou!
     
    DevNCode2009, Jan 20, 2011 IP
  3. Jeehan

    Jeehan Well-Known Member

    Messages:
    1,578
    Likes Received:
    31
    Best Answers:
    1
    Trophy Points:
    115
    #3
    im glad :)
     
    Jeehan, Jan 21, 2011 IP
  4. CaLLMeDaDDy

    CaLLMeDaDDy Peon

    Messages:
    472
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for this.
    Now visitors from google images will see the content as well as the image!
     
    CaLLMeDaDDy, Jan 21, 2011 IP
  5. temp2

    temp2 Well-Known Member

    Messages:
    1,231
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    150
    Digital Goods:
    2
    #5
    yeah, but I think pic niches dont make $ much
     
    temp2, Jan 21, 2011 IP