Skip to content

Instantly share code, notes, and snippets.

@theskumar
Created April 9, 2015 06:48
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save theskumar/54be20713e53d418bf02 to your computer and use it in GitHub Desktop.
Save theskumar/54be20713e53d418bf02 to your computer and use it in GitHub Desktop.
Restricted usernames
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
'''
List of reserved usernames (pre-defined list of special banned and reserved keywords in names,
such as "root", "www", "admin"). Useful when creating public systems, where users can choose
a login name or a sub-domain name.
__References:__
1. http://www.bannedwordlist.com/
2. http://blog.postbit.com/reserved-username-list.html
'''
_d = ("about access account accounts add address adm admin administration adult "
"advertising affiliate affiliates ajax analytics android anon anonymous api "
"app apps archive atom auth authentication avatar "
"backup banner banners bin billing blog blogs board bot bots business "
"chat cache cadastro calendar campaign careers cgi client cliente code comercial "
"compare config connect contact contest create code compras css "
"dashboard data db design delete demo design designer dev devel dir directory"
"doc docs domain download downloads edit editor email ecommerce "
"forum forums faq favorite feed feedback flog follow file files free ftp"
"gadget gadgets games guest group groups "
"help home homepage host hosting hostname html http httpd https hpg "
"info information image img images imap index invite intranet indice ipad iphone irc "
"java javascript job jobs js "
"knowledgebase "
"log login logs logout list lists "
"mail mail1 mail2 mail3 mail4 mail5 mailer mailing mx manager marketing master me media message "
"microblog microblogs mine mp3 msg msn mysql messenger mob mobile movie movies music musicas my "
"name named net network new news newsletter nick nickname notes noticias ns ns1 ns2 ns3 ns4 "
"old online operator order orders "
"page pager pages panel password perl pic pics photo photos photoalbum php plugin plugins pop pop3 post "
"postmaster postfix posts profile project projects promo pub public python "
"random register registration root ruby rss "
"sale sales sample samples script scripts secure send service shop sql signup signin search security "
"settings setting setup site sites sitemap smtp soporte ssh stage staging start subscribe subdomain "
"suporte support stat static stats status store stores system "
"tablet tablets tech telnet test test1 test2 test3 teste tests theme themes tmp todo task tasks tools tv talk "
"update upload url user username usuario usage "
"vendas video videos visitor "
"win ww www www1 www2 www3 www4 www5 www6 www7 wwww wws wwws web webmail website websites webmaster workshop "
"xxx xpg you yourname yourusername yoursite yourdomain ")
_d += ("anal anus arse ass ballsack balls bastard bitch biatch bloody blowjob bollock bollok boner "
"boob bugger bum butt buttplug clitoris cock coon crap cunt damn dick dildo dyke fag feck "
"fellate fellatio felching fuck fudgepacker fudge packer flange Goddamn God damn hell homo "
"jerk jizz knobend knob end labia lmao lmfao muff nigger nigga omg penis piss poop prick pube "
"pussy queer scrotum sex shit sh1t slut smegma spunk tit tosser turd twat vagina wank whore wtf ")
wordlist = set(_d.split(" "))
def is_restricted(username):
return True if username in wordlist else False
__all__ = ["wordlist", "is_restricted"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment