# Crowdsec

#### AllowLists

You can create a new AllowList using `cscli`:

```
cscli allowlist create my_allowlist -d 'created from the docs'
```

To add entries to the AllowList, provide the name and the value you want to allow:

Single IP:

```
cscli allowlist add my_allowlist 192.168.1.1

```

<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" id="bkmrk-" style="--prism-color: #9CDCFE; --prism-background-color: #1E1E1E;"><div class="codeBlockContent_QJqH"><div class="buttonGroup_M5ko">  
</div></div></div>CIDR range:

```
cscli allowlist add my_allowlist 192.168.1.0/24

```

<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" id="bkmrk--1" style="--prism-color: #9CDCFE; --prism-background-color: #1E1E1E;"><div class="codeBlockContent_QJqH"><div class="buttonGroup_M5ko">  
</div></div></div>A key benefit of using AllowLists is that changes take effect immediately—no need to restart CrowdSec.

To view the contents of an AllowList, run:

```
cscli allowlist inspect my_allowlist

```

<div class="language-bash codeBlockContainer_Ckt0 theme-code-block" id="bkmrk--2" style="--prism-color: #9CDCFE; --prism-background-color: #1E1E1E;"><div class="codeBlockContent_QJqH"><div class="buttonGroup_M5ko">  
</div></div></div>Example output:

```
──────────────────────────────────────────────
 Allowlist: my_allowlist
──────────────────────────────────────────────
 Name                my_allowlist
 Description         created from the docs
 Created at          2025-05-13T14:10:12.668Z
 Updated at          2025-05-13T14:12:30.177Z
 Managed by Console  no
──────────────────────────────────────────────

───────────────────────────────────────────────────────────────
 Value           Comment  Expiration  Created at
───────────────────────────────────────────────────────────────
 192.168.1.0/24           never       2025-05-13T14:10:12.668Z
───────────────────────────────────────────────────────────────
```

Quelle:  
[https://docs.crowdsec.net/u/getting\_started/post\_installation/whitelists/](https://docs.crowdsec.net/u/getting_started/post_installation/whitelists/)