# how to ban an IP or IP list permanently ?

**URL:** <https://discourse.crowdsec.net/t/how-to-ban-an-ip-or-ip-list-permanently/383>\
**Category:** crowdsec\
**Created:** [December 4, 2021, 10:36am UTC](https://discourse.crowdsec.net/t/how-to-ban-an-ip-or-ip-list-permanently/383 "2021-12-04T10:36:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xseth](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/xseth/32/199_2.png) [@xseth](https://discourse.crowdsec.net/u/xseth)\
**Post date:** [December 4, 2021, 10:36am UTC](https://discourse.crowdsec.net/t/how-to-ban-an-ip-or-ip-list-permanently/383/1 "2021-12-04T10:36:01Z")

</div>

Hi,

I’m looking for a way to ban an IP or possibly a list of IPs with unlimited duration.  
The only way I found for the moment is to define a ban manually with cscli decisions add --ip x.x.x.x --duration 999999m

---

<div class="post-metadata">

**Author:** ![alteredCoder](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/alteredcoder/32/44_2.png) [@alteredCoder](https://discourse.crowdsec.net/u/alteredCoder)\
**Post date:** [December 6, 2021, 8:53am UTC](https://discourse.crowdsec.net/t/how-to-ban-an-ip-or-ip-list-permanently/383/2 "2021-12-06T08:53:58Z")

</div>

Hello,

Currently, it is not possible to perma ban IP with crowdsec. If you need IPs to be ban permanently, i would suggest you to create new set in your ipset (not the one used by crowdsec), and add the IPs you want to perma ban inside.
