Bryan99
Bryan99

Reputation: 19

How to stop a frame breaker?

I'm trying to iframe a website that has implemented a framebreaker code. This is the URL:

http://bit.ly/P39Tev

Do you know any way to make it so that it doesn't break out of frame? I've tried almost every framebreaker buster codes but none have worked correctly, or stopped the website from loading completely.

I would really appreciate a solution for this.


Edit:

Here is my iframe code:

<IFRAME SRC='bit.ly/P39Tev'; SCROLLING='no' WIDTH='1' HEIGHT='1' FRAMEBORDER='no'></IFRAME> 

Upvotes: 0

Views: 2654

Answers (2)

i β
i β

Reputation: 1

You can add SANDBOX to the iframe tag, you can leave it blank or you can put it this way:

<IFRAME SRC='bit.ly/P39Tev'; SCROLLING='no' WIDTH='1' HEIGHT='1' FRAMEBORDER='no' SANDBOX='allow-scripts'></IFRAME>

to make bit.ly able to use javascript. If you don't know if the frame could sometime need to use forms, you can use:

<IFRAME SRC='bit.ly/P39Tev'; SCROLLING='no' WIDTH='1' HEIGHT='1' FRAMEBORDER='no' SANDBOX='allow-scripts allow-forms'></IFRAME>

Upvotes: 0

John
John

Reputation: 3797

Your problem is not that this website is breaking out of the iframe, it is that the iframe is redirecting the whole page to the actual website. Check the URL bar as you pull up the page, you will see it. This is how I fixed it:

<IFRAME  src='http://bit.ly/P39Tev' sandbox='' scrolling='no' width='100' height='100' frameborder='yes'></IFRAME>

This will prevent the page from redirecting the parent:

sandbox=''

Upvotes: 0

Related Questions