锁定你的网站,不让网页在其它人的框架内出现。

代码一条,加入到head部分。演示效果暂无。

<Script LANGUAGE=”JavaScript”>
if(self!=top){top.location=self.location;}
</script>

转载请注明出处:https://www.onexin.net/lock-your-website-and-not-to-pages-within-the-framework-of-other-people/

随机文章:

1、JS特效:用鼠标事件实现图片的渐显效果
https://www.onexin.net/js-effects-use-the-mouse-events-effects-to-achieve-a-picture-jian-xian/

2、Magento Articles for Professional Developers
https://www.onexin.net/magento-articles-for-professional-developers/

3、一个针对IE7的CSS Hack
https://www.onexin.net/one-for-the-ie7-css-hack/

4、利用htaccess文件来禁止ip
https://www.onexin.net/htaccess-file-to-ban-the-use-of-ip/

5、Discuz!Q 安装后图片不能显示(没使用对象存储)怎么办?
https://www.onexin.net/discuzq-storage/

Leave a Reply