CopyCodeThe Code is as follows: <%
'Shield mainstream download tools
Dimxurl, xtool
'Get the browser agent
Xurl = lcase (request. servervariables ("http_user_agent "))
'Define the prohibited agent. The following five versions include the latest Express, tornado, and thunder versions. You can add them on your own!
Xtool = "Mozilla/4.0 (compatible; msie5.00; Windows98 )"&_
"Mozilla/4.0 (compatible; msie6.0; Windows + nt5.0 )"&_
"Mozilla/4.0 (compatible; msie6.0; windowsnt5.1 ;)"&_
"Mozilla/4.0 (compatible; msie6.0; windowsnt5.0;. netclr1.1.4322 )"&_
"Mozilla/4.0 (compatible; msie6.0; windowsnt5.0;. netclr3.5.20706 )"&_
"Mozilla/4.0 (compatible; msie6.0; windowsnt5.1; sv1;. netclr1.1.4322;. netclr2.0.50727 )"
'Judge whether the agent is valid
Ifinstr (xtool, xurl)> 0 then
'Download tool directly reports 404 error
Response. Status = "404 notfound"
Response. End
Endif
'The other code is below
Response. Write "normally browsed content. You can use the download tool to test and download this page to see if it can be downloaded? "
%>