This example script can create blackhole announce, list blocked hosts and remove it using UUID lookup.

To use this example, please enable API using this guide and install dependencies for it:

sudo apt-get install -y python3-requests

And download from GitHub:


Enable execution flag:

chmod +x

And run it this way:


Valid output looks like:

Blackhole IP:
Correctly blackholed IP
Wait 5 second to propagate changes
Correctly found UUID for this IP 2518758c-a751-4984-9aeb-c5a935422e91
Correctly removed blackhole announce

24/7 Tech Support

Email Us