From 05abca0848b41fadca404b340b8216e6fb6b8f41 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Sun, 25 Dec 2016 12:31:34 -0800 Subject: [PATCH] name_restrictions: Add a few more reserved subdomains. --- zerver/lib/name_restrictions.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/zerver/lib/name_restrictions.py b/zerver/lib/name_restrictions.py index a7bcbd87ba..befaca4751 100644 --- a/zerver/lib/name_restrictions.py +++ b/zerver/lib/name_restrictions.py @@ -17,16 +17,27 @@ def is_disposable_domain(domain): return domain.lower() in DISPOSABLE_DOMAINS ZULIP_RESERVED_SUBDOMAINS = frozenset([ + # zulip terms 'stream', 'channel', 'topic', 'thread', 'installation', 'organization', 'realm', - 'team', 'subdomain', 'activity', 'octopus', 'acme' + 'team', 'subdomain', 'activity', 'octopus', 'acme', + # machines 'zulipdev', 'localhost', 'staging', 'prod', 'production', 'testing', 'nagios', 'nginx', + # website pages 'server', 'client', 'features', 'integration', 'bot', 'blog', 'history', 'story', 'stories', 'testimonial', 'compare', - 'slack', 'mattermost', 'rocketchat', 'irc', 'twitter', 'zephyr', + # competitor pages + 'slack', 'mattermost', 'rocketchat', 'irc', 'twitter', 'zephyr', 'flowdock', 'spark', + 'skype', 'microsoft', + # zulip names 'zulip', 'tulip', 'humbug', + # platforms 'plan9', 'electron', 'linux', 'mac', 'windows', 'cli', 'ubuntu', 'android', 'ios', + # floss 'contribute', 'floss', 'foss', 'free', 'opensource', 'open', 'code', - 'intern', 'outreachy', 'gsoc', 'gci']) + # intership programs + 'intern', 'outreachy', 'gsoc', 'gci', 'externship', + # tech blogs + 'engineering', 'infrastructure', 'tooling', 'tools', 'javascript', 'python']) # Most of this list was curated from the following sources: # http://wiki.dwscoalition.org/notes/List_of_reserved_subdomains (license: CC-BY-SA 3.0)