Obfuscating folder names?
May 27, 2014 9:02 PM Subscribe
I want to make some JPG files available to others on a web site, one each. An example application would be prom photos where I am sending the pic just to the subject, and don't particularly want other attendees browsing all the pics. I'd like to avoid having users need to log in, sending them just a link. I'd like to make it hard to browse other's pics. I think a reasonable approach might be to store the file in a folder with a long, random name. That would make it hard for a casual browser to guess, but could be easily passed around as a link. If someone guesses the URL it isn't a big deal, but I'd like to make it harder than just folder names incrementing by 1 or something equally trivial. So how big is the namespace for a directory name (linux) and what length of string would be suitable? Is there a better way to achieve these ends or some drawback I'm not considering?