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