Recommended: asp (author:killer) code that prohibits submission of forms outside the site
Use asp to minimize the workload on the server side. In this way, you should use more JavaScript and submit all submission fields to the server after using javascript or vbscript. In this way, the server does not have to detect it anymore. When submitting, someone may modify the script to submit it locally. This has the problem of safe submission, so you should require the server to be disconnected from the path.
Code for asp picture anti-theft chain
getimage.asp
strBuffer = Request.ServerVariables(HTTP_REFERER)
strBuffer = mid(strBuffer, InStr(strBuffer,.) + 1)
strBuffer = left(strBuffer, InStr(strBuffer, /) - 1)
FilePath = /HIDDENIMAGES/
If strBuffer = intelligence.net then
FilePath = FilePath + Request.QueryString(FName)
Else
FilePath = /images/chunfeng.jpg
End If
Response.Redirect(FilePath)
Note : For more exciting tutorials, please pay attention to the Wulin.com web design tutorial column.
Share: Explore the recursive APS and CPS of c#
Accumulator passing style tail recursive optimization is to make the stack not have to save the last return address/state value, so as to treat the recursive function as an ordinary function call. Recursion is actually relying on the last value to find the next value. If we can save the last value and pass it in the next call, without directly referring to the function returned