防止查看网页源代码
来源:互联网 发布:赵薇 马云关系 知乎 编辑:程序博客网 时间:2024/05/17 03:59
这招算是目前网上公布的防止查看源代码的方法中最好的了,当然了,要看还是办法的,比如在地址栏中输
入"javascript:alert(document.documentElement.outerHTML);"。
但好像测试了几下,简单的没多少代码的还行,对于JS较多的,就不行了。
<html>
<head>
<script language="javascript">
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代码";
document.body.innerHTML=Source;
}
</script>
</head>
<body onload=clear()>
<!--
<a href="http://www.zgsj.com">中国数据</a>可惜你看不到!
-->
</body>
</html>
入"javascript:alert(document.documentElement.outerHTML);"。
但好像测试了几下,简单的没多少代码的还行,对于JS较多的,就不行了。
<html>
<head>
<script language="javascript">
function clear(){
Source=document.body.firstChild.data;
document.open();
document.close();
document.title="看不到源代码";
document.body.innerHTML=Source;
}
</script>
</head>
<body onload=clear()>
<!--
<a href="http://www.zgsj.com">中国数据</a>可惜你看不到!
-->
</body>
</html>
- 防止查看网页源代码
- javascript清空网页代码防止查看源代码
- javascript查看网页源代码
- 查看网页源代码
- 查看网页源代码--VB
- 查看网页源代码
- <AsyncTask> 查看网页源代码
- 网页源代码查看器
- 防止查看源代码的方法
- 防止查看源代码的办法
- 查看网页源代码终极方法
- 彻底禁止查看网页源代码
- 查看3g智能手机网页源代码
- Mac-safari查看网页源代码
- android_02网页源代码查看器
- Android网页源代码查看器
- 彻底禁止查看网页源代码
- Safari如何查看网页源代码
- 比较常用,功能不错的站长工具推荐
- Weblogic 是64位还是32位的判断方法
- zoj 1708 Robot Motion(简单)
- RenderScript 学习
- BMP
- 防止查看网页源代码
- 由1-9这九个数字组成一个九位数(不能重复),前N位数能被N整除
- sybase缩小tempdb
- 编译内核步骤分析
- rgb24_to_yuv420p源代码
- JDBC处理大文本数据或二进制数据和批量处理
- windows进程详解
- Thirft框架介绍
- Android实现单一文件下载