473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Files(html) in folder permission in ASP.NET

VK
Hello:

This is an ASP.NET app - once user logs in using username and password
(kind of hard coded, since it is temporary solution) they have access to
a series of html files. What happens is that these html files are
accessible even without logging by trying in the url directly.

Is there a way to secure this folders, since these different html will
be in multiple folders?

I cannot use forms authentication since we have current website set up
as Windows auth.

Many thanks for your time.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #1
4 1160
Try NTFS permissions

"VK" wrote:
Hello:

This is an ASP.NET app - once user logs in using username and password
(kind of hard coded, since it is temporary solution) they have access to
a series of html files. What happens is that these html files are
accessible even without logging by trying in the url directly.

Is there a way to secure this folders, since these different html will
be in multiple folders?

I cannot use forms authentication since we have current website set up
as Windows auth.

Many thanks for your time.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 22 '05 #2
Ash
You can try the old session asp way, it might be simpler. The way i do it in
asp is

security.asp
IF NOT AUTHENTICATED THEN
PAGE.REDIRECT to login.asp

login.asp
IF username AND password are correct THEN
Session("AUTHENTICATED")=TRUE

secure_page_1.asp
<!--#include file="security.asp"-->

secure_page_2.asp
<!--#include file="security.asp"-->
......

Now if they try to go directly to any of the secure pages they will be
redirected to the login screen as the session variable will not be set.
I like that because if i want to make some code available in all the pages i
put it in security.asp

"VK" wrote:
Hello:

This is an ASP.NET app - once user logs in using username and password
(kind of hard coded, since it is temporary solution) they have access to
a series of html files. What happens is that these html files are
accessible even without logging by trying in the url directly.

Is there a way to secure this folders, since these different html will
be in multiple folders?

I cannot use forms authentication since we have current website set up
as Windows auth.

Many thanks for your time.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 22 '05 #3
VK
Hi all - Found an easier solution - you can use a free IISPassword s/w
to solve this poroblem.

Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #4
VK
Hi all - Found an easier solution - you can use a free IISPassword s/w
to solve this poroblem.

Thanks.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #5

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

Similar topics

3
by: VK | last post by:
Hello: This is an ASP.NET app - once user logs in using username and password (kind of hard coded, since it is temporary solution) they have access to a series of html files. What happens is...
7
by: BB | last post by:
Hi, How do you retrieve the names of all files in a folder. I am trying to execute a piece of code on all files in a folder supplied to the program in the argument list. What are the c++ commands...
5
by: Steffen Loringer | last post by:
Hi group, may be a simple question: How can I find out in C, which files of a specified extension exist in a specified folder? My app should constantly look for a file with an known extension...
0
by: richardkreidl | last post by:
Let's say I have the following folder: C:\Archive\Data\Logs\ and within this folder are many files in this format: Cycle Run of Tuesday, February 01, 2005.html Cycle Run of Wednesday, February...
3
by: richardkreidl | last post by:
I have the following module that I delete old files based on how old they are: Sub Main() Dim First_Date As String = Date.Today.AddDays(-7) Dim Archive_Files() As String =...
0
by: a338029 | last post by:
Hi, My requirement is like we need to upload the files from our application. The upload should be through Application only and no one can access the folder using window explorer. This is a dot...
5
by: akmsikhan | last post by:
I am using a Toshiba Satellite M115 Series Laptop. Recently I was trying to see some hidden files but I can't. When I try to enable Show Hidden Files and Folder it is not enabling. Each time I click...
14
by: prashant | last post by:
hello, I am looking to determine the number of image files in a folder so that I could create a dynamic table accordingly. For this i need a method to identify the number of files in a folder. Is...
4
by: kanishka1213 | last post by:
i am trying to make a script that recognizes all unparsed stream files from folder and runs an external tool in windows system to parse them. so far i am able to call that tool for all unparsed...
3
by: bnashenas1984 | last post by:
Hi everyone Can anyone tell me what folder permission I should have for the folder containing MySQL passwords. I have a directory which contains a PHP file with MySQL password. This file gets...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.