Skip to content

Instantly share code, notes, and snippets.

@gabrielbarros
Created December 27, 2024 01:59
Show Gist options
  • Save gabrielbarros/cd518774a69b4be7a1b399dd7afae08a to your computer and use it in GitHub Desktop.
Save gabrielbarros/cd518774a69b4be7a1b399dd7afae08a to your computer and use it in GitHub Desktop.
NextDNS export denylist
#!/usr/bin/env bash
API_KEY=xxx # Get it from https://my.nextdns.io/account
PROFILE_ID=xxxxxx # Get it from https://my.nextdns.io
curl -s -H "X-Api-Key: $API_KEY" https://api.nextdns.io/profiles/$PROFILE_ID/denylist | jq -r '.data[] | select(.active == true) | .id'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment