Created
June 28, 2025 10:05
-
-
Save AlgorithmAlchemy/db791bb7889b95a18793527157e3e75e to your computer and use it in GitHub Desktop.
geo-check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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