Removing google image frame

Discussion in 'Guidelines / Compliance' started by sach999, Jul 13, 2011.

  1. #1
    I am new to blogging.I started about month ago and I
    have a descent amount of traffic from google image searches.But I hardly get
    any visitors from google web search.I've seen images on google image search
    which directs me to the site's home page instead of the image url.So I
    googled a bit and found a code to do that.My problem is,does this
    violate adsense TOS or google Webmaster guidelines?I don't wanna get penalized by
    google by doing this.Is it ok to do this?

    the code I found:
    <script language=”JavaScript” type=”text/javascript”>
    if (top.location != self.location) top.location = self.location;
    </script>
     
    sach999, Jul 13, 2011 IP
  2. atozvision

    atozvision Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    don't edit adsense code.
     
    atozvision, Jul 13, 2011 IP
  3. sach999

    sach999 Greenhorn

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    thanks for the reply :)
    But I'm NOT talking about modifying the adsense code.This is a code that can remove the image frame in google images.
     
    sach999, Jul 14, 2011 IP
  4. dian_ribut

    dian_ribut Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    wow,thats great. . thanks for the tips :)
     
    dian_ribut, Jul 17, 2011 IP
  5. Trix

    Trix Peon

    Messages:
    192
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #5
    3 questions....

    1) Why is this in Adsense forum ?

    2) under the condition, top.location and self.location are same
    will the page gets reloaded when the value is directly set without that if condition ?

    3) will "top" be undefined when the page is loaded normally ?
     
    Trix, Jul 19, 2011 IP