SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    prevent frames from breaking

    I could ricie myself here pretty good by asking this. but is there anyway to prevent frames from breaking. Examples of how to break them are everywhere, and makes sense.

    But a way to stop a foreign page from exiting a frame or at least limit it's chances would be pretty neat. I can both see why there wouldn't be a way to do such a thing, but thought I'd throw it out there.

  2. #2
    SitePoint Wizard silver trophy KLB's Avatar
    Join Date
    Nov 2003
    Location
    Maine USA
    Posts
    3,781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If a foreign site doesn't want to be trapped in someone elses frames, then you should not try to stop it from breaking out of your frames. If it is possible, I certainly hope other members do not share how to do this.
    Ken Barbalace: EnvironmentalChemistry.com (Blog, Careers)
    InternetSAR.org
    Volunteers Assist Search and Rescue via Internet
    My Firefox Theme: Classic Compact
    Based onFirefox's default theme but uses much less window space

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,789
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    I have seen one site that used server side processing to bypass simple frame breakers (I have an idea of how they did it but I am not going to provide details).

    My page http://javascript.about.com/library/blfrm3.htm has details on how to set up a frame braker that can't be bypassed.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Wizard silver trophy KLB's Avatar
    Join Date
    Nov 2003
    Location
    Maine USA
    Posts
    3,781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall
    I have seen one site that used server side processing to bypass simple frame breakers (I have an idea of how they did it but I am not going to provide details).
    This would be copyright infringement and would get your site shut down in a heart beat by many ISPs if victim sites complained.

    Also remember that in the late 1990's there were a rash of search engine type sites that were framing linked sites with their own ads, etc. Basically they all were sued into ending the practice.

    If you want to frame someone else's site, don't go the extra step of trying to stop the other site from breaking out of your frames if they wish. Such tactics are scummy sleazy tactics at best.
    Ken Barbalace: EnvironmentalChemistry.com (Blog, Careers)
    InternetSAR.org
    Volunteers Assist Search and Rescue via Internet
    My Firefox Theme: Classic Compact
    Based onFirefox's default theme but uses much less window space

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know that it wouldn't be considered a good tactic and I can appreciate if you don't want to share any info.

    I'm writing an app that provides search results in a frame view, that opens in a new window. You can see how I run into problems when sites break out of the frames. and as such exit my explorer. I'm providing them a service so that others can rank their site, and send traffic to it, so in this case I don't feel that I'm breaking any 'webmaster code of conduct' or anything like that.

  6. #6
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    KLB. Thanks for your updated reply. I'm not out to infringe, and that post has 99% made me change my desicion.

    I won't be displaying ads, or anything, just the ability to rank the site, and return back to mine.

  7. #7
    SitePoint Wizard silver trophy KLB's Avatar
    Join Date
    Nov 2003
    Location
    Maine USA
    Posts
    3,781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ryanpaul
    I know that it wouldn't be considered a good tactic and I can appreciate if you don't want to share any info.

    I'm writing an app that provides search results in a frame view, that opens in a new window. You can see how I run into problems when sites break out of the frames. and as such exit my explorer. I'm providing them a service so that others can rank their site, and send traffic to it, so in this case I don't feel that I'm breaking any 'webmaster code of conduct' or anything like that.
    Basically if a site like mine attempt to break out of your frames, then we don't want to be a part of your "service" and yes it would be bad conduct even if you weren't placing ads. Also some (poorly designed) sites can run into functional problems if they are caught inside of someone else's frames especially if they use frames themselves because it can cause the mistargeting of links, etc.
    Ken Barbalace: EnvironmentalChemistry.com (Blog, Careers)
    InternetSAR.org
    Volunteers Assist Search and Rescue via Internet
    My Firefox Theme: Classic Compact
    Based onFirefox's default theme but uses much less window space

  8. #8
    SitePoint Enthusiast
    Join Date
    Oct 2005
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep. Thanks again. These are alot of things that I never thought about before, and I'm glad your giving them to me to flat out.

    I've decided to not do it. so we can rename this thread from "prevent frames from breaking" to -> "Reasons not to stop frames from breaking".

    Thanks again.

  9. #9
    SitePoint Wizard silver trophy KLB's Avatar
    Join Date
    Nov 2003
    Location
    Maine USA
    Posts
    3,781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ryanpaul
    Thanks again.


    Many folks here at SitePoint are always good at being brutally honest. Often times what seems like a good idea on the surface is not so great of an idea once one digs a little and sees the ramifications.
    Ken Barbalace: EnvironmentalChemistry.com (Blog, Careers)
    InternetSAR.org
    Volunteers Assist Search and Rescue via Internet
    My Firefox Theme: Classic Compact
    Based onFirefox's default theme but uses much less window space

  10. #10
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    While I agree that a site owner may not want people to actually steal content by opening pages within frames, I will disagree in two ways:

    a) A well designed site will always have the owner's data, image, etc... so as a site owner it may even be good that someone includes the site in a frame. It is a way to get more traffic.

    b) There are legitimate ways to show third party's sites within another site, particularly in traffic exchanges and other online marketing resources. A site that breaks out of frames disrupts a legitimate TE operation. A traffic exchange, among other web marketing sites, may certainly use a script that stops frame breakers. btw... it is rather simple to stop the most common frame breaking script.

    This is just a matter of responsibility.

    I know many programmers, Internet users and experts regard online marketers as some kind of "bad guys" (to say the least) but it is still a legitimate business and a millionaire industry.

    Enjoy a great day...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •