1. telnet을 이용한 웹서버 정보 확인 (뭐 굳이 이방법을 사용할건 없고.. 그냥 간편하게 확인하기 위해서.. )
# telnet naver.com 80
Trying 125.209.222.141...
Connected to naver.com.
Escape character is '^]'.
HEAD / HTTP/1.1 (엔터입력)
(엔터입력)
HTTP/1.1 404 Not Found
Server: nginx
Date: Sun, 16 Mar 2014 02:07:00 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Connection closed by foreign host.
Trying 125.209.222.141...
Connected to naver.com.
Escape character is '^]'.
HEAD / HTTP/1.1 (엔터입력)
(엔터입력)
HTTP/1.1 404 Not Found
Server: nginx
Date: Sun, 16 Mar 2014 02:07:00 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Connection closed by foreign host.
위 붉게 표시된 Server: nginx 라는 부분이 웹서버의 종류가 나타는것...
2. 아파치의 ServerTokens 옵션으로 해당 항목의 정보공개 수준을 정의 가능
ServerTokens Full (or not specified)
Server sends (e.g.): Server: Apache/2.4.2 (Unix) PHP/4.2.2 MyMod/1.2
ServerTokens Prod[uctOnly] => Prod 또는 ProductOnly 라고 기입가능
Server sends (e.g.): Server: Apache
ServerTokens Major
Server sends (e.g.): Server: Apache/2
ServerTokens Minor
Server sends (e.g.): Server: Apache/2.4
ServerTokens Min[imal] => Min 또는 Minimal 이라고 기입가능
Server sends (e.g.): Server: Apache/2.4.2
ServerTokens OS
Server sends (e.g.): Server: Apache/2.4.2 (Unix)
Server sends (e.g.): Server: Apache/2.4.2 (Unix) PHP/4.2.2 MyMod/1.2
ServerTokens Prod[uctOnly] => Prod 또는 ProductOnly 라고 기입가능
Server sends (e.g.): Server: Apache
ServerTokens Major
Server sends (e.g.): Server: Apache/2
ServerTokens Minor
Server sends (e.g.): Server: Apache/2.4
ServerTokens Min[imal] => Min 또는 Minimal 이라고 기입가능
Server sends (e.g.): Server: Apache/2.4.2
ServerTokens OS
Server sends (e.g.): Server: Apache/2.4.2 (Unix)
기본값은 전체 정보를 보여주는 "Full" 이며..
예제와 같이 Prod 설정이면 가장 적은 정보를 보여주게 됩니다.
웹서버의 정보는 접속자가 굳이 알필요는 없기 때문에 보안적인 측면에서 Prod 정도 설정이면 무난하겠습니다.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
19 | 웹사이트 보안 개발 가이드 20160421 | 관리자 | 2017.07.25 | 49 |
18 | WordPress 4.8.1 Maintenance Release | 관리자 | 2017.08.03 | 51 |
17 | The Month in WordPress: August 2017 | 관리자 | 2017.09.02 | 62 |
16 | AWS 자격증 시험 신청 하기 | 관리자 | 2017.09.19 | 131 |
15 | WordPress 4.8.2 Security and Maintenance Release | 관리자 | 2017.09.20 | 333 |
14 | WordPress 4.9 Beta 3 | 관리자 | 2017.10.20 | 291 |
13 | WordPress 4.9 Beta 4 | 관리자 | 2017.10.26 | 541 |
12 | WordPress 4.8.3 Security Release | 관리자 | 2017.11.01 | 273 |
11 | WordPress 4.9 Release Candidate 2 | 관리자 | 2017.11.09 | 257 |
10 | error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE in PHP (after update centos-7.4) | 관리자 | 2017.11.15 | 1842 |
9 | WordPress 4.9 “Tipton” | 관리자 | 2017.11.16 | 714 |
8 | WordPress 4.9.1 Security and Maintenance Release | 관리자 | 2017.11.30 | 809 |
7 | The Month in WordPress: November 2017 | 관리자 | 2017.12.02 | 278 |
6 | How To Downgrade DigitalOcean Droplets | 관리자 | 2017.12.08 | 342 |
5 | cannot load media library on wordpress (feat. modsecurity & sql injection ruleset) | 관리자 | 2018.02.26 | 838 |