Take the dynamic download system as an example:
The following is the code fragment: Open the file softdown.asp in: if request.querystring ("ID") = "" response.write "cannot be connected or there is no designated download software" response.end end if The above or below adds the following code Dim Strreferr, Domain, SplDomain, ISHTTP iShttp = false 'List of download system URL on this site, don't bring http: // domain = "Sron.net, 61.156.14.223,61.156.14.227" splowomain = split (domain, ",", ") Strreferr = request.servervariables ("http_referr") For III = 0 to uborder (splDomain) If Instr (Strreferr, TRIM (SPLDOMAIN (III)) > 0 Then Ishttp = True next if isnull (strrefer) or ishttp = false then Response.write "download link comes from other websites, which is not allowed. <A href =" "./" "" "Please enter the page of this website and then download. <//a>" "" "" "" " Closedatabase response.end end if |
The list of download system URLs on this site is to access the domain name in the download channel URL. For example, your download channel can be accessed with multiple URLs, so here is separated by a comma.