3 ms·
It's not clear what you're trying to secure against. Are you worried about securing a particular image so that only certain designated users can see it? Are you
by eli 17y ago
It's not clear what you're trying to secure against. Are you worried about securing a particular image so that only certain designated users can see it? Are you worried about the original name "leaking"? Are you worried about someone iterating through all of your images?
In general, relying on a "secret" URL is not a good way to keep things secret. Google has a nasty habit of finding URLs you thought had no links. Definitely tune your robots.txt to keep the images off legit search engines.
- chris100 17y agoDefinitely tune your robots.txt But if you put exact URLs in your robots.txt, then a normal person could pick them up from there and access your content. Make sure you use a directory structure and forbid all files from the content directory :-)
- andrewljohnson 17y agoIt's also worth pointing out that only the likes of Google and Yahoo will even look at robots.txt. Some other crawler may walk in there, then create pages that link your files, and then Google could link those pages, and it's game over.
- milestinsley 17y agoMy main concerns are securing a file so only certain designated users can see it. And, yes, someone iterating through them would be bad also! Thanks for the tip about Google. It would be unacceptable for Google to index these files.