java - General consensus on using database ids in urls? -


this question has answer here:

is using database ids in urls (e.g. example.com/users/35/details) acceptable practice or should avoided? more vulnerable security threats exposing it?

exposing internal details, such ids, security risk. however, exposing detail low risk.

if limiting actions possible user based on role, unlikely attacker can beyond user do.

if attacker has angle allows them run script against database knowing ids based on urls not biggest problem.

beyond security concerns may business concern, may not want let know approximately how many users in system. sequential ids way of finding out.

in end though, in opinion, effort , performance hits come obscuring object ids not worth in cases. if have reason obscure means it. otherwise time , effort can spent better elsewhere.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -