A better tip would be to use something like time-ordered uuids: You can‘t misuse them for something different and the added bonus is that no one can iterate your db records by just incrementing the url.
There's a reason why Apple got away with only showing the hostname of a URL: It doesn't matter to ordinary people. :)
See for example https://pypi.org/project/shortuuid/
>>> shortuuid.uuid()
'vytxeTZskVKR7C7WgdSP3d'That would break with any webserver that is serving files from a case-sensitive filesystem. Which is most of them.