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

2023-12-07 0 261

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)

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 编程10000问 如何阻止别人非法链接你网站的图片? https://www.u-9.cn/biancheng/bc10000/126381.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务