1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Break google images frame

Discussion in 'Black Hat SEO' started by NYKlance, Sep 1, 2011.

  1. NYKlance

    NYKlance Registered Member

    Joined:
    Dec 1, 2009
    Messages:
    60
    Likes Received:
    1
    So I'm getting a decent amout of google images traffic and I want to break the frame.

    I tried using the following code in my header.php
    PHP:
    <script type=?text/javascript?>
    <!?
    if (top.location!= self.location) {
    top.location = self.location.href
    }
    //?>
    </script>
    But the frame didn't break when I tested it. Does this code still work? If not, can anyone give me another method?
     
  2. veer pan

    veer pan Junior Member

    Joined:
    Jul 21, 2011
    Messages:
    180
    Likes Received:
    59
    I am also looking for similar one.
     
  3. jacobs

    jacobs Power Member

    Joined:
    Oct 10, 2008
    Messages:
    530
    Likes Received:
    152
    Home Page:
    Code:
    <script type="text/javascript">
    
    	if (top != self) top.location.href = self.location.href
    
    </script>
    this is the code im using and its working fine.
     
    • Thanks Thanks x 1
  4. WildDisease

    WildDisease Junior Member

    Joined:
    Aug 3, 2011
    Messages:
    109
    Likes Received:
    5
    Is this alright for pages with adsense ? lol
     
  5. NYKlance

    NYKlance Registered Member

    Joined:
    Dec 1, 2009
    Messages:
    60
    Likes Received:
    1
    thanks jacobs. that code did the trick