Hacker News new | ask | show | jobs
by _delirium 5972 days ago
It's not foolproof, but I think one common way is for the static-content server to check for an appropriate authentication cookie. In Facebook's case, an additional complication is that they serve lots of the static content off Akamai, so any authentication would have to be coordinated.
2 comments

The cookie slows down the things a bit. I've never had such problem but what about complete randomization of static URLs, so they are not easily findable?

If the leaks are the issue, one might want to change the names, or just filesystem symlinks, periodically.

couldn't they just solve it by serving up an image with a hash of the facebook uid as the filename?
Facebook uid = users.id? It gives zero privacy then.
Plus the domain name is completely different: all static content is served from subdomains of .fbcdn.net (and frequently of .ak.fbcdn.net).