# Some BunnyCDN IP address are blocked

**URL:** <https://discourse.crowdsec.net/t/some-bunnycdn-ip-address-are-blocked/1644>\
**Category:** crowdsec\
**Created:** [February 7, 2024, 1:09pm UTC](https://discourse.crowdsec.net/t/some-bunnycdn-ip-address-are-blocked/1644 "2024-02-07T13:09:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![iiAmLoz](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/iiamloz/32/386_2.png) [@iiAmLoz](https://discourse.crowdsec.net/u/iiAmLoz)\
**Post date:** [February 8, 2024, 12:23pm UTC](https://discourse.crowdsec.net/t/some-bunnycdn-ip-address-are-blocked/1644/3 "2024-02-08T12:23:05Z")

</div>

guess it also good to know about these, we can work on adding them ourside

[https://bunnycdn.com/api/system/edgeserverlist](https://bunnycdn.com/api/system/edgeserverlist)  
[https://bunnycdn.com/api/system/edgeserverlist/IPv6](https://bunnycdn.com/api/system/edgeserverlist/IPv6)

so a little helper script

```bash
OUTPUT="/etc/crowdsec/capi-whitelists.yaml"
echo "ips:" > $OUTPUT
curl -H "Accept: application/json" https://bunnycdn.com/api/system/edgeserverlist | jq -r '.[]' | while read -r ip; do echo " - $ip" >> $OUTPUT; done

```

if you want ipv4 and ipv6

```bash
OUTPUT="/etc/crowdsec/capi-whitelists.yaml"
## If you want to cronjob it we always overwrite file at start
echo "ips:" > $OUTPUT 
## Start of the loops
for URL in https://bunnycdn.com/api/system/edgeserverlist https://bunnycdn.com/api/system/edgeserverlist/IPv6; do curl -H "Accept: application/json" $URL | jq -r '.[]' | while read -r ip; do echo " - $ip" >> $OUTPUT; done; done

```

---

_[View the full topic](https://discourse.crowdsec.net/t/some-bunnycdn-ip-address-are-blocked/1644)._
