如何阻止别人非法链接你网站的图片?
2014-08-09来源:易贤网

<% 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)

更多信息请查看IT技术专栏

2025公考·省考培训课程试听预约报名

  • 报班类型
  • 姓名
  • 手机号
  • 验证码
推荐信息