Created
December 27, 2024 01:59
-
-
Save gabrielbarros/cd518774a69b4be7a1b399dd7afae08a to your computer and use it in GitHub Desktop.
NextDNS export denylist
This file contains 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 | |
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