Solved

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

Posted on 2013-06-26
3
515 Views
Last Modified: 2013-06-28
I want to block www.example.com/user/login.aspx from being accessed from an external IP address of 1.2.3.4. Users at 1.2.3.4 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?
0
Comment
Question by:Wetjet
3 Comments
 
LVL 25

Accepted Solution

by:
Ron M earned 250 total points
ID: 39281529
...on the load event for the login.aspx page..

 If Request.UserHostAddress.ToString = "1.2.3.4" Then
            Response.Redirect("www.someurl.com")
        End If
0
 
LVL 11

Assisted Solution

by:Sanjay Santoki
Sanjay Santoki earned 250 total points
ID: 39283814
Hello,

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

;)

Regards,
Sanjay Santoki
0
 

Author Closing Comment

by:Wetjet
ID: 39285924
Thank you both of you.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now