p0t4t0
181
4
Laravel

Is it advisable to hash ids in url?

Posted 1 year ago by p0t4t0

I'm not sure what the proper terms are or if it's even called hashing but is it advisable to do something like /user/gPUasb or /user/gPUasb/edit? to perhaps prevent users from guessing ids and manually going to each user's profile and maybe spam them or worse collect data from them? I'm just curious because I've never seen big sites with urls that point to user profiles with something as simple as user/1 or user/1/edit

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.