萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> asp.net編程 >> asp圖片防盜鏈的代碼

asp圖片防盜鏈的代碼

   asp圖片防盜鏈的代碼

  getimage.asp

  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)

        :更多精彩教程請關注三聯網頁設計教程 欄目,

copyright © 萬盛學電腦網 all rights reserved