Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8338797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:42:18+00:00 2026-06-09T04:42:18+00:00

How to configure that a web service only be called by one specific web

  • 0

How to configure that a web service only be called by one specific web application? Both ones are in the same IIS server.
Framework: 2.0

I think that setting web.config of web service would be enough.
On this example, I’m setting web.config of web service. Web service will be called only by one IP address (127.0.0.1 is IP of IIS Server):

<location path="resources">
  <system.webServer>
    <security>
      <ipSecurity allowUnlisted="false">
        <clear/>
        <add ipAddress="127.0.0.1"/>
      </ipSecurity>
    </security>
  </system.webServer>
</location>

Would it be ok?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:42:20+00:00Added an answer on June 9, 2026 at 4:42 am

    If it’s only being called by one specific application on the same server, a Web Service may not be the right choice. It would make more sense for the code to be within a class in the same app. Web services are best suited for situations where multiple apps need to access the same functions.

    That said, with IPV6 coming, the option you thought of won’t work. If you’re really just trying to limit requests to apps that come from the same sever, in you can put the following in code to check to see if it’s coming from the local server:

    if(Request.IsLocal)
    {
      //code here
    }
    

    For simplicity’s sake, you can put the following in Application_BeginRequest in the global.asax file for the web services:

    if(!Request.IsLocal)
    {
      throw new Exception("Only local requests are allowed");
    }
    

    This will effectively fend off anything not coming from localhost.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

there was a web application, that you could configure so that over the api,
I'm looking for a java web framework that will allow you to configure dynamic
SUMMARY: How to configure a web service such that writing to the Event Log
I have a combobox, that I populate from a web service: public Configure() {
I am currently developing a web service that is configured to receive SMS text
I have an ASP.NET web application that is using forms authentication. Everything is configured
I'm trying to debug an ASP.NET webapp that's configured to Use Local IIS Web
We have a .NET 3.5 Web Service ( not WCF) running under IIS. It
I'm testing a web service that is running on Apache 2.2 and PHP 5.
I have web services written using java which interacts with the android application only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.