473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Web service security advice

huz
I need some advice, here is the situation: I have a web service (ASP 2.0)
published on IIS, how can i make that only trusted (my) web applications
consume it, and successfuly block all others???
Jul 14 '06 #1
2 2151
Hi,

A Few ways:

1) In IIS restrict the website by IP address allowing only machines that run
your code to access the web service.

2) Disallow anonymous authentication in IIS. Restrict acces to your ASMX
file allow only a specific user to access the ASMX file. In your consuming
application use CredentialsCache to pass NT user rights to the web service
when communicating with the server.

3) User certificates. In IIS, disallow anonymouse users...Issue a
certificate to your client machines you wish to give access to... In IIS Map
the cert to an NT user account that has access to the ASMX file. In your
application consuming the web service use WSE 3.0 to pass the cert to the
web service.

4) Kind of weak, but you can have your web methods take a 'security token'
as a parameter. Make the token a Guid. Share the Guid with the server and
the consuming app. Then the consuming app calls the web methods, pass the
Shared Guid. The web method must compare the passed Guid to make sure it is
the correct value, or throw an error. (many places use this... ebay...
amazon... google).

-DS
"huz" <an****************@gmail.comwrote in message
news:e9**********@news2.carnet.hr...
>I need some advice, here is the situation: I have a web service (ASP 2.0)
published on IIS, how can i make that only trusted (my) web applications
consume it, and successfuly block all others???

Jul 15 '06 #2
huz
David Sandor wrote:
Hi,

A Few ways:

1) In IIS restrict the website by IP address allowing only machines
that run your code to access the web service.

2) Disallow anonymous authentication in IIS. Restrict acces to your
ASMX file allow only a specific user to access the ASMX file. In
your consuming application use CredentialsCache to pass NT user
rights to the web service when communicating with the server.

3) User certificates. In IIS, disallow anonymouse users...Issue a
certificate to your client machines you wish to give access to... In
IIS Map the cert to an NT user account that has access to the ASMX
file. In your application consuming the web service use WSE 3.0 to
pass the cert to the web service.

4) Kind of weak, but you can have your web methods take a 'security
token' as a parameter. Make the token a Guid. Share the Guid with
the server and the consuming app. Then the consuming app calls the
web methods, pass the Shared Guid. The web method must compare the
passed Guid to make sure it is the correct value, or throw an error. (many
places use this... ebay... amazon... google).

-DS
Thanks, il try some of that, and see how it works...
>

"huz" <an****************@gmail.comwrote in message
news:e9**********@news2.carnet.hr...
>I need some advice, here is the situation: I have a web service (ASP
2.0) published on IIS, how can i make that only trusted (my) web
applications consume it, and successfuly block all others???

Jul 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: chausan | last post by:
Hi, In these 2 days I received many e-mail requesting me for doing upgrade with various microsoft components (examples below). But from what I know microsoft will generally not asking normal...
2
by: Juan Manuel Alegrķa B. | last post by:
Hi group I have been making a windows service to execute an external application. I use a timer control, I can execute the application but does't appear as a normal windows, just I see it in the...
0
by: Gabor | last post by:
Hi All, In my aspnet app. I'm using forms authentication. This site works on many intranet. On one place I got the crypto service provider error with the following stack trace, that I didn't...
4
by: razvan | last post by:
I need advice about adding security to a web service without using WSE, as the clients will run Win98.
8
by: Mardy | last post by:
I'm a long time asp developer but new to asp.net and web services. I have been asked to develop an asp.net application and I'm not sure if I should create it as a web forms app or a web service....
6
by: Eric Guthmann | last post by:
Hello all We have an SOA application that includes an ASP.NET webservice and WinForms client. My question is regarding the use of Add Web Reference in Visual Studio. The tool is nice because...
10
by: blurryimage | last post by:
Ok guys I have racked my brain on this one. I have a vb .net service installed on a win2k server. I am trying to get it to connect to sql 2000 box but I get this error: An error has occurred...
2
by: Joseph Geretz | last post by:
How do I implement security for my Web Service application? Specifically, I am concerned about protecting the data against prying eyes as it travels across the wire. Is it simply a matter of using...
7
by: Peter Bradley | last post by:
Hi, I'm writing a Web service (the first one I've ever written in anger, by the way) that has to do some AD manipulation and then has to create some directories on some remote servers. Doing...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.