title: Umbraco: Deny public access for media files of content
body: <p>I'm working with Umbraco 4.11.8.</p>
  
  <p>For my website I have a document type, that contains a field to upload PDF files. The created content items of this document type aren't public so a specific membergroup can see them, only. That works fine.</p>
  
  <p>But... When I type the specific path of the PDF file in the browser, it will show me, but it shouldn't. It just has to be visible for logged in members.</p>
  
  <p>Is there a way to do this with umbraco or do I have to do this with the webserver (IIS 7) and the web.config? I'm able to deny the access of all media files in the media folder, but there are images and files for public, too. So that isn't the solution.</p>