asp图片防盗链的代码
发布时间:2015-10-27 来源:查字典编辑
摘要:asp图片防盗链的代码getimage.aspstrBuffer=Request.ServerVariables(HTTP_REFERER)...
asp图片防盗链的代码
getimage.asp
strBuffer = Request.ServerVariables(HTTP_REFERER)
strBuffer = mid(strBuffer, InStr(strBuffer,.) + 1)
strBuffer = left(strBuffer, InStr(strBuffer, /) - 1)
FilePath = /HIDDENIMAGES/
If strBuffer = then
FilePath = FilePath + Request.QueryString(FName)
Else
FilePath = /images/chunfeng.jpg
End If
Response.Redirect(FilePath)