-
Notifications
You must be signed in to change notification settings - Fork 8
feat: block registration/sign-in from .shop/.top TLDs #750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bda954a
6496b8d
c20270d
4fb0b74
2232e26
6b94795
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,3 +186,12 @@ export const O11Y_KILO_GATEWAY_CLIENT_SECRET = getEnvVariable('O11Y_KILO_GATEWAY | |
| export const SECURITY_CLEANUP_BETTERSTACK_HEARTBEAT_URL = getEnvVariable( | ||
| 'SECURITY_CLEANUP_BETTERSTACK_HEARTBEAT_URL' | ||
| ); | ||
|
|
||
| // Pipe-delimited list of TLDs to block from new signups, each with a leading dot (e.g. ".shop|.top|.co.uk") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we're banning the UK?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In all seriousness, we are not blocking .co.uk but it was just an example the agent put in there |
||
| const blacklistTldsEnv = getEnvVariable('BLACKLIST_TLDS'); | ||
| export const BLACKLIST_TLDS = blacklistTldsEnv | ||
| ? blacklistTldsEnv | ||
| .split('|') | ||
| .map((tld: string) => tld.trim().toLowerCase()) | ||
| .filter(Boolean) | ||
| : []; | ||

Uh oh!
There was an error while loading. Please reload this page.