TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

REST lesson learned: Avoid hackable URLs

3 pointsby restlessmediaabout 12 years ago

2 comments

joostersabout 12 years ago
Dumb idea, IMO. If people can access stuff that they shouldn't, by guessing URLs, then your problem is <i>access controls</i>, not the URLs.<p>Switching to opaque, meaningless strings for your URLs does not solve your problem. URLs leak, they risk being recorded and published (e.g. Referer: headers on weblogs), and so people will find them anyway.<p>You still need access controls and all you have achieved by making your URLs complicated is to create more work for you and your users.
DoubleClusterabout 12 years ago
You should be glad your urls are so intuitive that they are easily hackable. Keep it that way and don't change them (breaking stuff is bad). Nobody really ever follows links with REST anyway. That idea is nice in theory but it's just too much work in practice.