咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

如何阻止别人盗链自己网站的图片

2017-02-09 17:43:48 7149次

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)

 

 


首页
最新活动
个人中心