ASP Download System Anti-leech

Source: Internet
Author: User

This article introduces the anti-leech Method for ASP download systems ......
Take the dynamic download system as an example:
Open the file softdown. asp in:

Quote:
--------------------------------------------------------------------------------

If request. querystring ("ID") = "" then
Response. Write "cannot connect or download software is not specified"
Response. End
End if

--------------------------------------------------------------------------------

Add the following code above or below

Quote:
--------------------------------------------------------------------------------

Dim strreferer, domain, spldomain, ishttp
Ishttp = false
'The site Download System URL list, do not include http ://;
Domain = "sron.net, 61.156.14.223, 61.156.14.227"
Spldomain = Split (domain ,",")
Strreferer = request. servervariables ("http_referer ")
For IIi = 0 to ubound (spldomain)
If instr (strreferer, trim (spldomain (III)> 0 then ishttp = true
Next
If isnull (strreferer) or ishttp = false then
Response. write "the download link is from another website. This is not allowed. <a href =" "./"> please go to the website page and download it again. </A>"
Closedatabase
Response. End
End if --------------------------------------------------------------------------------

The download system URL list on this site is the domain name in your download channel URL. For example, your download channel can be accessed using multiple URLs, so separate them with commas.

[1] [2] [Next Page] Show All

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.