Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 12 of 12
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to defeat frame busting?

    Is there a way to defeat frame busting?

    I want to create specialized sites like www.torrentscan.com but for educational links, grouped by subject.

    Some of the sites use frame-busting and I want to defeat it to include them in the list of links and show their site in the main content frame.

    How can I defeat frame busting to accomplish this?

    I understand the reasoning behind frame-busting (to keep people from stealing your content). But, what about legitimate uses for frames - like as an index to related websites for a community of users that are interested in a particular subject?

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    To my knowledge you cannot, thats the point of them to prevent people from showing someone elses site as their own
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    New Coder
    Join Date
    Oct 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Just how prevelant is frame busting?

    I have seen it on a few sites, is it something that is used by a majority if websites?

    If so, I am afraid my project is dead. Users will not be able to add links to the lists as planned.

  • #4
    New Coder
    Join Date
    Oct 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Perhaps I should encourage my users to encourage any sites that use frame busting to allow the frames if parent.location = mywebpage?

    That way the website owner can still bust out of any frames that do not originate from my domain.

    But, I wonder how many admins are likely to make that change? Let's ask the panel....

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    is it something that is used by a majority if websites?
    I think so, I even use it on my own site
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #6
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Perhaps I should encourage my users to encourage any sites that use frame busting to allow the frames if parent.location = mywebpage?
    I somehow do not think they will
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #7
    New Coder
    Join Date
    Oct 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Their site would be clearly marked as coming from them. There would be a button provided to my users to allow direct bookmarking of their content and the site would be carefully constructed so as to not interfere with the look and feel of their web pages.

    It would look no different than if viewed in a browser.

    What do you think might be their objections?

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    623
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Quote Originally Posted by smerf View Post
    There would be a button provided to my users to allow direct bookmarking of their content....
    That's a cute trick! How would you do it?

  • #9
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Quote Originally Posted by smerf View Post
    There would be a button provided to my users to allow direct bookmarking of their content
    How do you intend to do that considering that most web browsers don't allow access to the blookmark list from the web page to be able to add the page automatically.

    Based on what you are trying to do it appears that you have no real idea of how the web works.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #10
    New Coder
    Join Date
    Oct 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Easy really....

    Quote Originally Posted by jalarie View Post
    That's a cute trick! How would you do it?
    You would send the URL of the page you want to trap to a web service. The web service grabs the page using a webbrowser object, strips out things like HEAD tags, BODY tags, advertising and any code that may try and defeat the attempt (Javascripts and such that you may have seen before) and returns the tweaked HTML that can now be inserted in a DIV tag.

    There is no defense against this that I am aware of.
    Last edited by smerf; 10-24-2006 at 06:45 AM.

  • #11
    New Coder
    Join Date
    Oct 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by felgall View Post
    How do you intend to do that considering that most web browsers don't allow access to the blookmark list from the web page to be able to add the page automatically.

    Based on what you are trying to do it appears that you have no real idea of how the web works.
    I was simply thinking out loud. I have seen javascripts for adding links to favorites in many places - but I have not tested any of them out.

    Even if they do not work with modern browsers, I can always add a simple link or instruction to right click to add to favorites.

    Thanks for your post!
    Last edited by smerf; 10-24-2006 at 06:44 AM.

  • #12
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,640
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Add to Favorites only works in IE and you can add to the sidebar from Javascript in Firefox but there is no equivalent for other browsers.

    You would send the URL of the page you want to trap to a web service. The web service grabs the page using a webbrowser object, strips out things like HEAD tags, BODY tags, advertising and any code that may try and defeat the attempt (Javascripts and such that you may have seen before) and returns the tweaked HTML that can now be inserted in a DIV tag.

    There is no defense against this that I am aware of.
    Stripping the content out of someone else's page to display it in yours like that is a very clearcut case of THEFT and a court of law will soon deal with the offender. There certainly is no defense that would stand up in court in this instance.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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