Re:Database IDs Have No Place in URIs (2008)
by SkyBelow on Friday May 10, 2019 @03:29PM
(#19881393)
Isn't most of the security concern fixed by using guids instead of incrementing ints?
[ Parent
| on HN ]
Yes, but please don't use guids in urls.
Re:Database IDs Have No Place in URIs (2008)
by SkyBelow on Friday May 10, 2019 @04:10PM
(#19881751)
Seems like your options are:
1. Mutable data (looks nice but can change)
2. Incrementing data (looks nice but can be guessed and measured)
3. Random looking data (immutable and unguessable but ugly)
Guids aren't the only option for 3 and some of the others may not look as bad, but it still seems the safest option. Any other compelling reasons to not use guids?
There's no reason not to use guids in urls.
Other than them being obnoxiously long, that is.