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 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?
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
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
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
Just normal folder security. Remove the IUSR_xxxxx account from having
access to the folder with the files you want to protect. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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
|
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="/">
|
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.
|
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...
| |
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...
|
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
|
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
|
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:
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |