智邦虛擬主機擋 wget、curl

| | Comments (0)

智邦虛擬主機 因為某種原因把 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]

Leave a comment

凱莉手工坊

凱莉手工坊

January 2010

Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

About this Entry

This page contains a single entry by Pank published on December 30, 2009 9:36 PM.

Avatar 3D was the previous entry in this blog.

Unofficial Google URL Shortener is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.