Anti IFrame Buster Script Needed.

Discussion in 'JavaScript' started by murtazamalik123, Oct 3, 2010.

  1. #1
    murtazamalik123, Oct 3, 2010 IP
  2. clockedout7

    clockedout7 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to replace "http://server-which-responds-with-204.com" in the code with an address to some real site which actually responds with "HTTP/1.1 204 No Content", and then add the modified code to your site.
     
    clockedout7, Oct 4, 2010 IP
  3. murtazamalik123

    murtazamalik123 Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanx dude.. but please can you tell me how to make an http 204 no content page.. or any other page which responds to such error...
     
    murtazamalik123, Oct 6, 2010 IP
  4. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #4
    It depends on what the content you are trying to load within the iframe, if it is just static html then you could easily create a server-side proxy to load the data. If it is not then I can't see an easy solution...
    You could try maybe creating a hidden iframe that points to the server you are trying to load and add the attributes name="top" id="top". Not sure if it would work though...
     
    camjohnson95, Oct 6, 2010 IP
  5. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #5
    e.g:
    
    <iframe src="http://urlofiframe.com" id="top" name="top" style="display: none;"></iframe>
    
    Code (markup):
     
    camjohnson95, Oct 6, 2010 IP