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 8257037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:04:09+00:00 2026-06-08T02:04:09+00:00

We found an issue with our in-house CDN solution. An Auth user adds photo’s

  • 0

We found an issue with our in-house CDN solution.

An Auth user adds photo’s or docs to their project.
We upload the files to local driver on the server different from the website application.

Example: mysite.com [ d:\websites\mysite.com\]  running web-app
Example: cdn.mysite.com [ e:\cdn\mysite.com\assests\]  storage area

If a Auth user uploads a an image … then right-clicks on it, the exposed URL
is:

http://cdn.mysite.com/assests/30b3bddc-fe1b-4fef-92c0-576bb6e5b487
/p/347e4ec6-3e36-4ac3-932a-a686d3cffd51/t/347e4ec6-3e36-4ac3-932a-a686d3cffd
51.jpg

We are using GUID for the Project Folder / User Folder / ImageName.jpg

However, if you copy/paste and send this URL to a friend (Not Auth user), you can access the image/file/etc …

How can we protect the CDN to only server up files if user is Auth?

Windows 2008 Server
IIS 7
ASP.NET 4
C# Web app

  • 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-06-08T02:04:11+00:00Added an answer on June 8, 2026 at 2:04 am

    Create a custom HTTP Module that handles all incoming requests to the cdn site. In the handler you can check if they are authenticated or not

    http://msdn.microsoft.com/en-us/library/ms227673.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone else had this issue and found a working solution? I've enabled the
We have found an issue in our app where Safari on the Mac randomly
I have been looking around and found no solution for this issue. Let say
I'm working on a project to link an issue tacker to our source control
I found a ticket in our issue tracker that one of customers report a
Since I updated jQueryUI to 1.8 I found a couple of issues in our
I've found the issue with using primitive type as an object @Id for JPA
I've found a strange issue with subclassing and dictionary updates in new-style classes: Python
I found out the next issue in this simple code: let () = print_endline
EDIT: I've found what's causing the issue, but I don't know why and I

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.