Skip to content

Commit 7b182d3

Browse files
authored
Merge pull request #120 from 1991-mirec/feature/DEF-33470
DEF-33470: update docs about whitelist wildcard domain support
2 parents d5a55b1 + 8f27b8e commit 7b182d3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/command_line_interface/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,23 @@ imunify360-agent whitelist domain add example.com
11861186
OK
11871187
```
11881188

1189+
**Wildcard Domain Support:**
1190+
1191+
Use wildcards to efficiently whitelist all subdomains, with the option to also include the main domain itself.
1192+
1193+
1. Whitelisting all subdomains (but not the parent domain itself):
1194+
To whitelist all subdomains like `foo.example.com` or `bar.example.com` (e.g., anything before `.example.com`), but not `example.com` itself, use the *. prefix:
1195+
```
1196+
imunify360-agent whitelist domain add "*.example.com"
1197+
OK
1198+
```
1199+
2. Whitelisting a domain and all its subdomains:
1200+
To whitelist both the main domain (e.g., `example.com`) **AND** all its potential subdomains (e.g., `foo.example.com`, `blog.example.com`), use the . prefix:
1201+
```
1202+
imunify360-agent whitelist domain add .example.com
1203+
OK
1204+
```
1205+
This is a convenient shorthand and is equivalent to adding `example.com` and `*.example.com` separately.
11891206

11901207
## Login
11911208

0 commit comments

Comments
 (0)