Creating Frame Breaker Site ?

Discussion in 'JavaScript' started by Rubab Mustafa, Nov 11, 2013.

  1. #1
    How Can I Convert My Site To A frame Breaker Site [​IMG][​IMG]

    Doing It With J.S But Couldn't Succeed :(

    Any Help???
     
    Rubab Mustafa, Nov 11, 2013 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,824
    Likes Received:
    4,539
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Who shows sites in frames anymore?
    Javascript should handle it easily. Can you give an example of your site in a frame that you haven't been able to break out of?
     
    sarahk, Nov 11, 2013 IP
  3. Rubab Mustafa

    Rubab Mustafa Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    You Didn't Get Me :)
    I Want To Say That When People Advertise in My Site It Shows In-side Frames ...!
    I Want That My Site Pop-out Frame
     
    Rubab Mustafa, Nov 11, 2013 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,824
    Likes Received:
    4,539
    Best Answers:
    123
    Trophy Points:
    665
    #4
    Nope, no clearer, can you give an example?
     
    sarahk, Nov 12, 2013 IP
  5. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #5
    Some advertising systems use iframes, which is normal, if those are the frames you are concerned about. Don't do anything to the ads as it will probably violate their TOS.
     
    ryan_uk, Nov 12, 2013 IP
  6. Rubab Mustafa

    Rubab Mustafa Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #6
    That Is What I Want As Explained By @ryan_uk
    I Want That They Are Un-able To Advertise My Site On PTC Sites :)
     
    Rubab Mustafa, Nov 12, 2013 IP
  7. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #7
    OK, now I understand, I think. You don't want you site within a frame.

    So you would need to deny it via .htaccess with something like:

    Header set X-Frame-Options DENY
    Code (markup):
    IF you are using Apache, otherwise you will need to research the equivalent for whatever webserver you are using.
     
    ryan_uk, Nov 12, 2013 IP
  8. Rubab Mustafa

    Rubab Mustafa Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #8
    I Was Thinking Of Doing It With J.S
     
    Rubab Mustafa, Nov 12, 2013 IP
  9. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #9
    You could use JavaScript, but that is an easier to bypass method.

    Did you actually try searching Google for "break out of frame with javascript"? It's a well-documented solution.
     
    ryan_uk, Nov 12, 2013 IP