Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

not serving certain extensions

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  error event in the application log :\  
Author Message
nospam54

External


Since: Feb 06, 2004
Posts: 13



(Msg. 1) Posted: Fri Jun 11, 2004 2:44 pm
Post subject: not serving certain extensions
Archived from groups: microsoft>public>inetserver>iis (more info?)

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

 >> Stay informed about: not serving certain extensions 
Back to top
Login to vote
user1765

External


Since: Jun 09, 2004
Posts: 14



(Msg. 2) Posted: Fri Jun 11, 2004 3:11 pm
Post subject: Re: not serving certain extensions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm writing a small program to monitor IIS ... does anyone know of a way
to intentionally crash it?

 >> Stay informed about: not serving certain extensions 
Back to top
Login to vote
user1765

External


Since: Jun 09, 2004
Posts: 14



(Msg. 3) Posted: Fri Jun 11, 2004 3:11 pm
Post subject: Crash IIS??! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm writing a small program to monitor IIS ... does anyone know of a way
to intentionally crash it?
 >> Stay informed about: not serving certain extensions 
Back to top
Login to vote
anonymous131

External


Since: Oct 17, 2003
Posts: 720



(Msg. 4) Posted: Fri Jun 11, 2004 3:11 pm
Post subject: Crash IIS??! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Crash it or hang it?

crash: net stop w3svc
hang:
<%

Do While 1 = 1
Response.Write "Hang Me"
Loop

%>

doug
 >-----Original Message-----
 >I'm writing a small program to monitor IIS ... does
anyone know of a way
 >to intentionally crash it?
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: not serving certain extensions 
Back to top
Login to vote
user1765

External


Since: Jun 09, 2004
Posts: 14



(Msg. 5) Posted: Fri Jun 11, 2004 4:43 pm
Post subject: Re: Crash IIS??! [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Well, I'm wrinting a small VBS prog that uses msxml2.ServerXMLHTTP to
watch a URL on IIS...

I guess both of those examples will work Smile

doug wrote:

 > Crash it or hang it?
 >
 > crash: net stop w3svc
 > hang:
 > <%
 >
 > Do While 1 = 1
 > Response.Write "Hang Me"
 > Loop
 >
 > %>
 >
 > doug
 >
  >>-----Original Message-----
  >>I'm writing a small program to monitor IIS ... does
 >
 > anyone know of a way
 >
  >>to intentionally crash it?
  >>.
  >><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: not serving certain extensions 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 6) Posted: Fri Jun 11, 2004 11:29 pm
Post subject: Re: not serving certain extensions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.TakeThisOut@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
 >> Stay informed about: not serving certain extensions 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 7) Posted: Sat Jun 12, 2004 1:05 am
Post subject: Re: not serving certain extensions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Fri, 11 Jun 2004 11:44:12 -0400, "Jeff Thies" <nospam.DeleteThis@nospam.net>
wrote:

 > 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.

Put them outside the web folders and you can't dowload it directly.

Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: not serving certain extensions 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS 6 and 404 Serving ASP pages - I have installed Win Server 2003 and IIS 6, and I cannot serve standard ASP pages, it just returns a 404 error. I have enabled ASP in the Web Server Extensions, and re-installed IIS about 5 times now. It seems to have no problem serving ASP.NET pages..

IIS Not serving ASP.net pages - I'm running into an issue with my application where all of a sudden IIS will stop serving my asp.net pages. I run the IISState on the aspnet_wp.exe process ID. A lot of the threads say they're waiting on thread 17. Thread 17 says it's waiting for a..

IIS not serving ASP or ASPX - 2000 server, IIS 5.0 Will run html but not any asp or aspx. When I go to open the asp or aspx in a browser it does'nt recognize file type. Try using localhost will not run. Try path to root - will not run Error log: Event Type: Error Event Source: ASP.NE...

Serving a DOS application - Hi, I have an old DOS application that I want to make available over the intranet, where IIS 4 is the web server. All is running on Windows NT 4.0 My goal would be to let users receive on their web browsers the output that comes from running that..

IIS 5.1 Not serving ASP pages - Hi This seems to be a popular topic! Running XP Pro and trying to get a webserver up and going too. If it helps I have Norton Firewall and Internet Security (although have same problem if I disable these) Serves html pages but not asp When I type..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]