Skip to content

Get IP address - Geographic information based on cloudflare worker and external IP info provider

License

Notifications You must be signed in to change notification settings

attr0/ipaddress-cfworker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get your public IP address information.

Access

Entry

  • / Default response. Only IP address will be returned
  • /json Default json encoded IP information. (ipgeolocation is selected by now)
  • /json/ipgeo Json encoded IP information provided by ipgeolocation.io
  • /json/ipdata Json encoded IP information provided by ipdata.co
  • /json/ipinfo Json encoded IP information provided by ipinfo.io
  • /json/cf Json encoded IP information provided by Cloudfare
  • /cf Json encoded cloudflare IP related information

Web

Use your browser to visit: https://ip.hlz.ink

Console

Use curl to get your ip infomration on a headless machine

curl ip.hlz.ink

Want detail?

curl ip.hlz.ink/json

In addition, you can ask for the information of a given ip by

curl ip.hlz.ink/query/{ip_address}

How to deploy your own one

To-Do

Thanks

cloudflare-worker

ipinfo

About

Get IP address - Geographic information based on cloudflare worker and external IP info provider

Topics

Resources

License

Stars

Watchers

Forks