I am building a web site in which there is public content on pages but I don't want users to be able to guess what the next page is just by changing the id
of the row that is directly in the URL.
I found out here that the way to do was to encode and decode decimal/base 36. But the problem with this method is that the id
is still easily guessable, as 1 would remain 1, and 13 would be D, etc.
What is the best practice and method for using longer hash/alphanumeric strings as id
? Kind of like Youtube URLs, without any possibility of collision?
Thanks for your help and advices, it's very appreciated.