how would one secure files on a web server? Id like them to be downloadable only by authenticated users How do i stop someone putting in the files URL and just downloading it without auth. lets say for instance - a user downloads the file - perhaps you have a controller that checks auth and streams them the file using this url: ie: site.com/controller/download/filename whats to stop people doing this with no auth directly: site.com/files/filename.ext
the direct link to the file essentially bypasses the whole web framework and just downloads the file.
perhaps im missing a fundamental here - but how to do this and keeps files private?
Thanks!