Skip to content

🌎 Shell script to check how your IP is identified by the IP databases

License

Notifications You must be signed in to change notification settings

vernette/ipregion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

IPRegion 🌍

This is a shell script designed to check how your public IP address is identified by various IP databases. The script queries multiple sources to retrieve the country code associated with your IP, providing a comprehensive overview of how different services interpret your location.

image

Features

  • Multiple Sources: Supports queries from over 20 different IP information services, including:

    • ipinfo.io
    • ipapi.com
    • ipregistry.co
    • db-ip.com
    • and many more!
  • User-Friendly Output: Displays the results in a clean and formatted manner, showing how each service identifies your IP.

  • Lightweight: Written in Bash, the script has minimal dependencies, primarily requiring curl and jq for network requests and JSON parsing.

Dependencies

Currently script supports automatic installation for the following OSes:

  • Debian/Ubuntu
  • Arch Linux

For other systems, please install curl and jq manually.

Usage

With curl:

curl -s "https://raw.githubusercontent.com/vernette/ipregion/refs/heads/master/ipregion.sh" | bash

With wget:

wget -qO - "https://raw.githubusercontent.com/verrette/ipregion/refs/heads/master/ipregion.sh" | bash

Or clone the repository and run the script manually:

git clone https://github.com/vernette/ipregion.git
cd ipregion
chmod +x ipregion.sh
./ipregion.sh

TODO

  • Add more IP services
  • Add more supported OSes
  • Handle errors when doing network requests
  • Handle service rate limit errors
  • Add IP identification by various sites (Google, TikTok, OpenAI, etc.)

About

🌎 Shell script to check how your IP is identified by the IP databases

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages