Linux 萬人盟主爭奪賽 Archive Cache - 水能載舟 亦能覆舟

wget and curl 暴抓圖法

範例: http://ostanall.e-city.tv/wp01/
像這種有保護的網站,還會查 referer,否則不給看圖,而且還鎖右鍵,不能看原始碼
用 curl 暴力抓圖法:
curl -e http://ostanall.e-city.tv/wp01/ http://ostanall.e-city.tv/wp01/xw_[001-050].jpg -o “#1″.jpg

用 wget 暴力抓圖法:
wget -A .jpg –referer=http://ostanall.e-city.tv/wp01/ http://ostanall.e-city.tv/wp01/

所以,還是沒必要做那些有的沒的保護,道高一尺,魔高一丈,早晚還是會被抓到的
防君子不防小人

2 Responses to “wget and curl 暴抓圖法”

  1. Justin Says:

    啊哈,又偷學了一招!

    之前就是不會加 referer 的參數,少抓了很多好東西

    :D

  2. bc Says:

    主機端設定要查 referrer 的理由不是怕一般人去抓圖(你已經看到圖了,不是嗎?),而是阻擋圖片被人在別的網站上直接連結被吃頻寬。

FireStats icon Powered by FireStats