How to protect web files from direct access by client in windows 2

How to protect web files from direct access by client in windows 2

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
How to protect web files from direct access by client in windows 2 =?Utf-8?B?QUphbmc=?= 09-05-2005
Posted by =?Utf-8?B?QUphbmc=?= on September 5, 2005, 5:28 am
If you were  Registered and logged in, you could reply and use other advanced thread options
In windows 2000, we can map file extention ".mdb" to 404.dll to protect
microscodt access databases from direct access by client.

In Windows 2003 server, the above method do not work. In fact we can't
install 404.dll.
In Machine.Config, we add
<add verb="*" path="*.mdb" type="System.Web.HttpForbiddenHandler" />
in <httpHandler> section,it still do not work.

Can some one tell me how to protect *.mdb file ?

Thanks







Posted by Duane Laflotte on September 6, 2005, 9:30 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Ajang,
I would say that the best way to protect it is to not put it in the
virtual root. I hack web servers for a living (White Hat). So I can tell
you that most of the time even remapping the extension to something like 404
isnt going to hold a hacker out for long. I would say your best bet is to
move it to another directory not under the web roots. Then have your ODBC
or DB connections point to that directory for the database. This way there
is no way for the outside users to get the DB by URL but your app still has
access to it. Also keep in mind that the user the website runs under will
need access to that directory as well.
Just my suggestion,
Duane


--
Duane Laflotte
MCSE, MCSD, MCDBA, MCSA, MCT, MCP+I
dlaflotte@criticalsites.com
http://www.cyberspacesamurai.com


> In windows 2000, we can map file extention ".mdb" to 404.dll to protect
> microscodt access databases from direct access by client.
>
> In Windows 2003 server, the above method do not work. In fact we can't
> install 404.dll.
> In Machine.Config, we add
> <add verb="*" path="*.mdb" type="System.Web.HttpForbiddenHandler" />
> in <httpHandler> section,it still do not work.
>
> Can some one tell me how to protect *.mdb file ?
>
> Thanks
>
>
>
>
>
>



Posted by Jeff Cochran on September 9, 2005, 8:55 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
On Mon, 5 Sep 2005 02:28:16 -0700, "AJang"

>In windows 2000, we can map file extention ".mdb" to 404.dll to protect
>microscodt access databases from direct access by client.
>
>In Windows 2003 server, the above method do not work. In fact we can't
>install 404.dll.
>In Machine.Config, we add
><add verb="*" path="*.mdb" type="System.Web.HttpForbiddenHandler" />
>in <httpHandler> section,it still do not work.
>
>Can some one tell me how to protect *.mdb file ?

Keep it outside the web hierarchy and it won't be directly accessible.
Use an account other than the anonymous user account to access this to
make it harder to guess permissions. Also, use URLScan to block the
MDB extension in requests. You can rename the MDB file and still open
it from ASPX by providing the full name and extension, so that's an
option as well.

Jeff

Similar ThreadsPosted
Re: someone has direct access to my hard drive ,how to remove it? April 11, 2006, 6:43 pm
Re: someone has direct access to my hard drive ,how to remove it? April 11, 2006, 7:53 pm
RE: someone has direct access to my hard drive ,how to remove it? April 12, 2006, 3:43 am
Re: Set all files on Windows XP to a specified create & access date October 7, 2005, 9:43 pm
windows update direct X July 15, 2005, 1:46 am
Password protect files that can be edited August 15, 2007, 7:46 pm
VPN Client and Machine Certificates for Unattanded VPN access September 11, 2007, 11:28 am
Client Wireless Set To PEAP But Need Access To Public AP's Also February 21, 2007, 10:48 am
unable to connect to windows firewall ant-virus wont auto protect July 30, 2005, 10:21 am
IPSec client for Windows Mobile 2003 May 15, 2006, 10:58 am

The site map in XML format XML site map

Contact Us | Privacy Policy