The identifier itself will be a leak of information that will allow a third party to approach the date recorded on your site. So, if Alice is friends with Bob and knows that she registered last year, and he followed 3 days later, and her identification is 100, and his 150, she will know that Carol, who is not her friend, is registered on your the site then wasn’t “quite recently,” as Carol claimed, trying to find an excuse as to why she’s not “friends” with Alice on your site on social networks!
This is problem? You decide, but personally, I would rather be a little professional / paranoid (the two often go together, whatever that means to our profession!) And avoid including auto-increment identifiers in the URL, where there is even the slightest security / privacy. Or at least advise you to be :-)
If you decide to follow the path of Virtue, you may need to consider that other identifiers are also leaks of information (for example, Alice will know Carol before what she claimed if she finds out that her profile identifier is less than that of Bob), Thus, although it might seem that you can add, say, a GUID column, and use it as a secondary identifier that is safe for inclusion in URLs, you might be better off just switching from auto-increment identifiers to used e GUID. (More on GUIDs here: http://en.wikipedia.org/wiki/Globally_unique_identifier )
Hope that helps :-)
source share