Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6888603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:02:42+00:00 2026-05-27T06:02:42+00:00

Say that I have a bunch of PDF documents on my web server uploaded

  • 0

Say that I have a bunch of PDF documents on my web server uploaded to my web server by my user-system.
Say that they are top secret or very personal; could fx. be a paycheck, a customer contract or an invoice.

How do I hide the PDF-documents from the world, but make it visible and downloadable for users logged into my user-system?

Is this anyway possible?

I am using a fully dedicated Microsoft Web Server 2008 with SQL Server 2008 and IIS7. And I am server-scripting with ASP Classic.

And yeah, I have been googling the scenario and I really can’t find a specific example on how to do this. Which also lets me believe, that it is not possible :/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:02:43+00:00Added an answer on May 27, 2026 at 6:02 am

    First of all you could use some ugly ASP code to pump contents of a PDF to the client but I’ll not steer you that way when you have lovely modern server to play with.

    Hopefully you haven’t got any old ISAPI filters that require a classic pipeline. Hence your application pool will be running the integrated pipeline.

    I believe you can use the ASP.NET global.asax page filter incoming requests even for static content in the integrated pipeline. The AuthorizeRequest might be a good place to put your code.

    You will probably need to adjust your existing logon system (which probably depends on ASP Session) to also add an additional session cookie (one whose name and value you dictate) to the response for a logon request.

    You would place the PDF files under some sub-folder in your application. Your code in the Global.asax code-behind could then determine if the incoming request is for that sub-folder, if it is it could examine the cookies on the request to determine if your session cookie is present and that it has a valid value.

    This has two advantages:-

    1. It allows the existing static content handler to deliver the actual file to the client, which will be more efficient than trying to do it with code.
    2. It gives your app small foot hold in the ASP.NET world. From here you could consider delivering more features using ASP.NET instead.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say that I have a bunch of class instances that serve different purposes,
Let's say I have a bunch of classes that look something like... class Foo{
In C++, say you have a whole bunch of objects that you want to
Let's say I have some Control that has been disabled. It contains a bunch
Lets say I have some pdf files stored on my server and I only
Let's say that I have a bunch of records in MySQL, something like this:
Let's say I have a bunch of links that share a click event: <a
Say that I have a table with a bunch of records, which I want
Let's say that I have a bunch of objects (thumbnails in a matrix for
Let's say I have a bunch of related functions that have no persistent state,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.