找回密码
 注册
搜索
免费空间 免费域名 免费AI 老牌主机商首月仅1美分!27美元/年!Spaceship优惠码 Namecheap优惠码阿里云2核2G3M新老续费同享99元/年!
楼主: 哈哈大侠

[其它资源] 免费的破解图片防盗链服务

 火.. [复制链接]
发表于 2010-12-4 12:26:40 | 显示全部楼层
用下面代码,保存为xxx.asp,上传到一个支持ASP的空间

引用地址:http://你的空间.com/img.asp?url=http://你的图片URL

这样就可以让
该图片仅限百度用户交流使用。
此图片来自QQ空间,未经允许,不得引用。
此图片仅限于新浪博客用户交流与沟通。
此图片仅限于网易用户交流沟通使用!
搜狐博客-相册 相逢的人会再相逢,此图片仅限于搜狐站内可见。
等等的杂碎不再让我们烦恼了~
而且可以无限使用那些网站的外链图片!

代码如下:
  1. <%
  2. Dim url, body, myCache

  3. url = Request.QueryString(”url”)

  4. Set myCache = new cache
  5. myCache.name = “picindex”&url
  6. If myCache.valid Then
  7. body = myCache.value
  8. Else
  9. body = GetWebData(url)
  10. myCache.add body,dateadd(”d”,1,now)
  11. End If

  12. If Err.Number = 0 Then
  13. Response.CharSet = “UTF-8″
  14. Response.ContentType = “application/octet-stream”
  15. Response.BinaryWrite body
  16. Response.Flush
  17. Else
  18. Wscript.Echo Err.Description
  19. End if

  20. ‘取得数据
  21. Public Function GetWebData(ByVal strUrl)
  22. Dim curlpath
  23. curlpath = Mid(strUrl,1,Instr(8,strUrl,”/”))
  24. Dim Retrieval
  25. Set Retrieval = Server.CreateObject(”Microsoft.XMLHTTP”)
  26. With Retrieval
  27. .Open “Get”, strUrl, False,”",”"
  28. .setRequestHeader “Referer”, curlpath
  29. .Send
  30. GetWebData =.ResponseBody
  31. End With
  32. Set Retrieval = Nothing
  33. End Function

  34. ‘cache类

  35. class Cache
  36. private obj ‘cache内容
  37. private expireTime ‘过期时间
  38. private expireTimeName ‘过期时间application名
  39. private cacheName ‘cache内容application名
  40. private path ‘url

  41. private sub class_initialize()
  42. path=request.servervariables(”url”)
  43. path=left(path,instrRev(path,”/”))
  44. end sub

  45. private sub class_terminate()
  46. end sub

  47. public property get blEmpty
  48. ‘是否为空
  49. if isempty(obj) then
  50. blEmpty=true
  51. else
  52. blEmpty=false
  53. end if
  54. end property

  55. public property get valid
  56. ‘是否可用(过期)
  57. if isempty(obj) or not isDate(expireTime) then
  58. valid=false
  59. elseif CDate(expireTime)<now then
  60. valid=false
  61. else
  62. valid=true
  63. end if
  64. end property
  65. public property let name(str)
  66. ‘设置cache名
  67. cacheName=str & path
  68. obj=application(cacheName)
  69. expireTimeName=str & “expires” & path
  70. expireTime=application(expireTimeName)
  71. end property

  72. public property let expires(tm)
  73. ‘重设置过期时间
  74. expireTime=tm
  75. application.lock
  76. application(expireTimeName)=expireTime
  77. application.unlock
  78. end property

  79. public sub add(var,expire)
  80. ‘赋值
  81. if isempty(var) or not isDate(expire) then
  82. exit sub
  83. end if
  84. obj=var
  85. expireTime=expire
  86. application.lock
  87. application(cacheName)=obj
  88. application(expireTimeName)=expireTime
  89. application.unlock
  90. end sub

  91. public property get value
  92. ‘取值
  93. if isempty(obj) or not isDate(expireTime) then
  94. value=null
  95. elseif CDate(expireTime)<now then
  96. value=null
  97. else
  98. value=obj
  99. end if
  100. end property


  101. public sub makeEmpty()
  102. ‘释放application
  103. application.lock
  104. application(cacheName)=empty
  105. application(expireTimeName)=empty
  106. application.unlock
  107. obj=empty
  108. expireTime=empty
  109. end sub

  110. public function equal(var2)
  111. ‘比较
  112. if typename(obj)<>typename(var2) then
  113. equal=false
  114. elseif typename(obj)=”Object” then
  115. if obj is var2 then
  116. equal=true
  117. else
  118. equal=false
  119. end if
  120. elseif typename(obj)=”Variant()” then
  121. if join(obj,”^”)=join(var2,”^”) then
  122. equal=true
  123. else
  124. equal=false
  125. end if
  126. else
  127. if obj=var2 then
  128. equal=true
  129. else
  130. equal=false
  131. end if
  132. end if
  133. end function
  134. end class
  135. %>
复制代码
发表于 2010-12-4 12:30:42 | 显示全部楼层
  1. <?php
  2. readfile($_GET['mm']);
  3. ?>
复制代码
PHP的 使用方法
http://你的空间.com/img.php?mm=http://你的图片URL
头像被屏蔽
发表于 2010-12-4 13:08:34 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽
发表于 2010-12-4 13:19:58 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2010-12-4 14:46:32 | 显示全部楼层
感谢分享
发表于 2010-12-4 14:47:32 | 显示全部楼层
支持一下
发表于 2010-12-4 15:02:49 | 显示全部楼层
PHP的 使用方法
你的图片URL
loveminds 发表于 2010-12-4 12:30

感谢分享. 很好用.
发表于 2010-12-4 20:30:46 | 显示全部楼层
发表于 2010-12-4 22:49:45 | 显示全部楼层
这个确实不错~~
发表于 2010-12-4 23:02:58 | 显示全部楼层
打开速度有点慢 是该是PHP代理吧  去找找源码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|免费吧论坛

GMT+8, 2024-5-23 20:51 , Processed in 0.022187 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表