Page level, IP based security...

  • Thread starter Thread starter Nathan Baulch
  • Start date Start date
N

Nathan Baulch

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
 
Back
Top