国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導(dǎo)航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術(shù)|正則表達式|C/C++|IOS|C#|Swift|Android|VB|R語言|JavaScript|易語言|vb.net|

服務(wù)器之家 - 編程語言 - ASP教程 - asp實現(xiàn)禁止搜索引擎蜘蛛訪問的代碼

asp實現(xiàn)禁止搜索引擎蜘蛛訪問的代碼

2019-06-27 15:45服務(wù)器之家 ASP教程

這篇文章主要介紹了asp實現(xiàn)禁止搜索引擎蜘蛛訪問的代碼,十分的簡單實用,有需要的小伙伴可以參考下。

這段代碼可以控制常用的搜索引擎無法訪問asp頁面,需要在每個asp頁面包含這段代碼。

<%
function isspider()
dim i,agent,searray
agent="agent:"&LCase(request.servervariables("http_user_agent"))
searray=array("googlebot","baiduspider","sogouspider","yahoo","Sosospider")
isspider= false
for i=0 to ubound(searray)
 if (instr(agent,searray(i))>0) then isspider=true
next
end function

function fromse()
dim urlrefer,searray,i
urlrefer="refer:"&LCase(request.ServerVariables("HTTP_REFERER"))
fromse= false
if urlrefer="" then fromse= false
searray=array("google","baidu","sogou","yahoo","soso")
for i=0 to ubound(searray)
 if (instr(urlrefer,searray(i))>0) then fromse=true
next
end function

if(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 if
end if                
if (fromse()) then
 response.write("<br/>")
 response.end
else
end if
%>

以上所述就是本文的全部內(nèi)容了,希望大家能夠喜歡。

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 成人免费在线视频 | 欧美福利视频 | 1区2区视频| 懂色中文一区二区在线播放 | 一区二区三区四区精品 | 噜噜噜噜噜色 | 免费观看黄色 | 国产日韩精品在线观看 | 一区二区三区影视 | 国产99久久久精品视频 | 午夜视频免费在线观看 | 中文字幕乱码亚洲精品一区 | 一级黄色片日本 | 成人aaaa免费全部观看 | 亚洲欧美日韩另类一区二区 | 精品国产一区二区三区日日嗨 | 黄在线看v | 久久久91精品国产一区二区三区 | 国产片av在线永久免费观看 | 中文字幕av一区二区 | 国产成人一区二区在线观看 | 一区二区三区在线 | 国产精品a久久久久 | 亚洲精品一区二区三区蜜桃久 | av中文字幕在线观看 | 在线免费日韩 | 中文字幕在线观看 | 亚洲久久 | 精品久久99 | 亚洲乱码国产乱码精品精的特点 | 国产精品视频在线观看 | 国产日韩精品在线观看 | 日韩大片在线观看 | 久久国产精品久久精品 | 中文字幕精品视频 | 国产日韩一区二区三免费高清 | 久9re热视频这里只有精品 | 国产精品日本一区二区不卡视频 | 久久精品一 | 一区二区影视 | 欧美日韩中文在线观看 |