【Curlコマンド】Webサイトが使用しているサーバープログラムを確認する

PR

概要

CurlコマンドをIオプション(ヘッダ情報のみ出力)を指定して実行することにより、Webサイトが使用しているサーバープログラムを確認する

PR

確認方法

コマンドプロンプトで「curl -I https://www.google.com/」等と入力

PR

結果

●it-skill-memo.workの場合
Webサーバー「nginx」を使用していることが分かる

C:\Users\user>curl -I https://it-skill-memo.work
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 Feb 2020 15:21:10 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
Link: <https://it-skill-memo.work/wp-json/>; rel="https://api.w.org/"

●Yahoo! JAPANの場合
プロキシサーバー「Apache Traffic Server(ATS)」を使用していることが分かる

C:\Users\user>curl -I https://www.yahoo.co.jp/
HTTP/1.1 200 OK
date: Mon, 24 Feb 2020 15:22:10 GMT
p3p: policyref="http://privacy.yahoo.co.jp/w3c/p3p_jp.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
expires: -1
pragma: no-cache
cache-control: private, no-cache, no-store, must-revalidate
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
Age: 2
Connection: keep-alive
Via: http/1.1 edge2443.img.djm.yahoo.co.jp (ApacheTrafficServer [c sSf ])
Server: ATS

●Googleの場合
「グーグル・ウェブサーバ(gws)」を使用していることが分かる

C:\Users\user>curl -I https://www.google.com/
HTTP/1.1 200 OK
Date: Mon, 24 Feb 2020 15:23:24 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Set-Cookie: 1P_JAR=2020-02-24-15; expires=Wed, 25-Mar-2020 15:23:24 GMT; path=/; domain=.google.com; Secure
Set-Cookie: NID=198=DVpTBtrXMc77snQmGGod-y9Q_rdvI63nR4BjRwGD_uKXNz_iDmW5yi8M7DjVXfwKqTEWU7YM0QaoQq2LjYkX2zE15hvFsopznUh7k_f8m8G1F5XZs05pP-nnnAPBAYXwAZdn5wDO8xERRTyasMTZ5rJStbFZ6GOhKvtnxdiOc5Y; expires=Tue, 25-Aug-2020 15:23:24 GMT; path=/; domain=.google.com; HttpOnly
Transfer-Encoding: chunked
Alt-Svc: quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000
Accept-Ranges: none
Vary: Accept-Encoding
タイトルとURLをコピーしました