如何阻止别人非法链接你网站的图片?
- 技术交流
- 2024-10-01 10:34:01
getimage.asp
<% Option Explicit
Dim strBuffer, FilePath
strBuffer = 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 If
Response.Redirect(FilePath)
如何阻止别人非法链接你网站的图片?由讯客互联技术交流栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“如何阻止别人非法链接你网站的图片?”