ip address location 확인하는 방법

2023. 6. 9. 18:08기타/scripts

728x90
SMALL
  • 방법
curl -s ipinfo.io/<ip> | jq '.ip,.city,.country,.org'

 

  • 예시
curl -s ipinfo.io/1.1.1.1 | jq '.ip,.city,.country,.org'
"1.1.1.1"
"Los Angeles"
"US"
"AS13335 Cloudflare, Inc."
728x90
LIST

'기타 > scripts' 카테고리의 다른 글

ECR lifecycle policy 전체 repository 적용  (0) 2023.06.28
tg_attr_deg_delay.sh  (0) 2022.12.07
elb_attr_delete_protection.sh  (0) 2022.12.07
retention 없는 CloudWatch logs의 log groups  (0) 2022.12.07
codepipeline stage status  (0) 2022.11.21