如何阻止别人非法链接你网站的图片?

getimage.asp

% Option ExplicitDim strBuffer, FilePathstrBuffer =
Request.ServerVariables(“HTTP_REFERER”)strBuffer = mid(strBuffer,
InStr(strBuffer,”.”) + 1)strBuffer = left(strBuffer, InStr(strBuffer,
“/”) – 1)FilePath = “/HIDDENIMAGES/”If strBuffer = “intels.net” then

FilePath = FilePath + Request.QueryString(“FName”)

Else

FilePath = “/images/chunfeng.jpg”

End IfResponse.Redirect(FilePath)

发表评论

电子邮件地址不会被公开。 必填项已用*标注