No site submission form

xiaoxiao2021-03-06  85

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

%>

For example, the above code is called Check_path.asp, and each time you encounter a form commit:

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

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