Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blocking list of IP addresses in ASP.NET web application/website

I have a group of IP addresses.

After deploying my application, I want to only be able to access my application from a particular IP address.

How can I achieve this using the Global.asax (not through IIS)?

like image 296
Nithin Viswanathan Avatar asked Nov 02 '22 23:11

Nithin Viswanathan


1 Answers

This is a good starting point for you

(especially as it's separated nicely into a HttpModule for subsequent re-use)

like image 75
Nathan Avatar answered Nov 11 '22 20:11

Nathan