Last active
April 23, 2025 21:08
-
-
Save gabrielbarros/cd518774a69b4be7a1b399dd7afae08a to your computer and use it in GitHub Desktop.
NextDNS export denylist
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
#!/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 | |
url=https://api.nextdns.io/profiles/$PROFILE_ID/denylist | |
curl -s -H "X-Api-Key: $API_KEY" $url | 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