6

Possible Duplicate:
Is there a list of common usernames to reserve in a new system?

I'm working on a site where users will have a custom URL e.g.: http://domain.com/username

I want to avoid the situation where a user registers and creates a username that I later need, e.g. if I want a page at domain.com/about and someone's already named themselves 'about'.

Does anyone have a list of generic words that could be added to a blacklist for this?

evilcelery
  • 181
  • 1
  • 5

4 Answers4

26

I would have your users page as a sub section. Ie http://domain.com/users/username

There is no way we or even you could guess what pages you might want to create in future

Tom Squires
  • 17,835
6

What about using a prefix for site pages, like domain.com/site/about? And just make sure usernames can't include the '/' character.

Aidan Cully
  • 3,506
4

There's some great answers on this StackOverflow question:

https://stackoverflow.com/questions/5316876/is-there-a-list-of-common-usernames-to-reserve-in-a-new-system

Here's the best list I've found:

http://blog.postbit.com/reserved-username-list.html

-1

You can always encode any http reserved characters in the username.
You should do this anyway in case someone decides to register the user name /../../etc/passwd