Page level, IP based security...

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
 
N

Nathan Baulch

You can configure the permitted IP addresses within IIS.

On a page by page basis?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top