如何阻止別人非法鏈接你網站的圖片?
- <%OptionExplicit
- DimstrBuffer,FilePath
- strBuffer=Request.ServerVariables(HTTP_REFERER)
- strBuffer=mid(strBuffer,InStr(strBuffer,.)+1)
- strBuffer=left(strBuffer,InStr(strBuffer,/)-1)
- FilePath=/HIDDENIMAGES/
- IfstrBuffer=intels.netthen
- FilePath=FilePath+Request.QueryString(FName)
- Else
- FilePath=/images/chunfeng.jpg
- EndIf
- Response.Redirect(FilePath)