• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 555
  • Last Modified:

Block single .aspx page from being accesses from a single public IP

I want to block www.example.com/user/login.aspx from being accessed from an external IP address of Users at still need to be able to access www.example.com/user and all other pages in that sub folder, just not login.aspx. Can this be accomplished?
2 Solutions
Ron MalmsteadInformation Services ManagerCommented:
...on the load event for the login.aspx page..

 If Request.UserHostAddress.ToString = "" Then
        End If
Sanjay SantokiCommented:

You can achieve it if you have IP address and Domain restrictions feature is installed in IIS role. Install if it is not installed and follow below simple steps to achieve your requirements;

Open IIS Manager -> Expand www.example.com -> users -> changed to content view which will show you list of files located under users folder -> right click on login.aspx -> switch to features view -> IP Address and Domain Restrictions -> from the Action pane select Add deny entry


Sanjay Santoki
WetjetAuthor Commented:
Thank you both of you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now