Tony
Tony

Reputation: 12695

Safe PDF view in ASP.NET MVC

I have a PDF file and I want to allow users to view it online, but I want to prevent this document from being downloaded. Does know any solution to achieve that ?

Upvotes: 0

Views: 318

Answers (2)

Romias
Romias

Reputation: 14133

You could convert those PDFs to an ePaper solution.

This is one option... but there are lots.

Upvotes: 0

SLaks
SLaks

Reputation: 887225

This is fundamentally impossible.
The only way to view a PDF is to download it to a temp folder. (the browser does this automatically)

On a deeper level (for any type of document), it is fundamentally impossible for you to tell what is sending an HTTP request.

Upvotes: 2

Related Questions