dim concenturl concenturl="" '这里添加可以引用的域.有多个用|割开if trim(concenturl)<>"" and checkserver(concenturl)=false then response.write "document.write ('数据被保护,禁止被其他站点调用!');" response.end end ifPrivate function checkserver(str) dim i,servername checkserver=false if str="" then exit function str=split(Cstr(str),"|") servername=Request.ServerVariables("HTTP_REFERER") for i=0 to Ubound(str) if right(str(i),1)="/" then str(i)=left(trim(str(i)),len(str(i))-1) if Lcase(left(servername,len(str(i))))=Lcase(str(i)) then checkserver=true exit for else checkserver=false end if next end function
1,改改目录名称
他也会改了目录(地址);
---
因为网址是在公网上,用户验证好像不可行>>>>具体怎么做来源页检测,望能详细说下不过很感谢你给出许多方案
这个问题好办!判断一下 PHP_SELF或者session什么 如果与自己的不同就显示: 盗链、可耻
干吗要显示“盗链、可耻”呢?直接跳转到自己的网页,他就等于给网站做宣传,欢迎盗链
CSDN小助手 是一款脱离浏览器也可以使用csdn论坛的
软件!
界面: http://qqwwee.com/
下载: http://qqwwee.com/csdn.rar 包含源代码
session的应该可行,但不是很好(因为可能过短时间会丢失)能把原理说一下,或者找一些介绍这个的网址看看吗,过两天就结贴
到时也把最终结果说一下,希望能找个完美方案
可以判断来路的,如果你是静态的网站比如wml页面。那么只好配置apache了。
concenturl="" '这里添加可以引用的域.有多个用|割开if trim(concenturl)<>"" and checkserver(concenturl)=false then
response.write "document.write ('数据被保护,禁止被其他站点调用!');"
response.end
end ifPrivate function checkserver(str)
dim i,servername
checkserver=false
if str="" then exit function
str=split(Cstr(str),"|")
servername=Request.ServerVariables("HTTP_REFERER")
for i=0 to Ubound(str)
if right(str(i),1)="/" then str(i)=left(trim(str(i)),len(str(i))-1)
if Lcase(left(servername,len(str(i))))=Lcase(str(i)) then
checkserver=true
exit for
else
checkserver=false
end if
next
end function
这个地方的图片就有防盗功能
if (self!=top) window.top.location.replace(self.location);
</script>
其实这个做法就象是hotmail对信件的处理一样
将所有的连接都进行了转换,连接打开时都会调用一段javascript的程序
来实现对网站的盗用,不是简单的iframe处理的方法很简单:
只需要判断当前网址是不是你的域名就可以了
如果不是则直接转到你的网址
楼主,这叫做“小偷”(也叫“采集”)。
是直接把你的网页相关内容读入到他们的数据库里,然后重新生成页面。
里面的连接用正则处理一下就可以完成替换了。 防不了, 只要你有输出就可以采,就算用Cookie,Session,JavaScript等都不能完全防止被采集。
最后我refer,ip,域名都判断了下
那边可能觉得不好意思了,后来就没有在盗链