Recommended: ASP 3.0 Advanced Programming (35) 7.5.1 General debugging techniques In Chapter 2, we have seen how to use the Response.Write method and the Request collection to display the contents of the collection. If the code wants to use the value from the request, the first thing to do is to ensure that the required value exists. The problem that is easy to occur is wrong or
To determine whether access comes from search engine functions, if you are interested, you can try it!
| The following is the quoted content: <% 'Check if the current user is a spiderman Function check(user_agent) allow_agent=split(Baiduspider, Scooter,ia_archiver, Googlebot,FAST-WebCrawler, MSNBOT, Slurp,,) check_agent=false For agent=lbound(allow_agent) to ubund(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) 'check(user_agent)=true determines that the access is spider-man %> |
Note: This function comes from the Internet and whether it is available is to be verified!
Share: Use ASP to build a private search engine Many Internet enthusiasts rack their brains to make the functions of their website more comprehensive when creating their own personal homepage. Here, the author introduces a method to use ASP to build your own search engine. Basic idea is to use forms to store search keywords submitted by users in variables.