Personal experience: Use ASP to minimize server-side workload (reposted)

xiaoxiao2021-03-06  45

Use the ASP to minus the workload of the server, so you should use JavaScript to submit all submission fields after using JavaScript or VBScript detection, so that the server will not be detected, and someone may modify Script from local by submitting In this way, there is a security submission, so it should be required to submit from the server breaking path, and other addresses submit are not invalid:

<%

Server_v1 = cstr (Request.ServerVariables ("http_referer")))

Server_v2 = cstr (Request.ServerVariables ("Server_Name"))

IF MID (Server_V1, 8, Len (Server_V2)) <> Server_V2 THEN

Response.write "

"

Response.write "

"

Response.write "The path you submit is incorrect, prohibiting submission of data from the site, please don't mess with this parameter!"

Response.write " "

Response.end

END IF

%>

Author: sunny Taken:

http://www.7i24.com

转载请注明原文地址:https://www.9cbs.com/read-80351.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.044, SQL: 9