Ask a Question related to ASP.NET Security, Design and Development.
-
Atif Iqbal #1
How to secure files and directories in asp.net
Hi,
How can i secure files and directories in asp.net ..... i'm using form based
authentication to secure my asp.net pages but when any user directly access
(directly type url address in the webbrowser.) any other file like perl or
any text file in my application directory it allows user to access that file
.. how can i secure my directories and other files from being access.
TIA
atif
Atif Iqbal Guest
-
Secure PDF's merged into 1 document from 2 different Secure Files, possible?
I have multiple Secured PDF files that I have created. There is a possibility that my end user will need to merge multiple PDF files into 1 main PDF,... -
Upload files and directories
I am in dire need of a script that will upload everything from one server to another one that I can cron. Right now I have to do it by hand and... -
including files in other directories
I have some code running on windows on my local machine that uses the jpgraph image library. I include the jpgraph libs using include... -
how to rename 200 files in many sub-directories?
Hello, I have over 200 zip files in about 100 sub-directories of say c:\docs. Each zip file contains one MS Word doc file. The name of the doc... -
Comparing directories and files
I have directories with sub directories where the same files have been placed in both areas, with differing dates and updates. How can I "compare"... -
Jim Cheshire [MSFT] #2
RE: How to secure files and directories in asp.net
Atif,
ASP.NET Forms authentication will only secure content that is processed by
the aspnet_isapi.dll. If you need to replace other static file types (such
as text files), you can do that by mapping them to the aspnet_isapi.dll,
but you'll want to test that fully before deploying it to production apps.
For perl files, you're out of luck because they have to be processed by the
perl engine.
You can also consider having an ASP.NET page that redirects to the URL that
is passed to it. If the user is not authenticated via Forms auth, the
request will be denied. If they are, it will be accepted and your ASP.NET
page can redirect to the correct URL.
There are many approaches to this problem.
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
[email]jamesche@online.microsoft.com[/email]
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTF EED01.phx.gbl!TK2MSFTNGP08>From: "Atif Iqbal" <iatif@hotmail.com>
>Subject: How to secure files and directories in asp.net
>Date: Thu, 1 Apr 2004 11:33:24 +0500
>Lines: 13
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <u2Z7DN7FEHA.1912@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: lhr63.pie.net.pk 202.125.147.222
>Path:
..phx.gbl!TK2MSFTNGP10.phx.gblmicrosoft.public.dotnet.framework.aspnet.security: 9466>Xref: cpmsftngxa06.phx.gblbased>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Hi,
>
>How can i secure files and directories in asp.net ..... i'm using formfile>authentication to secure my asp.net pages but when any user directly access
>(directly type url address in the webbrowser.) any other file like perl or
>any text file in my application directory it allows user to access that>. how can i secure my directories and other files from being access.
>
>TIA
>
>atif
>
>
>Jim Cheshire [MSFT] Guest
-
Atif Iqbal #3
Re: How to secure files and directories in asp.net
Thanx for ur reply
but there must be a way to secure directories in asp.net .
can u plz guide me how to secure my directories so that no one can access my
directories
without an appropriate previliges. response.redirect is not the solution
i've used server.transfer
but it does not support perl files...
TIA
Atif
"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
news:GFkbWLCGEHA.1996@cpmsftngxa06.phx.gbl...(such> Atif,
>
> ASP.NET Forms authentication will only secure content that is processed by
> the aspnet_isapi.dll. If you need to replace other static file typesthe> as text files), you can do that by mapping them to the aspnet_isapi.dll,
> but you'll want to test that fully before deploying it to production apps.
> For perl files, you're out of luck because they have to be processed bythat> perl engine.
>
> You can also consider having an ASP.NET page that redirects to the URLcpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTF EED01.phx.gbl!TK2MSFTNGP08> is passed to it. If the user is not authenticated via Forms auth, the
> request will be denied. If they are, it will be accepted and your ASP.NET
> page can redirect to the correct URL.
>
> There are many approaches to this problem.
>
> Jim Cheshire, MCSE, MCSD [MSFT]
> ASP.NET
> Developer Support
> [email]jamesche@online.microsoft.com[/email]
>
> This post is provided "AS-IS" with no warranties and confers no rights.
>
> -------------------->> >From: "Atif Iqbal" <iatif@hotmail.com>
> >Subject: How to secure files and directories in asp.net
> >Date: Thu, 1 Apr 2004 11:33:24 +0500
> >Lines: 13
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <u2Z7DN7FEHA.1912@TK2MSFTNGP10.phx.gbl>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
> >NNTP-Posting-Host: lhr63.pie.net.pk 202.125.147.222
> >Path:access> phx.gbl!TK2MSFTNGP10.phx.gbl> microsoft.public.dotnet.framework.aspnet.security: 9466> >Xref: cpmsftngxa06.phx.gbl> based> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
> >
> >Hi,
> >
> >How can i secure files and directories in asp.net ..... i'm using form> >authentication to secure my asp.net pages but when any user directlyor> >(directly type url address in the webbrowser.) any other file like perl> file> >any text file in my application directory it allows user to access that>> >. how can i secure my directories and other files from being access.
> >
> >TIA
> >
> >atif
> >
> >
> >
Atif Iqbal Guest
-
Jim Cheshire [MSFT] #4
Re: How to secure files and directories in asp.net
Atif,
You have to remember that if you are trying to have an ASP.NET specific
feature protect your content (a feature such as ASP.NET Forms
authentication), it's only going to work for resources that are parsed
through the ASP.NET ISAPI filter. If ASP.NET does not process the request,
it cannot control access to the resource.
Because of this, you are going to have to use NTFS permissions or some
other authentication method that you devise to control access to your
resources.
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
[email]jamesche@online.microsoft.com[/email]
This post is provided "AS-IS" with no warranties and confers no rights.
--------------------<GFkbWLCGEHA.1996@cpmsftngxa06.phx.gbl>>From: "Atif Iqbal" <iatif@hotmail.com>
>References: <u2Z7DN7FEHA.1912@TK2MSFTNGP10.phx.gbl>microsoft.public.dotnet.framework.aspnet.security: 9485>Subject: Re: How to secure files and directories in asp.net
>Date: Fri, 2 Apr 2004 11:29:34 +0500
>Lines: 83
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#wYyjvHGEHA.1240@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>NNTP-Posting-Host: lhr63.pie.net.pk 202.125.147.222
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
>Xref: cpmsftngxa06.phx.gblmy>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>Thanx for ur reply
>
>but there must be a way to secure directories in asp.net .
>can u plz guide me how to secure my directories so that no one can accessby>directories
>without an appropriate previliges. response.redirect is not the solution
>i've used server.transfer
>but it does not support perl files...
>
>TIA
>Atif
>
>
>
>"Jim Cheshire [MSFT]" <jamesche@online.microsoft.com> wrote in message
>news:GFkbWLCGEHA.1996@cpmsftngxa06.phx.gbl...>> Atif,
>>
>> ASP.NET Forms authentication will only secure content that is processedapps.>(such>> the aspnet_isapi.dll. If you need to replace other static file types>> as text files), you can do that by mapping them to the aspnet_isapi.dll,
>> but you'll want to test that fully before deploying it to productionASP.NET>the>> For perl files, you're out of luck because they have to be processed by>that>> perl engine.
>>
>> You can also consider having an ASP.NET page that redirects to the URL>> is passed to it. If the user is not authenticated via Forms auth, the
>> request will be denied. If they are, it will be accepted and your8>cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT FEED01.phx.gbl!TK2MSFTNGP0>> page can redirect to the correct URL.
>>
>> There are many approaches to this problem.
>>
>> Jim Cheshire, MCSE, MCSD [MSFT]
>> ASP.NET
>> Developer Support
>> [email]jamesche@online.microsoft.com[/email]
>>
>> This post is provided "AS-IS" with no warranties and confers no rights.
>>
>> -------------------->>>> >From: "Atif Iqbal" <iatif@hotmail.com>
>> >Subject: How to secure files and directories in asp.net
>> >Date: Thu, 1 Apr 2004 11:33:24 +0500
>> >Lines: 13
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <u2Z7DN7FEHA.1912@TK2MSFTNGP10.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
>> >NNTP-Posting-Host: lhr63.pie.net.pk 202.125.147.222
>> >Path:>access>> phx.gbl!TK2MSFTNGP10.phx.gbl>> microsoft.public.dotnet.framework.aspnet.security: 9466>> >Xref: cpmsftngxa06.phx.gbl>> based>> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>> >
>> >Hi,
>> >
>> >How can i secure files and directories in asp.net ..... i'm using form>> >authentication to secure my asp.net pages but when any user directly>or>> >(directly type url address in the webbrowser.) any other file like perl>>> file>> >any text file in my application directory it allows user to access that>>>> >. how can i secure my directories and other files from being access.
>> >
>> >TIA
>> >
>> >atif
>> >
>> >
>> >
>
>Jim Cheshire [MSFT] Guest



Reply With Quote

