Block certain IPs from accessing site...

Discussion in 'ASP.NET / ASP.NET Core' started by lukesb, Dec 7, 2009.

  1. Hi

    I would like to block certain IP address from my site. Can anyone help with this..?

    I would also like, if possible, to maybe block all IP address and only allow ones in a list I have. Could anyone help on this method also..?

    Cheers..!

    Luke
     
  2. This is very possible.

    If you're in IIS6, you can let support know what IPs you want to block, or which ones you want to whitelist if anything. They'll have to add them for you.

    If you're on IIS7, you can use the IIS Manager to connect and block/whitelist IPs from your end, which would obviously be more convenient if the IPs constantly change.
     
  3. Hi Tam

    Thanks for that...

    Unfortunately, you lost me on if you're on IIS6... :D:confused::D

    How can I tell..? And what would I do from then..?

    Thanks for your help..!

    Luke
     
  4. You can tell by going in the Control Panel to the Account Info/Edit page [https://my.discountasp.net/account-info.aspx], and you'll see your sever version next to 'Web Server Type' under the Server Information section.

    If it's IIS6, let support know what IPs you want blocked, or which ones you want white listed. Basically let them know what you want done.

    If you're on IIS7, you will need to download the client to connect:

    https://support.discountasp.net/KB/a400/how-to-connect-to-windows-2008iis-7-using-microsoft.aspx

    Once you've connected, you will see the option 'IPv4 Address and Domain Restrictions' which allows you to add entries for both allowing and denying this specific page or folder to certain addresses. This is used for both blocking or allowing IPs to enter your web application or a specific folder or file.
     
  5. IIS7!!! :cool:

    Thanks for the heads up on all that Tam. I'm downloading the client now...

    Thanks for your help..!

    Cheers

    Luke
     

Share This Page