mirror of ttps://github.com/vernette/ipregion/ link from https://t.me/itdoginfo/158
Find a file
2025-11-01 12:15:48 +03:00
ipregion.sh feat(ipregion): add script name, decrease curl timeout 2025-11-01 12:15:48 +03:00
LICENSE chore: add license 2024-10-13 20:31:01 +03:00
README.md docs(README): replace asciinema svg with gif 2025-10-27 12:55:50 +03:00

ipregion

image

Usage

Download and run locally:

wget -O ipregion.sh https://ipregion.vrnt.xyz
chmod +x ipregion.sh

Or run directly from GitHub:

bash <(wget -qO- https://ipregion.vrnt.xyz)

Features

  • Multiple GeoIP APIs and web services (YouTube, Netflix, ChatGPT, Spotify, etc.)
  • IPv4/IPv6 support with SOCKS5 proxy and custom network interface
  • JSON output and color-coded tables

Dependencies

  • bash
  • curl
  • jq
  • util-linux/bsdmainutils

Key Options

./ipregion.sh --help # Show all options
./ipregion.sh --group primary # GeoIP services only
./ipregion.sh --group custom # Popular websites only
./ipregion.sh --ipv4 # IPv4 only
./ipregion.sh --ipv6 # IPv6 only
./ipregion.sh --proxy 127.0.0.1:1080 # Use SOCKS5 proxy
./ipregion.sh --json # JSON output
./ipregion.sh --debug # Debug mode

All options can be combined.

Country codes

The script outputs country codes in ISO 3166-1 alpha-2 format (e.g., RU, US, DE).

You can look up the meaning of any country code at the official ISO website: https://www.iso.org/obp/ui/#search/code/

Just enter the code in the search box to get the full country name.

Contributing

Contributions are welcome! Feel free to submit pull requests to add new services or improve the scripts functionality.

Star History Chart