IP Whitelist
IP Whitelist
1 IP Whitelist
The protective wall will ignore IPs within the whitelist.
1.1 IP Whitelist
Support IP or CIDR

1.2 Batch Add Whitelist IP
See: Website Management -> Batch Tasks
Batch Add Whitelist IP
2 Overview
The IP whitelist is an allowlist: matching an enabled entry skips subsequent WAF checks. It is commonly used for internal ops IPs, monitoring/health-check IPs, payment callback sources and other traffic that should bypass inspection. Website password access, unified access authentication and the application's own authentication still follow their respective configurations.
Enabled site allowlist entries, including single IPs/CIDRs and IP group references, take precedence over the WAF IP blacklist. Enabled global entries also take precedence when global-site protection is enabled. Matching follows the visited site's IP mode: NIC mode uses the network peer IP; Proxy mode uses the IP identified through the configured real-IP source. Check the actual IP in the logs, especially behind a CDN or reverse proxy.
Inspection bypass scope
Allowlisted sources skip subsequent WAF checks; do not expect all protection checks to remain active. URL allowlists and callback-source allowances may also skip the IP blacklist. Combining an allowlist with a whole-family WAF blacklist should therefore not be treated as a strict "only allowlisted IPs can access" policy.
A WAF allowlist cannot override a system firewall block that drops packets. Remove that system-layer block separately.
The banner at the top of the page reads: SamWaf will ignore IPs / ranges that are in the whitelist.
3 Operation Steps
3.1 Add a Whitelist IP
- Click the Add Allowlist IP button in the top-left corner to open the dialog.
- Select a Website (required) — the protected site this whitelist entry applies to.
- Choose the Entry Type:
- Single IP / CIDR (default): enter the IP directly — see 3.2 Supported IP syntax.
- Reference IP Group: pick an existing IP Group from the IP Group dropdown; every IP in that group is allowed at once. Options are shown as "Group Name (entry count)", and the Manage IP Groups link next to it jumps to the IP Group page.
- Optionally add notes in the Remarks field.
- Click Confirm to save.
The list has a new Type column that distinguishes the two kinds of entry. For a row that references a group, the IP column shows "Group Name (entry count)" rather than a concrete IP.
Tips
For IPs that must be allowed on several sites at once — ops egress, monitoring and health-check sources — create an IP Group first and have each site's whitelist reference it. When staff or egress IPs change later, edit the group once and every referencing site follows immediately.
3.2 Supported IP syntax
| Syntax | Example | Notes |
|---|---|---|
| Single IP | 127.0.0.1, 2001:db8::1 | IPv4 and IPv6 both supported |
| CIDR | 192.168.1.0/24, 2001:db8::/32 | |
| IPv4 wildcard | 10.10.*.*, 10.*.1.* | Per octet; * may appear in any position |
| IPv6 wildcard | 2001:db8:*:*:*:*:*:* | Per group; all 8 groups must be spelled out and :: shorthand cannot be mixed in |
| Range | 1.2.3.4-1.2.3.99 | Inclusive on both ends; start and end must both be IPv4 or both IPv6 |
The same hint appears under the input box: Supports single IP, CIDR, wildcard (IPv4 per octet e.g. 10.10.*.*; IPv6 must spell out all 8 groups and cannot use :😃, and range (start-end).
Warning
Wildcards and ranges covering an entire address family, such as *.*.*.* and 0.0.0.0-255.255.255.255, are rejected on save. If a whole-family inspection bypass is required, explicitly enter 0.0.0.0/0 (IPv4 only) or ::/0 (IPv6 only) and check the selected website scope.
3.3 Edit / Delete
- In the Operation column of each row, click Edit to change the website, IP, or remarks of an entry.
- Click Delete to remove a single entry (a confirmation prompt appears).
3.4 Batch Delete and Clear All
- Tick the checkboxes in front of the rows, then click Batch Delete to remove all selected entries (the button is disabled when nothing is selected).
- Click Clear All to remove all whitelist entries under the current filter (a second confirmation appears).
3.5 Search
The top-right area lets you filter by Website and IP; enter values and click Search.
4 Field Reference
| Field | Description |
|---|---|
| Website | The protected site this entry applies to. Required when adding/editing. |
| Entry Type | Single IP / CIDR (default) or Reference IP Group; decides whether you fill in the IP or pick a group. |
| IP | The IP to allow. Supports a single IP, CIDR, wildcard and range (see 3.2). Required when the entry type is Single IP / CIDR. |
| IP Group | The referenced IP Group. Required when the entry type is Reference IP Group; the entry follows the group content immediately whenever it changes. |
| Remarks | Optional free-text notes. |
| Create Time | The creation time of the record (shown in the list, generated automatically). |
Tips
The "Website" column shows the corresponding site name. For a WAF inspection bypass across all sites with protection enabled, select the global website and enable both the entry and global-site protection.
Update History
| Date | Applicable Version | Description |
|---|---|---|
| 2026-10-30 | v1.3.25-beta.9 | Clarified enabled-entry and global-protection conditions, IP mode, precedence and inspection bypass scope; other authentication and system-layer blocks retain their own behavior. |
