https://github.com/eltorio/azure-ip-kiik-cf
Azure SWA for getting IP
https://github.com/eltorio/azure-ip-kiik-cf
azure-static-web-apps ipapi-co typescript
Last synced: 4 months ago
JSON representation
Azure SWA for getting IP
- Host: GitHub
- URL: https://github.com/eltorio/azure-ip-kiik-cf
- Owner: eltorio
- License: agpl-3.0
- Created: 2023-06-07T16:24:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-08T17:22:46.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T06:43:53.085Z (5 months ago)
- Topics: azure-static-web-apps, ipapi-co, typescript
- Language: TypeScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# What's your IP
Very simple tool for getting your IP.## Client side (javascript required)
The code is fully client side hit https://yourhost/ , your browser will query https://ipapi.co and you'll see the result in a user friendly way.## Server side (no script required)
If you deploy this as an Azure Static Web App you'll get 2 more methods:
- https://yourhost/api/ip which return a simple IPv4 adress as text/plain
- https://yourhost/api/json which query https://ipapi.co on the server side and redirect its response as a JSon object.# Thanks
- https://ipapi.co who gives me a free api key.
- [Azure](https://azure.com), [Codepen](https://codepen.io/eltorio/pen/XWyJJLM) and [Github](https://github.com) for the free hosting