How can I filter out profanity in numeric IDs?

143 views Asked by At

I want to use numeric IDs in a web application I am developing... However, as the ID is visible to users as a URL, I want to filter out profanity. Things like (I'll leave it to you to figure out what they are):

page.php?id=455
page.php?id=8008135
page.php?id=69

Has anyone solved this? Is this even a real problem?

Does it make sense just to skip numbers in my database sequence?

See also: How can I filter out profanity in base36 IDs?.

1

There are 1 answers

0
Chris On

How about you using GUIDs? That would encode the actual numbers. I would bet most users don't even notice what is on the url.