Re: not serving certain extensions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 06/12/04


Date: Fri, 11 Jun 2004 20:29:49 -0700

If you do not want files to be served over the web, make sure that the
configuration files are not in the URL namespace, and IIS won't let it
download. However, scripts in the URL namespace now must intentionally reach
outside the namespace to access the configuration files. Depending on your
isolation constraints, this may/not be acceptable tradeoff.

You can also map a non-existent Scriptmap engine DLL to .cfg such that IIS
fail to serve the contents of the file when requested, and you can put the
.cfg files in the URL namespace such that other scripts in the URL namespace
can access them without violating isolation constraints.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Jeff Thies" <nospam@nospam.net> wrote in message
news:%2327ozq8TEHA.704@TK2MSFTNGP09.phx.gbl...
  I have some configuration files with a specific extension (.cfg). I want
scripts to be able to read these but not have this served publicly over the
web.
Is it possible to lock out certain extensions. I'd like to keep these in a
folder above the web document root, if possible.
  Jeff


Relevant Pages

  • Re: AIX vs Solaris
    ... rather than init scripts being a full ... restart systems depending on a failed but restarted system or ... the XML files provided with the OS are *not* ... configuration files; they are supposed to be as immutable as ...
    (comp.unix.admin)
  • Saving configuration files (was Re: FreeBSD Upgrade: Ports That Need Rebuilding)
    ... I keep all configuration files that I have changed myself in a tree ... Both scripts read a file with a list of what to install ... This repository and support scripts enables me to easily absorb changes ... so that mergemaster will skip them automatically. ...
    (freebsd-questions)
  • RE: Global.asa security under IIS 6.0
    ... shared hosting environment and the Hoster allows Full ... > known or unknown vulnerabilities in IIS. ... > improvements in security ...
    (Pen-Test)
  • Re: Saving configuration files (was Re: FreeBSD Upgrade: Ports That Need Rebuilding)
    ... rc.d, but the number of exceptions grows over time (/etc/X11/xorg.conf, ... I keep all configuration files that I have changed myself in a tree ... files have changed or installs them if they are out of ... Both scripts read a file with a list of what to install ...
    (freebsd-questions)
  • RE: Global.asa security under IIS 6.0
    ... Basically IIS will not return global.asa (and other configuration files) ... I am wondering about how much secure is the "global.asa" file in ASP. ...
    (Pen-Test)