智邦虛擬主機 因為某種原因把 wget、curl 擋了,
個人猜測是為了防止有人用 Script 對主機大量存取(造成DDoS), 或耗用大量頻寬.
只要是用 wget、curl, 在沒有指定 User Agent 的參數下,
都會出現 500 Internal Server Error
隨便指定個 User Agent 就正常, 這擋法也太君子了.
# wget http://hosting.url.com.tw/images/logo_hosting.png
--21:42:20-- http://hosting.url.com.tw/images/logo_hosting.png
=> `logo_hosting.png'
Resolving hosting.url.com.tw... 210.59.228.17
Connecting to hosting.url.com.tw|210.59.228.17|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
21:42:20 ERROR 500: Internal Server Error.
# wget -U123 http://hosting.url.com.tw/images/logo_hosting.png
--21:42:30-- http://hosting.url.com.tw/images/logo_hosting.png
=> `logo_hosting.png'
Resolving hosting.url.com.tw... 210.59.228.17
Connecting to hosting.url.com.tw|210.59.228.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5,624 (5.5K) [image/png]
Recent Comments