473,796 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How protect non aspx files using Forms Authentication?

Using Forms Authentication, users can't get to my .aspx pages but they can
get directly to, for example, Setup.exe.

What setting can I use to protect ALL files within my app from hackers until
they login?

My web.config currently looks like this:

<authenticati on mode="Forms">

<forms loginUrl="frmLo gin.aspx" />

</authentication>

<authorizatio n>

<deny users="?" />

</authorization>

Thanks!

Ron Cook
Jan 30 '06 #1
5 2050
Hi Ron, some options.

Use NT authentication instead.

Or tell your web server not to serve EXE files.

Put items you don't want served in another folder. This can be a
subfolder in your app, just ensure that your web account doesn't have
access to that folder.

Also (someone remind me) can you configure individual page loading
options in the Global.asax? I know you can config for application and
session start and ends, what about pages as well?

Jan 31 '06 #2
On Mon, 30 Jan 2006 16:41:41 -0700, "Ronald S. Cook"
<rc***@westinis .com> wrote:
Using Forms Authentication, users can't get to my .aspx pages but they can
get directly to, for example, Setup.exe.

What setting can I use to protect ALL files within my app from hackers until
they login? [snip]

Put all the files you don't want the users to be able to access in a
folder and allow only logged on users to access that folder.
Thanks!

Ron Cook


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Jan 31 '06 #3
On Mon, 30 Jan 2006 21:07:08 -0600, Otis Mukinfus
<ph***@emailadd ress.com> wrote:

Well I said that kinda backwards didn't I? Restrict the users from
the folder that has the file you don't want them to access :o[
On Mon, 30 Jan 2006 16:41:41 -0700, "Ronald S. Cook"
<rc***@westini s.com> wrote:
Using Forms Authentication, users can't get to my .aspx pages but they can
get directly to, for example, Setup.exe.

What setting can I use to protect ALL files within my app from hackers until
they login?

[snip]

Put all the files you don't want the users to be able to access in a
folder and allow only logged on users to access that folder.
Thanks!

Ron Cook


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Jan 31 '06 #4
Cool, but how?

Thanks!
Ron

"Otis Mukinfus" <ph***@emailadd ress.com> wrote in message
news:na******** *************** *********@4ax.c om...
On Mon, 30 Jan 2006 21:07:08 -0600, Otis Mukinfus
<ph***@emailadd ress.com> wrote:

Well I said that kinda backwards didn't I? Restrict the users from
the folder that has the file you don't want them to access :o[
On Mon, 30 Jan 2006 16:41:41 -0700, "Ronald S. Cook"
<rc***@westin is.com> wrote:
Using Forms Authentication, users can't get to my .aspx pages but they
can
get directly to, for example, Setup.exe.

What setting can I use to protect ALL files within my app from hackers
until
they login?

[snip]

Put all the files you don't want the users to be able to access in a
folder and allow only logged on users to access that folder.
Thanks!

Ron Cook


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com


Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com

Jan 31 '06 #5
Just normal folder security. Remove the IUSR_xxxxx account from having
access to the folder with the files you want to protect.

Jan 31 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1805
by: travelling_nerd | last post by:
Folks: I have some zip files I'd like to serve to authenticated users on my site, but would like to prevent unauthorized users from using an absolute path to get to these zip files. For example http://blah.com/file.zip should not be accessible directly without authenticating. However, my current authenticaion goes to an LDAP server and I'd rather not prompt users for another username and password.
2
2511
by: feng | last post by:
Right now I have my login.aspx protects all the pages in my web application. This is done through the following configuration: <authentication mode="Forms"> <forms name="MyWeb" path="/" loginUrl="Login.aspx" protection="All" timeout="30"> </forms> </authentication> But now what I need is to exclude one page from this
1
1778
by: www.MSmobiles.com | last post by:
Hi! I am using something like this in web.config : <authentication mode="Forms"> <forms name=".MSMOBILES_COM___COOKIE" loginUrl="login.aspx" protection="All" timeout="30" path="/">
1
1826
by: Sam | last post by:
I have successfully created authentication via web.config however I discovered some security issues as follows: 1. ASPX Security I have web application via asp.net and it is consist of following sections: i. Administration ii. Attendance iii. Reporting Each section has it own authorise user and it should not cross over.
2
1246
by: Craig | last post by:
I have a folder within my web application that holds a bunch of word documents. I have security setup to use forms authentication. If I try and access a .aspx page that is not listed in my web.config file to allow anonymous users, it will redirect appropriately. However, if I try and access one of the word documents, it can be accessed through a web browser even if the user is not logged in. Is this intended to be this way? Why are...
4
2577
by: sunniyeow | last post by:
Hi, My question is regarding password protecting 2 different folders inside a single virtual directory using forms authentication method. Easier if I illustrate things out... - <authentication mode="Forms"> - Virtual Directory aka Top Level Root = /mysite - Inside /mysite I have 2 sub-folders which I want to password protect = /adminonly and /memberonly - /adminonly is assigned to a single Admin user with a hard-coded pair of username...
7
2452
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms authentication. I would like to configure it so that anyone not logged in, trying to access the protected part will not be redirected to the login page, but
1
1680
by: Ronald S. Cook | last post by:
In my ASP.NET 2.0 Web app, I want to make some files inaccessible to unauthenticated users. Using Forms Authentication, this works fine for ..aspx pages, but not for regular old .htm pages. How do I protect these? Thanks, Ron
1
1836
by: djnokturnal | last post by:
Hey guys/gals, I have successfully implemented forms authentication on my site: <authentication mode="Forms"> <forms loginUrl="/Members/Login.aspx" timeout="20" defaultUrl="/Members/Welcome.aspx" protection="All" requireSSL="false" path="/" /> </authentication> Now I would like to restrict certain subfolders within /Members by Role. I have the following roles for testing:
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.