欢迎各位兄弟 发布技术文章
这里的技术是共享的
首先通过您的ftp工具登入您的php虚拟主机,进入您网站的根目录(无忧主机用户进入public_html目录)下的templates文件夹,进入您网站所对应的模版,找到相应模版下的index.php文件,鉴于不同文件的模板格式不一样index.php只是常用格式,具体要根据程序而定。
把以下代码index.php文件的<head></head>内就可以了
<script language=”javascript”>
document.oncontextmenu=new Function(“event.returnValue=false;”);//屏蔽右键
document.onselectstart=new Function(“event.returnValue=false;”);//屏蔽鼠标拖动
</script>
<!–禁止另存为–>
<noscript><iframe></iframe></noscript>
这样就没有人可以盗用你网站的内容了!
本文地址:http://www.51php.com/others/14105.html
来自 http://www.51php.com/others/14105.html