You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/security/blocklist.mdx
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,24 @@ sidebar_position: 3
8
8
9
9
## Email blocklist \{#email-blocklist}
10
10
11
-
The email blocklist policy allows customization of email blocklist settings to prevent account sign-up abuse. It monitors email addresses used for sign-up and account settings. If a user attempts to sign up or link an email address that violates any blocklist rules, the system will reject the request, helping to mitigate spam accounts and enhance overall account security.
11
+
Use the email allowlist and blocklist settings to control which email addresses can be used for new account registrations and account linking. Logto rejects email addresses that do not satisfy every enabled rule, helping to mitigate spam accounts and enhance overall account security.
12
12
13
-
Visit the <CloudLinkto="/security/blocklist"> Console > Security > Blocklist</CloudLink> to configure the email blocklist settings.
13
+
Visit the <CloudLinkto="/security/blocklist"> Console > Security > Blocklist</CloudLink> to configure the email allowlist and blocklist settings.
Use the custom email allowlist to restrict new sign-ups and newly linked emails to approved addresses. The allowlist is disabled when it has no entries. When it contains one or more entries, an email address must match at least one entry:
| Exact email |`foo@example.com`| Only `foo@example.com`|
22
+
| Domain |`@example.com`| Any email address whose domain is exactly `example.com`|
23
+
| Wildcard |`foo*@example.com`| Emails such as `foo1@example.com` and `foo.bar@example.com`|
24
+
| Wildcard |`@*.example.com`| Emails from subdomains, such as `user@team.example.com`|
25
+
26
+
Matching is case-insensitive. A wildcard subdomain entry such as `@*.example.com` does not match the root domain `example.com`; add both `@example.com` and `@*.example.com` to allow the root domain and its subdomains.
27
+
28
+
The allowlist is not an exception list for the blocklist. An email that matches the allowlist must still pass all enabled blocklist checks, including disposable email, subaddressing, and custom blocklist rules.
@@ -30,7 +45,7 @@ You can also use `*` as a wildcard in the local part or domain. For example, `fo
30
45
31
46
:::note
32
47
33
-
Disposable emails, subaddressing, and custom email are restricted during [new-user registration](/end-user-flows/sign-up-and-sign-in/sign-up), [linking email during social sign-in](/end-user-flows/sign-up-and-sign-in/social-sign-in#collect-sign-up-identifiers), and updating emails via [Account API](/end-user-flows/account-settings/by-account-api#update-or-link-new-email). Existing users with these email addresses can still sign in.
48
+
Email allowlist and blocklist rules apply during [new-user registration](/end-user-flows/sign-up-and-sign-in/sign-up), [linking email during social sign-in](/end-user-flows/sign-up-and-sign-in/social-sign-in#collect-sign-up-identifiers), and linking or updating emails via [Account API](/end-user-flows/account-settings/by-account-api#update-or-link-new-email). Existing users can still sign in with email addresses that are already linked to their accounts.
34
49
35
50
- Admins can "bypass restrictions" by manually adding users in <CloudLinkto="/users">Console > User management</CloudLink>, or via [Management API](https://openapi.logto.io/operation/operation-createuser). E.g., Create an user with a subaddress email when subaddressing is blocked.
36
51
- Block existing accounts by deleting or suspending them in <CloudLinkto="/users">Console > User management</CloudLink>.
0 commit comments