以动感下载系统为例:
打开文件 SoftDown.Asp 在: Chinaz.com
以下是引用片段:
if request.QueryString("ID")="" then
response.write "不能连接或者没有指定下载软件"
response.end
end if |
中国站.长.站
的上面 中国站.长.站
或者是下面加上下列代码 中.国站长站
以下是引用片段:
dim strReferer,domain,splDomain,isHttp
isHttp=false |
站长.站
本站下载系统网址列表,不要带上http:// 站.长.站
以下是引用片段:
domain="sron.net,61.156.14.223,61.156.14.227"
splDomain=split(domain,",")
strReferer=Request.ServerVariables("HTTP_REFERER")
for iii = 0 to ubound(splDomain)
if instr(strReferer,trim(splDomain(iii)))>0 then isHttp=True
next
if isnull(strReferer) or isHttp=false then
Response.Write "下载链接来自其他网站,这是不允许的,请进入本站页面后再进行下载。" Chinaz_com
CloseDatabase
response.end
end if |
中.国.站.长.站
本站下载系统网址列表 就是访问你下载频道网址里的域名,比如你的下载频道可以用多个网址来访问,所以这里用逗号隔开 。 Www.Chinaz.com
|