iframe breaker

Discussion in 'PHP' started by adi4x, May 15, 2010.

  1. #1
    Some webmasters are sending me iframe traffic and i want to block that.
    Is it possible from PHP to crash the iframer site ?
     
    adi4x, May 15, 2010 IP
  2. live.co.uk

    live.co.uk Banned

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can onlu use java script to do that
    php is server sid ok!!!!!
     
    live.co.uk, May 15, 2010 IP
  3. live.co.uk

    live.co.uk Banned

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can ot doing that by php
    because php is server sid
    try the java script
     
    live.co.uk, May 15, 2010 IP
  4. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #4
    Put this code in your site

    <script type="text/javascript">
    if (top.location != location) {
    top.location.href = document.location.href ;
    }
    </script>
     
    Bohra, May 15, 2010 IP
  5. adi4x

    adi4x Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    good one Bohra!

    I did not received form post notification :( but i have found exactly the same solution and it works !!!

    Over the weekend my traffic increased a lot from 2500 unique visitors /day to over 4000...

    These days also traffic is much higher then usual according Google An. so its highly recommended for all webmasters

    My site its quite old and i never gave too much attention too this but finally it was a very good decision
     
    adi4x, May 27, 2010 IP