ASP shields P2P downloads from thunder and Tornado download tools

Source: Internet
Author: User
<%
'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
'Other CodeBelow
Respo
%>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.