开发者

Is there a way to make a "Undetectable Iframe Code"

For example, if this code is on any page:

<script>
if (top.location != location) {
     alert("In A Frame");
}
</script>

开发者_Go百科It will display an alert.

I need an HTML, Javascript, Php etc. that when you iframe a page with the script above, it will not trigger the alert.

My question how to break the IF statement in the iframe. (or is that possible without scraping all the website and remove it with php code)

Thanks in advance


This may interest you ... https://www.owasp.org/images/0/0e/OWASP_AppSec_Research_2010_Busting_Frame_Busting_by_Rydstedt.pdf


window.alert = function(){return null;};

This will disable alert() in IE/FF. May be you can do this in your script

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜