Last active
July 15, 2021 17:18
-
-
Save jquacinella/6055f52c821f0411e8a8 to your computer and use it in GitHub Desktop.
List / Set of Bad Usernames
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
# Create initial list by merging some sources together | |
# * https://gist.github.com/caseyohara/1453705 | |
# * http://www.ietf.org/rfc/rfc2142.txt | |
# * https://docs.google.com/spreadsheet/ccc?key=0At1hhL-iEnOHdGpEd0xjUnJvc2EwbVVpUUo2TkhYTlE#gid=0 | |
# * http://blog.postbit.com/reserved-username-list.html | |
badNames = ["INFO","MARKETING","SALES","SUPPORT","ABUSE","NOC","SECURITY","POSTMASTER","HOSTMASTER","USENET","NEWS","WEBMASTER","WWW","UUCP","FTP","SMTP","LIST","LIST-REQUEST","admin","blog","dev","ftp","mail","pop","pop3","imap","smtp","stage","stats","status","www","beta","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","ns5","ns6","ns7","ns8","ns9","ns10","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","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","supportdetails","support-details","stacks","imulus","github","twitter","facebook","google","apple","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","invitations","invite","is","it","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","ww","www","wwww","xfn","xml","xmpp","yaml","yml","chinese ","mandarin ","spanish ","english ","bengali ","hindi ","portuguese ","russian ","japanese ","german ","wu ","javanese ","korean ","french ","vietnamese ","telugu ","chinese ","marathi ","tamil ","turkish ","urdu ","min-nan ","jinyu ","gujarati ","polish ","arabic ","ukrainian ","italian ","xiang ","malayalam ","hakka ","kannada ","oriya ","panjabi ","sunda ","panjabi ","romanian ","bhojpuri ","azerbaijani ","farsi ","maithili ","hausa ","arabic ","burmese ","serbo-croatian ","gan ","awadhi ","thai ","dutch ","yoruba ","sindhi"] | |
badNames = [badName.strip().lower() for badName in badNames] | |
# Uncomment and add any usernames you want to filer out based on your specific brand names | |
# i.e. Github would not allow a username called 'github', 'git', etc | |
# badNames.append(['insert brand names here']) | |
# Create a set ... | |
badNames = set(badNames) | |
# ... and pickle the list using the highest protocol available. | |
output = open('badNames.pkl', 'wb') | |
pickle.dump(badNames, output, -1) | |
output.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful for when you need to make sure some usernames cannot be used on a website. All usernames in the set are lowercase. This includes generic names like 'root', etc. The commented section allows you to add your own 'brand' names to prevent users registering a name that belongs to your site.