Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable script execution within iframe

I have a iframe which contains html. But when the html contains scripts, the iframe executes it. Is there a way to prevent it?

like image 972
clement rakesh n Avatar asked Sep 18 '14 13:09

clement rakesh n


1 Answers

just enable sandbox is simple way to start with.

<iframe src="http://www.cnn.com" width="600" height="600" sandbox=""></iframe>

http://www.w3schools.com/tags/att_iframe_sandbox.asp

like image 120
Muthukumar Anbalagan Avatar answered Oct 21 '22 00:10

Muthukumar Anbalagan