doucan9079 2012-11-02 16:28
浏览 95

下载隐藏图片的脚本 - 网址[关闭]

I've looked all over the place for this one...

(download link hidden)

(Hide filenames for product images)

(Hiding image URL)

Now, I'd like to download an image but it has no url whatoever... The php page contains some text and 1 image, if you rightclick and copy the imageurl you get someting like:

www.example.com/index.php?module=Profile&file=showuserinfo&function=showuserinfo&userid=2090

Ok. That doesn't seem like a downloadable image... Indeed with wget, it just gives me a index.php file. So I tried WinHTTrack... There I get a nice copy of all the text. But what's missing in both the page and contentfolder? The freaking image... It's like a ghost image..

Now this will be a stupid thing, and call me dumb, but I've never seen anything like this... Is there a way to download this image?

  • 写回答

1条回答 默认 最新

  • doupa1883 2012-11-02 16:55
    关注

    If an image is visible in a web browser, it is downloadable. Browsers MUST download an image prior to displaying it.

    There are all sorts of ways to make it harder to save the image to a local file, but none of these will defeat someone who knows anything about HTML. Two of my favorites are to change the extension of the image to a script file (i.e. myimage.php?id=1234 instead of myimage.png) which makes it a little more difficult to identify which element in the source is the image and to wrap the image behind a div that has a transparent background, which makes the right-click -> save image command useless.

    Also, wrapping the image inside a script allows you to impose certain conditions before the image is transmitted; maybe the user must be logged in; maybe the request must come from a script that sends a token you generate on page load... there are all sorts of creative things you can do to make it harder.

    But making it impossible to download the image is impossible in HTTP.

    评论

报告相同问题?

悬赏问题

  • ¥20 易康econgnition精度验证
  • ¥15 线程问题判断多次进入
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致