CiviWiki/OpenCiviWiki

View on GitHub
project/accounts/reserved_usernames.py

Summary

Maintainability
A
0 mins
Test Coverage
"""
A list of possible usernames to reserve to
avoid vanity URL collision with resource paths

It is a merged list of the recommendations from this Quora discussion:
http://www.quora.com/How-do-sites-prevent-vanity-URLs-from-colliding-with-future-features
"""

RESERVED_USERNAMES = [
    # Generic reserved words
    "about",
    "account",
    "activate",
    "add",
    "admin",
    "administrator",
    "api",
    "app",
    "apps",
    "archive",
    "archives",
    "auth",
    "blog",
    "cache",
    "cancel",
    "careers",
    "cart",
    "changelog",
    "checkout",
    "codereview",
    "compare",
    "config",
    "configuration",
    "connect",
    "contact",
    "create",
    "delete",
    "direct_messages",
    "documentation",
    "download",
    "downloads",
    "edit",
    "email",
    "employment",
    "enterprise",
    "faq",
    "favorites",
    "feed",
    "feedback",
    "feeds",
    "fleet",
    "fleets",
    "follow",
    "followers",
    "following",
    "friend",
    "friends",
    "gist",
    "group",
    "groups",
    "help",
    "home",
    "hosting",
    "hostmaster",
    "idea",
    "ideas",
    "index",
    "info",
    "job",
    "jobs",
    "json",
    "language",
    "languages",
    "lists",
    "login",
    "logout",
    "logs",
    "mail",
    "map",
    "maps",
    "mine",
    "mis",
    "news",
    "oauth",
    "oauth_clients",
    "offers",
    "openid",
    "order",
    "orders",
    "organizations",
    "plans",
    "popular",
    "post",
    "postmaster",
    "privacy",
    "projects",
    "put",
    "recruitment",
    "register",
    "remove",
    "replies",
    "root",
    "rss",
    "sales",
    "save",
    "search",
    "security",
    "sessions",
    "settings",
    "shop",
    "signup",
    "sitemap",
    "ssl",
    "ssladmin",
    "ssladministrator",
    "sslwebmaster",
    "status",
    "stories",
    "styleguide",
    "subscribe",
    "subscriptions",
    "support",
    "sysadmin",
    "sysadministrator",
    "terms",
    "tour",
    "translations",
    "trends",
    "unfollow",
    "unsubscribe",
    "update",
    "url",
    "user",
    "weather",
    "webmaster",
    "widget",
    "widgets",
    "wiki",
    "www",
    "wwww",
    "xfn",
    "xml",
    "xmpp",
    "yaml",
    "yml",
]