1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

frame redirect question

Discussion in 'Cloaking and Content Generators' started by Gecko, Aug 29, 2009.

  1. Gecko

    Gecko Registered Member

    Joined:
    Feb 8, 2009
    Messages:
    61
    Likes Received:
    66
    Occupation:
    inner city agriculture
    Location:
    underground tunnels
    I am trying to use frames to hide the address of the website i want people to view. I am trying to frame "site1.com" with my frames or what ever i have to do on site2.com all I want people to see is site2.com

    I am up against this code which resides on a JS call.


    Code:
    if (self != top) {
    //Add Code here to log the ocurrance
    
    //Redirect them to an error page
        top.location.href = 'http://death.website.com'; //window.location.href;
        }
    I need to get around this some how. anyone ever had this trouble?

    Please help,

    Thanks
     
  2. drkenneth

    drkenneth Executive VIP

    Joined:
    Nov 13, 2008
    Messages:
    285
    Likes Received:
    176
    Occupation:
    Developer/Entrepreneur
    Location:
    USA
    There is no way, to the best of my knowledge, to defeat a javascript frame-breaking script.
    Sorry, you're going to have to work around it :(
     
  3. BadArticle

    BadArticle Junior Member

    Joined:
    Aug 10, 2009
    Messages:
    100
    Likes Received:
    29
    Home Page:
    this frame-breaking code might not work on all browsers, try
    change top.location.href = to top.location =

    ok, I help your enemy here :(

    for anti-frame-break, I ONLY know one method and it's not always working

    methid very simple, setup a timeout counter window.setTimeout as 1 ms, and only do one thing: setup top.location.href = location.href (you need get location href to a var first)

    of cause, you also need watch clicks and disable this gadget

    this method is too ideally anyway

    -- Referer.us
     
  4. Gecko

    Gecko Registered Member

    Joined:
    Feb 8, 2009
    Messages:
    61
    Likes Received:
    66
    Occupation:
    inner city agriculture
    Location:
    underground tunnels
    thanks I will give it a shot