Skip to content

Instantly share code, notes, and snippets.

@AlgorithmAlchemy
Created June 28, 2025 10:05
Show Gist options
  • Save AlgorithmAlchemy/db791bb7889b95a18793527157e3e75e to your computer and use it in GitHub Desktop.
Save AlgorithmAlchemy/db791bb7889b95a18793527157e3e75e to your computer and use it in GitHub Desktop.
geo-check
cat > geo-check.sh << 'EOF'
#!/bin/bash
IP=$(curl -s ifconfig.me)
echo "🔍 Проверка IP: $IP"
echo "====== WHOIS ======"
whois $IP | grep -iE 'country|origin|mnt|descr|netname'
echo ""
echo "====== ipinfo.io ======"
curl -s ipinfo.io
echo ""
echo "====== ipapi.co ======"
curl -s ipapi.co/json
echo ""
echo "====== freegeoip.app ======"
curl -s https://freegeoip.app/json/
echo ""
echo "====== MaxMind alternative ======"
curl -s https://geoip.seeip.org/jsonip
echo ""
echo "====== Traceroute ======"
traceroute -m 10 8.8.8.8
echo ""
echo "====== Cloudflare region test ======"
curl -I https://www.cloudflare.com
echo ""
echo "====== YouTube geo headers ======"
curl -I https://www.youtube.com | grep -i location
echo ""
EOF
chmod +x geo-check.sh
./geo-check.sh | tee geo_report.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment