Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / October 2005

Tip: Looking for answers? Try searching our database.

Download Security

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jigar_a_pandya@hotmail.com - 03 Oct 2005 12:16 GMT
WHAT SHOULD I DO IF I WANT TO AUTHENTICATE THE DOWNLODING USER?

I AM USING ASP.NET AND C# TO CREATE MY WEBPAGES.

THE SCENARIO IS SOME WHAT LIKE THIS...

1)
FROM MY SITE IF SOME ONE IS DOWNLADING HE MUST HAVE CLICK ON REFRENCE
LINK.
EXAMPLE :-
IF MY SITE IS HAVING
URL:-<A HREF"HTTP://MTWEB/MYSOFTWARE.MIS>CLICK HERE TO DONLOAD<A> AND
HE CLICK AND THEN DOWNLOAD.

<<ALLOWED>>

BUT

2)WRITE THE LINK  HTTP://MTWEB/MYSOFTWARE.MIS IN BROWSER OR ANY OTHER
APPLICATION THAN IT SHOULD NOT ALLOW.

<<NOT ALLOWED>>

THANKS IN ADVANCE.
Jas - 05 Oct 2005 19:11 GMT
I can think of two fairly simple ways:

1. You can check to see what the referrer field is in the header of the HTTP
request.  (can be easily faked)
2. You can put something in the session object once they hit the page where
the link is provided.  And on the page where you download the actual file
ensure that the user has that certain something in their session object.

jas

> WHAT SHOULD I DO IF I WANT TO AUTHENTICATE THE DOWNLODING USER?
>
[quoted text clipped - 20 lines]
>
> THANKS IN ADVANCE.
Nicole Calinoiu - 07 Oct 2005 14:26 GMT
Exactly which of the two following scenarios are you trying to prevent:

1.  Download of the file by someone who has not viewed your page, or
2.  Download of the file by an unauthenticated and/or unauthorized user?

> WHAT SHOULD I DO IF I WANT TO AUTHENTICATE THE DOWNLODING USER?
>
[quoted text clipped - 20 lines]
>
> THANKS IN ADVANCE.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.