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
精彩评论