<% Function check(user_agent) allow_agent=split("Baiduspider,Scooter,ia_archiver,Googlebot,FAST-WebCrawler,MSNBOT,Slurp",",") check_agent=false For agenti=lbound(allow_agent) to ubound(allow_agent) If instr(user_agent,allow_agent(agenti))>0 then check_agent=true exit for end if Next check=check_agent End function user_agent=Request.ServerVariables("HTTP_USER_AGENT") if check(user_agent)=true then %> User-agent: * Disallow: / <% else %> User-agent: * Allow: / <% end if %>