# AWS CloudFront, 추가적인 Geolocation 헤더 지원

> Clean Markdown view of GeekNews topic #2589. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=2589](https://news.hada.io/topic?id=2589)
- GeekNews Markdown: [https://news.hada.io/topic/2589.md](https://news.hada.io/topic/2589.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2020-08-05T09:50:01+09:00
- Updated: 2020-08-05T09:50:01+09:00
- Original source: [aws.amazon.com](https://aws.amazon.com/ko/about-aws/whats-new/2020/07/cloudfront-geolocation-headers/)
- Points: 5
- Comments: 1

## Topic Body

기존에는 국가코드 정도였는데, 훨씬 상세한 헤더를 제공하여 캐쉬 / Origin Request 정책에 세밀한 조정이 가능

Lambda@Edge에서도 이용 가능하며, 비용은 없음

- Country-Name

- Country-Region

- Country-Region-Name

- City

- Postal-Code

- Time-Zone

- Latitude

- Longitude

- Metro-Code

## Comments



### Comment 2496

- Author: xguru
- Created: 2020-08-05T09:50:22+09:00
- Points: 1

테스트 하려면 해외 개발자분이 만든 테스트 서버인 https://headers.owen.dev/ 에 접속해보시면 지금 CF가 보고 있는 정보들을 리턴해 줍니다. 한국은 Metro는 안나오는 것 같고, 위/경도 나 우편번호는 나오는데 아마도 통신사 서버쪽인듯 하네요.

Blip - 간단한 Geolocation 서버 https://news.hada.io/topic?id=2533

GAE 나 CloudFlare 를 이용한 방법도 있었는데, 이제 CloudFront 에서도 상세정보를 제공해주네요.

AWS CF 사용하는 조직에서는 편하게 사용가능 할 듯
