IIS Server Security - Browsing file using iis as web server.

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server Security > October 2004 > Browsing file using iis as web server.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Browsing file using iis as web server.
Papanii Okai

2004-10-26, 7:47 am

Hi guys,
I am a newbie when it comes to IIS. I am currently running
Windows XP Pro which runs IIS 5.1. I am having a little trouble when it
comes to CGI scripting. I have a program that dynamically generates html
WebPages whenever run. Within these pages I have a <a href="file on
drive">link</a> link to files on my local hard drive (specifically
pictures). But for some reason after the page is generated, when I press the
link to the file, it doesn't open. here is a example of the html code
used...

<a href ="file:///C:\pics\pics1\DSC03565.JPG"target="_blank">
<img src="file:///C:\pics\pics1\DSC03565_thumb.jpg">DSC03565.JPG
</a>

The funny thing is that if I take the file path
'file:///C:\pics\pics1\DSC03565.JPG' and put it in internet explorer it
opens up the image for me. Another strange thing is if I save the source of
the generated html page as another file it works for me. At first I thought
it was the program that was generating the page but if I put a url say
'www.Microsoft.com' it works for me. I really don't know how to proceed from
here. I have come to the conclusion that it is some setting in IIS because
if I run this on Apache, it works fine. Is there any setting to enable me
access files on a local drive this way? Does anyone have any ideas or
thought on this matter? Help will be greatly appreciated.

--Papanii


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com