System Status
Buy Now
  • Email & Apps
  • Office 365
Login
  • MyRackspace Portal
  • Cloud Control Panel
  • Rackspace Webmail Login
  • Cloud Office Control Panel
  • Support Home
  • How-To
  • Developer Documentation
  •  Blogs 
    • Expert Insights Tech Blog
    • Rackspace Blog
    • Solve: Thought Leadership

Support Network

End-to-End Multicloud Solutions.   Solving Together.â„¢   Learn more at Rackspace.com

How–To Home

Cloud Servers

  • Introduction
  • FAQ
  • All Articles

Block an IP address on a Windows Server

Last updated on:  2021-03-31

Authored by:  Travis Gentry


This article describes how to block an IP address on a Windows Server by using the Windows Firewall.

Limitations

Windows Firewall needs to be running on the server. To ensure the Windows Firewall is running, perform the following steps:

  1. Click Start, type control panel, and click Enter.
  2. Click Windows Defender Firewall > Turn Windows Defender Firewall on or off.

Note: You must have administrative privileges for the server to modify the Windows Firewall.

Create a Windows Firewall Rule to Block the IP

  1. Log in to the server on which you need to block the IP address.

  2. Click Start, type Windows Firewall with advanced security, and press Enter.

  3. In the left-hand pane, click Inbound Rules to show the currently configured rules in the middle pane.

  4. In the right-hand pane, click Actions >New Rule….

    • For Rule Type, select Custom and click Next.
    • For Program, select All programs and click Next.
    • For Protocol and Ports, select Any from the Protocol Type dropdown and click Next.
    • For Scope:
      • under Which remote IP addresses does this rule apply to?, select the radial option: These IP addresses:.
      • Click Add….
      • Enter the IP address that you want to block from the server and click OK. You can also choose to block a range of IP addresses by selecting the This IP address range: radial option.
  5. After you finish adding the IP addresses, click Next.

  6. For Action, select Block the connection and click Next.

  7. For Profile, leave all options checked and click Next.

  8. For Name, give the rule a descriptive name, such as Blacklisted IPs. You can also enter an optional description of the rule.

  9. Click Finish.

The newly created rule with the given name now displays in the middle Inbound Rules pane. To order the rules alphabetically by name, you can click on the Name column header.

If you need to disable the rule, right-click on the rule in the list and click Disable Rule.

If you need to modify the scope of IP addresses for the rule, right-click the rule in the list and click Properties. Then click the Scope tab, make necessary changes, and click Apply.

Related articles

  • Manage the Windows Server 2012 Firewall

  • Windows Server Security Best Practices

  • Best Practices for Firewall Rules Configuration

  • Using Security Groups

Share this information:

©2020 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

See license specifics and DISCLAIMER

About Rackspace
  • About
  • Customer Stories
  • Events
  • Programs
Blogs
  • The Rackspace Blog
  • Expert Insights Tech Blog
  • Solve: Thought Leadership
  • News
  • Contact Information
  • Legal
  • Careers
Site Information
  • Style Guide for Technical Content
  • Trademarks
  • Privacy Statement
  • Website Terms
Support Network
  • Support Network Home
  • Rackspace How-To
  • API Documentation
  • Developer Center
  • ©2020 Rackspace US, Inc.