How to protect my site from being iframed? Protect against framing

Discussion in 'AdSense' started by abdobasha2004, Apr 25, 2008.

  1. #1
    How to protect my site from being iframed?
    Protect against framing <iframe>page</iframe>

    this annoys me

    any one got any idea??
     
    abdobasha2004, Apr 25, 2008 IP
    1 person likes this.
  2. Fka200

    Fka200 Guest

    Best Answers:
    0
    #2
    I'm not sure you can!
     
    Fka200, Apr 25, 2008 IP
  3. saadalgazzar

    saadalgazzar Peon

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <script type="text/javascript" language="JavaScript"><!--
    if (self != top)
    {
    if (document.images)
    top.location.replace(window.location.href);
    else
    top.location.href = window.location.href;
    }
    // --></script>

    put it in your pages
    اى خدمه يا حاج عبده
     
    saadalgazzar, Apr 25, 2008 IP
  4. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #4
    thaaaaaaaaaanx saadalgazzar
    ربنا يكرمك
     
    abdobasha2004, Apr 26, 2008 IP
  5. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #5
    but where to put it
    <head>

    or <body>??
     
    abdobasha2004, Apr 26, 2008 IP
  6. FanAddict

    FanAddict Notable Member

    Messages:
    7,017
    Likes Received:
    376
    Best Answers:
    0
    Trophy Points:
    230
  7. SeoVeteran33

    SeoVeteran33 Well-Known Member

    Messages:
    390
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #7

    You have to put it in the <head>
     
    SeoVeteran33, Apr 26, 2008 IP
  8. lamelime

    lamelime Peon

    Messages:
    360
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #8
    What do you mean protect against iframing?? What do you mean??
     
    lamelime, Apr 26, 2008 IP
  9. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #9
    some sites put ur site in there pages using <iframe> code
    which sometimes misdiagnosed by =adsense as autosurf
     
    abdobasha2004, Apr 27, 2008 IP
  10. lamelime

    lamelime Peon

    Messages:
    360
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ohhh, okay, that makes sense. And that is against the tos now i am gussing which could get you banned. I remember i did that once, displayed my ads through and iframe, good thing i changed it a while ago. I had no clue it was against the tos,

    Thanks,
     
    lamelime, Apr 27, 2008 IP
  11. abdobasha2004

    abdobasha2004 Well-Known Member

    Messages:
    1,117
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    160
    #11
    the code above doesnot work for me

    plz help
     
    abdobasha2004, Apr 29, 2008 IP
  12. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #12
    I would also need to find out how to prevent this. Rather than opening a separate thread, I just bump this one instead.

    Anyone can help telling us how to prevent our site from being iframed?

    Case:

    I have rsmaker.com and wonder why does the site use too much bandwidth. And then I found this site framing my site.

    http://premiumgens.blogspot.com/2008/07/rsmakercom.html

    how can I prevent this from happen? Don't tell me just to change a filename. I need a code or script that can prevent some other idiots from using my site on theirs.

    thank you.
     
    proxywhereabouts, Aug 12, 2008 IP