.NET Framework - protezione dei file

Asked By Marco
05-Nov-09 07:23 AM
ciao ragazzi.
ho un dobibo che vorrei sottoporvi cos?? da schiarire completamente le idee.
ho un sito con area riservata dell'utente; in quest'area si accede solo con
login e password. quando l'utente carica un file nella propria arera
riservata lo mette, ad esempio, nella cartella "public\myFile".
la domanda ?? la seguente: essendo l'area RISERVATA (e qiundi a solo uso
dell'utente che si logga), ?? corretto (se fornisco il path completo del file
appena caricato) che qualcun altro lo possa vedere SENZA fare login?

se ho caricato il file pippo.pdf DENTRO la mia cartella privata e io
consegno l'url  http://www.miosito.com/public/myFiles/pippo.pdf ad un amico,
?? GIUSTO che lui possa vedere il file PDF SENZA fare alcun tipo di login?
e se non ?? corretto.... come posso proteggere la cartella da questo tipo di
accesso?
grazie
ASP.NET
(1)
IIS
(1)
HttpHandler
(1)
Altrimenti
(1)
MyFiles
(1)
Prego
(1)
Matteomigliore
(1)
Completamente
(1)
  Matteo Migliore replied...
05-Nov-09 12:41 PM
Se i file .pdf o altri che vuoi proteggere non sono mappati in IIS per
essere
processati dalla pipeline di ASP.NET, s??.

Altrimenti hai due possibilit??:
1. mappare l'estensinoe in IIS sull'ISAPI di ASP.NET:
http://support.microsoft.com/kb/815152
2. mettere i file in una directory sul server non accessibile
via web (non una virtual directory) e creare un un HttpHandler .ashx
che faccia da "ponte":
http://www.codeproject.com/KB/aspnet/ws_SecurityDownload.aspx


Prego! ;-)

--
Matteo Migliore
http://blogs.ugidotnet.org/matteomigliore
Create New Account
help
ASP.Net - the "Big Picture"? .NET Framework Hi, I have a few questions about ASP.Net, as I have been using it for a while but my knowledge of the "big somewhat vague. . .) - In a closely-related matter, do any languages have issues accessing the full ASP.Net environment and facilities? For example, I found accessing .Net Collections in JScript problematic (though I how to do it). - What support to I have for the "native" Windows features under ASP.Net? Is everything done through the CLR? Can I access ADO COM objects in a moderately
This is a second post on this as the first never showed up in search. ASP.NET Security Discussions ASPNET security (1) Jerry Weng Microsoft Online Community (1) Silverlight (1) NET Framework (1) ASP.NET (1) RIA (1) WCF (1) Application (1) Cancel this. The original showed up. Was a for posting. From your post, my understanding on this issue is: you want to use ASP.NET security in your Silverlight application. If I am off base, please feel free to let me know. If we want to use ASP.NET Authentication in Silverlight applications, we need to create an ASP.NET Application Service. ASP.NET
a number from 1 to 10 .NET Framework hey all, i want to create an asp.net web page that allows internet users to pick a number from 1 to 10. how and the same time). Is this a concurrency issue? thanks, rodchar C# Discussions AppDomain (1) ASP.NET (1) WCF (1) IIS (1) GUIDs (1) Otherwise (1) Database (1) Assign (1) hi Rodchar, You may use ten number some other user does. But since you are trying to implement this in an ASP.NET project, you need to post your question in the ASP.NET newsgroup. Your concurrency issues are specific to ASP.NET and thus you will only
Die Anforderung ist die, dass die bestehende ASP-Anwendung langsam abgel = F6st werden soll durch ASP.net - und eventuell Silverlight. Kann mir dazu vielleicht jemand bitte ein paar Tipps geben ?? Danke schon mal - und sch = F6nen Gru = DF Michael ASP.NET - German Discussions Silverlight (1) ASP NET (1) WPF (1) Dialog (1) Visual (1) Grid (1) DCberlegung (1) JavaScript (1) Hallo M., M?glich Ja, ob sinnvoll, sei mal dahingestellt. Classic ASP ist wie ASP.NET eine rein serverseitige Technologie. Silverlight clientseitig. Miteinander kommunizieren k?nnen diese beiden Sachen also maximal
ist .NET Framework Hall?schen, ich freue mich auf den Tag, in dem es ?ber ASP.NET genausoviel zu finden gibt wie ?ber ASP-Classic . . . schnief . . . Wie kann ich bei diesen Codezeilen de http: / / foto.lupusdw.de) Urlaub macht man in Irland: http: / / www.eaglesnest-bb.com / ASP.NET - German Discussions OleDb.OleDbDataAdapter (1) OleDb.OleDbCommand (1) OleDbType.VarChar (1) OleDbDataAdapter (1) NHibernate (1 If dt.Rows.Count > 0 Then . . . End if - - Tschau, Stefan Microsoft MVP - Visual Developer ASP / ASP.NET http: / / www.asp-solutions.de / - Consulting, Development http: / / www.aspnetzone.de / - ASP.NET Zone, die ASP.NET Community Am 22.01.10 11:06, schrieb Lupus Goebel: Muss