fram problem

Discussion in 'HTML & Website Design' started by surfer33, Jul 28, 2007.

  1. #1
    i see this blog today:
    yamobile.blogspot.com/
    it has an ifram:
    <iframe frameborder="0" height="550" width="550" src="http://www.metacafe.com/"></iframe>

    but when i see weblog i redirected to www.metacafe.com

    why it happen?
     
    surfer33, Jul 28, 2007 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    That is detection code in metacafe.com detecting that it is in a frame and busting itself out...

    Generally speaking putting someone else's entire site inside a iFrame is a bad idea, and a LOT of websites don't approve of doing that, and have javascripts that do exactly what you are seeing here.
     
    deathshadow, Jul 28, 2007 IP
  3. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    plz give me a "frame-buster" for example...


    when a ifram can redirect the page to the fram src?
     
    surfer33, Jul 28, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What deathshadow is saying is that this is a measure taken by Web site owners to prevent others from stealing their site's content by making it look like another Web site. If you want a script that can do this for your own site, look at the script they use on theirs and try to make it work on yours.

    I'm away from home right now, otherwise I'd give you mine. (Deathshadow, can you loan him one of yours?)
     
    Dan Schulz, Jul 28, 2007 IP
  5. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #5
    
    <script type="text/javascript"><!--
    if (top.location!=location) {
      top.location.href=document.location.href;
    }
    --></script>
    
    Code (markup):
    good as always I think - been a while since I've worried about that.

    Sigh, you know, every time I see the thread title I keep thinking I've been mysteriously transported to an auto repair forum.
     
    deathshadow, Jul 28, 2007 IP