Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2006, 06:01 AM
Registered User
 
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Protect my documents

Hi friends,

I suddenly stuck up today will any one help me out. The problem is like this.


I have a site in asp.net where to view pages login is required. I've used form authentication to solve this problem. Now after these pages are called they have links to pdf documents. these pdf documents are visible only if the user is a subscriber to this document.But once the URL is known, any body can know the directly access the pdf documents. Can it be possible with form authentication so that whenever the URL path to the pdf document is entered directly, the user is redirected to Login page.Also how could we distinguish that this user is a subscribed user or guest user and which of document he is allowed to see.


Thank You
Warm Regards:-
Tech4U
 
Old July 5th, 2006, 09:35 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You could just save the PDF document into a database and then when a user requests X document, make a call to the database and push the binary stream down to the user.

Hth

"The one language all programmers understand is profanity."
 
Old July 6th, 2006, 11:32 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you categorize the users and PDF documents into distinct groups?
If so, you could create a separate subfolder for each group of PDF’s and assign specific user permissions for the sub directories.

Here’s a link that may explain things better: User Authorization in Sub-Directories: http://www.dotnetcoders.com/web/Arti...px?article=186

- Adam Kahtava [http://adam.kahtava.com]





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to protect my parameters roy_mm Reporting Services 0 October 25th, 2007 12:02 PM
protect app angelboy C# 2005 4 March 9th, 2007 01:22 PM
protect source angelboy C# 2005 1 February 12th, 2007 04:13 PM
Protect my Code tamernice Pro VB.NET 2002/2003 1 May 14th, 2005 06:43 PM
How to protect the database Xanoo Classic ASP Databases 1 July 6th, 2003 04:03 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.