Page level, IP based security...

Discussion in 'ASP .Net' started by Nathan Baulch, Jul 21, 2003.

  1. I have a Web Project containing two WebForms and one WebService.
    What's the best way to limit who is able to access those three items?
    I want the first WebForm to only be accessible by locahost, the WebService
    to only be accessible by a certain predefined IP and the second WebForm to
    be accessible by anyone.

    I could look at Request.UserHostAddress in the Page_Load events of my pages,
    but I would prefer to manage access in a more centralised location higher up
    the tree.
    Is Application_BeginRequest an appropriate place to be doing this?


    Nathan
    Nathan Baulch, Jul 21, 2003
    #1
    1. Advertising

  2. You can configure the permitted IP addresses within IIS.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net


    "Nathan Baulch" <> wrote in message
    news:...
    > I have a Web Project containing two WebForms and one WebService.
    > What's the best way to limit who is able to access those three items?
    > I want the first WebForm to only be accessible by locahost, the WebService
    > to only be accessible by a certain predefined IP and the second WebForm to
    > be accessible by anyone.
    >
    > I could look at Request.UserHostAddress in the Page_Load events of my

    pages,
    > but I would prefer to manage access in a more centralised location higher

    up
    > the tree.
    > Is Application_BeginRequest an appropriate place to be doing this?
    >
    >
    > Nathan
    >
    >
    Steve C. Orr, MCSD, Jul 21, 2003
    #2
    1. Advertising

  3. > You can configure the permitted IP addresses within IIS.

    On a page by page basis?
    Nathan Baulch, Jul 21, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jéjé
    Replies:
    0
    Views:
    379
    Jéjé
    Jul 13, 2005
  2. pabbu
    Replies:
    8
    Views:
    720
    Marc Boyer
    Nov 7, 2005
  3. Alex Maghen

    Forms-Based Security below Application Level

    Alex Maghen, Feb 17, 2005, in forum: ASP .Net Security
    Replies:
    1
    Views:
    111
    ranganh
    Feb 22, 2005
  4. Kursat
    Replies:
    1
    Views:
    315
    Dominick Baier
    May 7, 2007
  5. Anthony
    Replies:
    0
    Views:
    149
    Anthony
    Aug 6, 2004
Loading...

Share This Page