473,386 Members | 1,706 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,386 software developers and data experts.

Securing XML files

I want to have a folder with XML files that I don't want to be publically
accessible but I want my application to be able to read. My initial thoughts
are to stick the files outside the web tree but IIS 6 doesn't allow allow
parent path with server mappath. I don't want to enable it but I don't want
semi-hardcoded paths either. Does anyone have any suggestions?
Jan 29 '07 #1
2 1092
Place them in the App_Data directory.
If you don't have one, create it and modify your path to the files accordingly.

Direct requests for your XML files will be refused if they're in that directory,
although they will still be accessible by your application.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Chris" <no****@nospam.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>I want to have a folder with XML files that I don't want to be publically accessible but I want my
application to be able to read. My initial thoughts are to stick the files outside the web tree but
IIS 6 doesn't allow allow parent path with server mappath. I don't want to enable it but I don't
want semi-hardcoded paths either. Does anyone have any suggestions?

Jan 29 '07 #2
put them in the app_data folder. it was designed for this.

-- bruce (sqlwork.com)

Chris wrote:
I want to have a folder with XML files that I don't want to be publically
accessible but I want my application to be able to read. My initial thoughts
are to stick the files outside the web tree but IIS 6 doesn't allow allow
parent path with server mappath. I don't want to enable it but I don't want
semi-hardcoded paths either. Does anyone have any suggestions?

Jan 29 '07 #3

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

Similar topics

4
by: Jennifer Smith | last post by:
Here is the situation: My client has purchased 'software' - it really is just a series of html documents. I need to ensure that these pages are protected and only those who log in can view...
1
by: win2kcowboy | last post by:
Using VS2003, ASP.NET 1.1 Is it possible to secure files normally placed as attachments (such as word docs etc.) and often placed in attachment directories within your web application, using...
7
by: Tom | last post by:
Can anyone give me any advice on how to secure a folder on a network server so that documents in the folder can only be opened through an Access database or by the database admin. I need to store...
2
by: Ian B | last post by:
This is a basic question for anyone who knows what they're doing with web server admin so hopefully someone will be able to assist me here!... I have a www based asp.net application which allows...
7
by: Nick Gilbert | last post by:
Hi, As part of a website (ASP.NET) we're creating, we need the ability to store documents with pretty much 'mission critical' security. ie, if the server is completely compromised (eg a...
9
by: Brian Russell | last post by:
I develop Web applications locally on my Windows XP (SP1) laptop using Visual Studio. My company is concerned about security, especially if the laptop is compromised, so I should either encrypt...
2
by: the friendly display name | last post by:
Is there a way to secure images, .zip files, html files and other non asp.net files through forms authentication? It looks like ASP.NET does only secure ..aspx and .ascx files. I know, there is...
4
by: Stephen Poley | last post by:
Whenever anyone has a question about securing an Access database he/she is usually referred (unsurprisingly) to the Security FAQ. This is however incomplete/unclear with respect to databases with a...
2
Frinavale
by: Frinavale | last post by:
Hello everyone! I'm having a problem securing my connection string. There are a lot of sites out there that explain how to secure a connection string in the Web.config or App.config file;...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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.