防止跨框架脚本攻击

防止跨框架脚本攻击

这个只需要在页面输入以下代码

<style> html{ visibility:hidden; }</style>
<script>
if( self == top){
        document.documentElement.style.visibility='visible';
}else{
        top.location = self.location;
}
</script>
posted @ 2021-09-09 17:51  胖三斤1  阅读(63)  评论(0)    收藏  举报
Live2D