IT Community - Software Programming, Web Development and Technical Support

Distributing files to users in a secure method ASP.NET

This is a discussion on Distributing files to users in a secure method ASP.NET within the ASP and ASP.NET Programming forums, part of the Web Development category; In some circumstance we gave the link to download a file....if u want to secure the file to download.......


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-11-2008, 10:28 PM
Anandavinayagam Anandavinayagam is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 131
Anandavinayagam is on a distinguished road
Default Distributing files to users in a secure method ASP.NET

In some circumstance we gave the link to download a file....if u want to secure the file to download....like if user must be authenticated,.....
HTTPHandler is used to secure the files.....

in web.config

<httpHandlers>
<add verb="*" path="*.doc" type="FileHandler" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory" />
</httpHandlers>

and the below method process the request

public void ProcessRequest(HttpContext context)
{

Source : Source.zip
__________________
The MOSS
Master of Solution Service
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure PHP code vadivelanvaidyanathan PHP Programming 5 12-11-2008 07:02 PM
How to Secure to All type of document's(don't allow users to save document's)? Archer C# Programming 1 03-12-2008 01:09 AM
How To Secure Windows XP arjkhanna Operating Systems 0 01-08-2008 09:18 AM
Trace files and Log Files in Unix vigneshgets Operating Systems 0 08-01-2007 05:18 AM
Secure Appn sudhir Software Testing 2 04-16-2007 04:08 AM


All times are GMT -7. The time now is 06:54 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0