# Crowdsec IP whitelist for Bunny CDN

**URL:** <https://discourse.crowdsec.net/t/crowdsec-ip-whitelist-for-bunny-cdn/2072>\
**Category:** crowdsec\
**Created:** [October 13, 2024, 1:02am UTC](https://discourse.crowdsec.net/t/crowdsec-ip-whitelist-for-bunny-cdn/2072 "2024-10-13T01:02:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 14, 2024, 7:39am UTC](https://discourse.crowdsec.net/t/crowdsec-ip-whitelist-for-bunny-cdn/2072/2 "2024-10-14T07:39:41Z")

</div>

This will prevent local decisions which is great! here is a version that will prevent the IP’s if they end up in the community blocklists

> [@Some BunnyCDN IP address are blocked](https://discourse.crowdsec.net/t/some-bunnycdn-ip-address-are-blocked/1644/3):
>
> 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 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 OUTPUT="/etc/crowdsec/capi-whitelists.yaml" ## If y…

---

_[View the full topic](https://discourse.crowdsec.net/t/crowdsec-ip-whitelist-for-bunny-cdn/2072)._
