Solved

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

Posted on 2013-06-26
3
528 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 Malmstead 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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setup small office network 1 54
Cisco Licensing for Wi Fi 4 41
Hostname printer change 8 66
Network adapter failed to start 5 33
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

685 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