In an asp.net web forms site, I would like to disallow a user from browsing directly to files stored in a directory. For example, i have PDFs being stored in a directory, if the user knows the path, they can simply type it in the browser address bar and pull up the PDF.
Looking for ideas on how to stop that unless they are logged in under a specific id that matches the directory name.
Any ideas appreciated.