Skip to content

Instantly share code, notes, and snippets.

@comprofix
Created November 23, 2025 02:42
Show Gist options
  • Select an option

  • Save comprofix/a4409ad566f56922a2a2ba3c55317456 to your computer and use it in GitHub Desktop.

Select an option

Save comprofix/a4409ad566f56922a2a2ba3c55317456 to your computer and use it in GitHub Desktop.
Get Google IPs
curl -s -H "Accept: application/json" https://www.gstatic.com/ipranges/cloud.json | jq -r '.prefixes[].ipv4Prefix, .prefixes[].ipv6Prefix | select (. != null)' >> googleips
curl -s -H "Accept: application/json" https://www.gstatic.com/ipranges/goog.json | jq -r '.prefixes[].ipv4Prefix, .prefixes[].ipv6Prefix | select (. != null)' > googleips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment