防止跨框架脚本攻击
防止跨框架脚本攻击
这个只需要在页面输入以下代码
<style> html{ visibility:hidden; }</style>
<script>
if( self == top){
document.documentElement.style.visibility='visible';
}else{
top.location = self.location;
}
</script>
有什么错误或者改进意见欢迎评论或发给我噢!大家一起共同学习!大佬多指教!!!!