婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > asp實現禁止搜索引擎蜘蛛訪問的代碼

asp實現禁止搜索引擎蜘蛛訪問的代碼

熱門標簽:微信地圖標注有什么用 北京大興區地圖標注 地圖標注不完整被罰款 地圖標注中心多少錢注冊 電銷機器人一個多少錢 鄭州語音電銷機器人官網 重慶外呼電銷系統費用 濰坊呼叫中心外呼系統供應商 不封卡外呼系統一般多少錢

這段代碼可以控制常用的搜索引擎無法訪問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
%>

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

您可能感興趣的文章:
  • asp.net(c#)捕捉搜索引擎蜘蛛和機器人
  • asp 判斷是否為搜索引擎蜘蛛的代碼
  • php 判斷訪客是否為搜索引擎蜘蛛的函數代碼
  • PHP判斷搜索引擎蜘蛛并自動記憶到文件的代碼
  • PHP屏蔽蜘蛛訪問代碼及常用搜索引擎的HTTP_USER_AGENT
  • PHP記錄搜索引擎蜘蛛訪問網站足跡的方法
  • php/asp/asp.net中判斷百度移動和PC蜘蛛的實現代碼
  • 根據user-agent判斷蜘蛛代碼黑帽跳轉代碼(js版與php版本)

標簽:撫州 海南 佛山 唐山 鶴崗 汕頭 揭陽 攀枝花

巨人網絡通訊聲明:本文標題《asp實現禁止搜索引擎蜘蛛訪問的代碼》,本文關鍵詞  asp,實現,禁止,搜索引擎,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《asp實現禁止搜索引擎蜘蛛訪問的代碼》相關的同類信息!
  • 本頁收集關于asp實現禁止搜索引擎蜘蛛訪問的代碼的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 万宁市| 衡水市| 宁晋县| 拜泉县| 平顶山市| 容城县| 阳朔县| 元阳县| 清远市| 高碑店市| 余庆县| 博白县| 海南省| 延寿县| 苍山县| 全南县| 汉阴县| 娱乐| 波密县| 噶尔县| 临沭县| 黄浦区| 潜江市| 湟中县| 新巴尔虎右旗| 交城县| 台北市| 徐汇区| 石渠县| 襄汾县| 海丰县| 赣榆县| 旌德县| 科技| 互助| 兴山县| 木兰县| 滨州市| 昭平县| 德惠市| 嘉义市|