Solved

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

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

831 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