Block All URLs
The Block All URLs filter takes a whitelist-based approach to URL moderation: every URL in a message is blocked unless its domain matches an entry on your server's allowed domains list.
When to Use
This filter is designed for communities that need strict control over which websites can be linked. Common use cases include:
- High-security servers where only a curated set of domains should be shareable
- Educational or corporate communities that restrict links to approved resources
- Servers frequently targeted by novel scam campaigns where a blocklist approach cannot keep up
How It Works
- When a message is sent, Thrella extracts all URLs using the same detection engine as the link filter (including obfuscation-resistant extraction).
- Each extracted URL's domain (and optionally its path) is compared against the server's allowed domains list.
- URLs that do not match any allowed entry are blocked according to the configured action.
- URLs that do match the allowlist pass through. If the link filter is also enabled, those URLs are still scanned for known scam patterns.
The Block All URLs check runs before the link filter. If a URL is blocked by this filter, processing stops for that message. If a URL passes (it is on the allowlist), the regular link filter and invite filter still apply their checks.
Enabling the Filter
- Navigate to Dashboard > Security
- Expand the Block All URLs card
- Toggle the filter on and select an enforcement action
- Add domains to the allowed list
When Block All URLs is active, the Custom Blocklist card is hidden (since blocking all URLs by default makes a blocklist redundant). Your custom blocklist entries are preserved and will reappear when you disable this filter.
Tier Limits
The number of allowed domains you can configure depends on your subscription tier. When you reach your tier's limit, the dashboard will prevent adding more entries. For current limits, check Dashboard > Billing or visit thrella.com.
Managing Allowed Domains
Adding Domains
Type a domain or pattern into the input field and click the plus button (or press Enter). Domains are validated before being added.
Domain Format Requirements
Allowed domains must follow these requirements:
- Minimum length: 3 characters
- Maximum length: 300 characters (allows for path patterns)
- Valid characters: Letters (a-z), numbers (0-9), hyphens (-), dots (.), forward slashes (/), and asterisks (*) for wildcards
- Must contain a TLD: At least one dot with a valid top-level domain
- ASCII only: Special characters and international characters are not supported
- No control characters: Null bytes and other control characters are rejected
The dashboard validates patterns inline when you add them. Invalid patterns display a red error message below the input field explaining the issue (e.g., "Invalid pattern format" or "Pattern already in list"). The error clears automatically when you modify the input.
Glob Patterns
The allowed list supports wildcard patterns for flexible matching:
| Pattern | What it does | Example match | Does not match |
|---|---|---|---|
discord.com | Exact domain (plus any path) | discord.com/channels/123 | cdn.discord.com |
*.discord.com | Any subdomain (plus any path) | cdn.discord.com/attachments/... | discord.com (exact domain) |
discord.com/channels/* | Domain + specific path prefix | discord.com/channels/123/456 | discord.com/invite/abc |
binance.com/**/activities | Deep path matching | binance.com/en/sub/activities | binance.com/en/trade |
api.example.com/v?/data | Single character wildcard | api.example.com/v2/data | api.example.com/v10/data |
Wildcard reference:
*matches any characters within a single path segment (does not cross/)**matches any characters across multiple path segments (crosses/)?matches exactly one character
To allow both a domain and all its subdomains, add both entries: discord.com and *.discord.com.
Pattern Guide
A collapsible Pattern Guide is available in the dashboard above the domain input field. Click it to view examples and explanations for each wildcard type. Use this as a reference when building patterns for your allowlist.
Test URL
The dashboard includes a Test URL tool below the allowed domains list. Paste any URL into the test field and click Test to instantly see whether it would be allowed or blocked based on your current patterns.
- Green result: The URL matches a pattern and would be allowed. The matching pattern is shown.
- Red result: The URL does not match any pattern and would be blocked.
This test runs entirely in the browser and does not send any data to the server. Use it to verify your patterns before saving.
Loading Defaults
Click the Defaults button to populate your list with commonly-used safe domains. This adds:
- Discord (
discord.com,*.discord.com,discord.gg,discordapp.com, etc.) - YouTube and Twitch
- Twitter/X
- Steam, Epic Games, Roblox
- Imgur, Giphy, Tenor
Existing entries are not duplicated. You can remove any default entries you do not want.
Importing from File
Click the Import button to load domains from a file. Supported formats:
CSV or TXT -- one domain per line, or comma-separated:
discord.com
*.discord.com
youtube.com
JSON -- an array of strings:
["discord.com", "*.discord.com", "youtube.com"]
After selecting a file, a preview dialog shows how many valid entries will be added and lists any invalid entries that will be skipped. Click Import to confirm.
Searching
When your list exceeds 10 entries, a search field appears above the domain badges. Use it to quickly find and manage specific entries.
Interaction with Other Filters
- Link Filter: URLs that pass the allowlist are still scanned by the link filter for scam detection. Both filters can be active simultaneously.
- Invite Filter: Invite links are subject to both Block All URLs (must be on the allowlist) and the invite filter (must be from an allowed server/code).
- Forward Filter: Forwarded messages are checked by Block All URLs for any URLs in the forwarded content.
- Custom Blocklist: Hidden while Block All URLs is active. Entries are preserved and resume when Block All URLs is disabled.
- Trusted Roles: Members with a trusted role bypass all filters including Block All URLs.
Filter Actions
Block All URLs supports the same action levels as other filters. See the Filter Actions Reference for details.
For this filter, DELETE_WARN is a reasonable default -- it removes the unapproved link and lets the user know why. Start with LOG_ONLY or ALERT if you want to evaluate which URLs your members share before enforcing the allowlist.