locked
How i Hide Web service RRS feed

  • Question

  • User1289817626 posted

    how i hide webservice 

    after uploading website to domain

    if i type www.example.com/webservice.asmx 

    it showing my webservice 

    how i stop this ... 

    Friday, May 3, 2013 4:55 AM

Answers

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 3, 2013 5:15 AM
  • User-1000095884 posted

    Hi,

    As suggested by Zinnia, if you just want to show the service information from browsing the test page, you can simply disable the test page in the web.config of the service with following code.

    <webServices>
    <protocols >
    <remove name="HttpGet"/>
    <remove name="HttpPost"/>
    <remove name="HttpPostLocalhost"/>
    </protocols>

    Best Reagards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 6, 2013 8:12 AM
  • User-488622176 posted

    Hinding data is a very bad security measure. You should apply security such as authentication to prevent random users from accessing the webservice.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 6, 2013 3:51 PM

All replies

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 3, 2013 5:15 AM
  • User-1000095884 posted

    Hi,

    As suggested by Zinnia, if you just want to show the service information from browsing the test page, you can simply disable the test page in the web.config of the service with following code.

    <webServices>
    <protocols >
    <remove name="HttpGet"/>
    <remove name="HttpPost"/>
    <remove name="HttpPostLocalhost"/>
    </protocols>

    Best Reagards.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 6, 2013 8:12 AM
  • User-488622176 posted

    Hinding data is a very bad security measure. You should apply security such as authentication to prevent random users from accessing the webservice.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 6, 2013 3:51 PM
  • User1124521738 posted

    you can't

    but you can enable authentication (windows or one of the many membership providers) in your site that prevents anonymous access

    Monday, May 6, 2013 4:01 PM