Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Re: Prohibiting access to web service resources?

 
Thread Tools Search this Thread
Old 11-07-2009, 03:11 AM   #1
Default Re: Prohibiting access to web service resources?



"Peter Olcott" <> wrote in message
news: ...
>I want to build my first web service and I need to know more about
>security.
> (I already posted to microsoft.public.dotnet.framework.aspnet.security
> with no response).
>
> Specifically, I want to make it completely impossible for any outside user
> to have any access to any of the files stored on the web server. This is
> to include any data files, and the web service code. How do I do this?


Every public web server strives to be secure, but that doesn't mean there is
any foolproof way to keep a hacker out. The best you can do is do the best
you can do.

If you were going to host a web service on a Windows web server, you'd most
likely be serving it via IIS. Data files in ASP .NET are typically best
placed in the App_Data folder, which is a folder that IIS knows not to grant
outside access to. Your web.config file (or any file with a .config
extension) is also not served by IIS, and in a production environment, you
wouldn't have your source code (your .vb or .cs files) up on the server
anyway, you'd just have your compiled assembly (.dll), which is also kept in
a protected directory.

So, you really don't have to worry about the sensitive folders and files of
your web service being accessible to the outside world any more than you'd
worry about your entire server being hacked, which is not a .NET issue, but
a server security issue.

-Scott




Scott M.
  Reply With Quote
Old 11-07-2009, 02:28 PM   #2
Scott M.
 
Posts: n/a
Default Re: Prohibiting access to web service resources?

"Peter Olcott" <> wrote in message
news:qfednY-...
>
> "Scott M." <s-> wrote in message
> news:...
>>
>> "Peter Olcott" <> wrote in message
>> news: ...
>>>I want to build my first web service and I need to know more about
>>>security.
>>> (I already posted to microsoft.public.dotnet.framework.aspnet.security
>>> with no response).
>>>
>>> Specifically, I want to make it completely impossible for any outside
>>> user to have any access to any of the files stored on the web server.
>>> This is to include any data files, and the web service code. How do I do
>>> this?

>>
>> Every public web server strives to be secure, but that doesn't mean there
>> is any foolproof way to keep a hacker out. The best you can do is do
>> the best you can do.
>>
>> If you were going to host a web service on a Windows web server, you'd
>> most likely be serving it via IIS. Data files in ASP .NET are typically
>> best placed in the App_Data folder, which is a folder that IIS knows not
>> to grant outside access to. Your web.config file (or any file with a
>> .config extension) is also not served by IIS, and in a production
>> environment, you wouldn't have your source code (your .vb or .cs files)
>> up on the server anyway, you'd just have your compiled assembly (.dll),
>> which is also kept in a protected directory.
>>
>> So, you really don't have to worry about the sensitive folders and files
>> of your web service being accessible to the outside world any more than
>> you'd worry about your entire server being hacked, which is not a .NET
>> issue, but a server security issue.
>>
>> -Scott
>>

>
> Great how do I make files and folders inaccessible?


Did you not read my message? Your App_Data folder, .dll and .config files
are already protected by IIS. And, you would't publish your source code
files to the production server anyway. There's nothing you need to do to
make this stuff private.

Aside from this, you want to keep the server password private and emply a
strong hardware and software firewall scenario as you would on any
production public server.

-Scott




Scott M.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access website with IE7 on Windows Vista patriot8813 Computer Support 8 05-14-2007 08:38 PM
MS AntiSpywareBeta.exe Windows Installer Service could not be accessed Orak Listalavostok Computer Security 33 01-10-2005 07:44 PM
Re: windows 2000 sp4 is a must PhilGreg Computer Support 0 07-17-2003 04:38 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46