Link to home
Create AccountLog in
Avatar of cdakz
cdakzFlag for United States of America

asked on

How to provide a hyperlink to file without revealing path?

I need to provide an href / hyperlink in a web browser to a file, so that the user can open/download it, but NOT provide the full path to the file (for security reasons).

What's the best way to do this?
SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of cdakz

ASKER

I get the gist, but am familiar with asp.net/c#, so the php isn't clear.

Suggestion on how to do this in C# on ASP.NET? (Sorry I didn't say so in the beginning).
Sorry, I don't work on Windows.  I will add those topics to your question so those Experts will see it.
use a virtual directory. http::\\sitename\path can point anywhere on that server.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thanks, cdakz.  Happy that I got you looking in the right direction.
Avatar of cdakz

ASKER

Selected my solution because it was the ASP.NET MVC solution.