IP whitelisting allows enterprise users to restrict which client IP addresses can access their ThornGuard proxy. This is Step 3 in the security pipeline, checked immediately after authentication.Documentation Index
Fetch the complete documentation index at: https://qwady.wiki/llms.txt
Use this file to discover all available pages before exploring further.
IP whitelisting is an Enterprise-only feature. Individual plan users have unrestricted IP access.
How It Works
- Enterprise users configure an IP whitelist via the Settings page.
- The whitelist is stored in the
license_settingstable as a JSON array. - On each request, ThornGuard checks the client’s IP (from the
CF-Connecting-IPheader) against the whitelist. - If the whitelist is empty, all IPs are allowed (default behavior).
- If the whitelist is non-empty, only listed IPs are permitted — all others are blocked.
Configuration
Add IP addresses from the ThornGuard dashboard Settings page. Supported formats:- Single IP entries:
203.0.113.10 - IPv4 CIDR notation:
198.51.100.0/24
Example Whitelist
Blocked Requests
When a request is blocked by IP whitelisting:- The proxy returns an HTTP 403 Forbidden response.
- A
BLOCKED_IP_WHITELISTaction is logged in your audit trail. - The
detailsfield includes the blocked client IP.