How to prevent an iframe to display external websites?

0 votes
asked Mar 16, 2016 by Eugenia (2,070 points)
Thanks in advancemartin

5 Answers

0 votes
answered Apr 5, 2016 by gvz_9660 (2,330 points)

If you don't protect against it, other sites could use you as an iframe.
Just adding the sandbox attribute is enough to severely lock down an iframe.
If the iframe document overrides a String.
commented Apr 6, 2016 by kellem (940 points)
It worked with simulator
0 votes
answered Jun 2, 2016 by errordemond (190 points)
You will need to tweak your code some to get this working within eclipse. I took a brief look at Frames and iframes | JavaScript Tutorial but that didn't help my
commented Jun 3, 2016 by rakestr (100 points)
Passing false as an argument will skip all rails validations
+1 vote
answered Jun 2, 2016 by klimesh (250 points)
Also the procedure described in Protect Your Website From Its Embedded Content With ... did not resolve the problem
0 votes
answered Jun 2, 2016 by ReeHow (420 points)
0 votes
answered Jun 2, 2016 by Migrations_1 (1,380 points)
This is just something I came up with to solve the problem
It's just my humble opinion, but it seems silly to me that Automatically break out of an iframe | Usable Layout the same page

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!