How to Block Ping Sweeps

by B. Steele

When you conduct a "ping sweep," you send an Internet Control Message Protocol (ICMP) echo request to a range of Internet Protocol (IP) addresses to determine if the host computers at those addresses have network connectivity. While a ping sweep is a useful troubleshooting tool in a business network, malicious users can also use it to flood and incapacitate networks with these requests. Therefore, many Network Administrators, and even security-conscious home users, protect against such attacks by blocking incoming echo requests (pings) from sources outside their networks. For the home user, the easiest way to accomplish this is via the Windows Firewall.

Step 1

Log into Windows using an administrator-level account.

Step 2

Press and hold the Windows key (located between the Ctrl and Alt keys) and the "R" key.

Step 3

Type "wf.msc" in the box (no quotation marks), and press "Enter."

Step 4

Right-click the "inbound rules" link in the left pane, and then click "New rule" from the context menu.

Step 5

Select the "Custom" radio button, and click "Next."

Step 6

Select "All Programs" and click "Next."

Step 7

Choose ICMPv4 as your protocol type, and click "Next."

Step 8

Click the "Customize" button.

Step 9

Choose "echo request" as the "Specific ICMP type."

Select "Block."


  • If you have a router, it probably has a firewall built in, accessible via a web interface. Common IP addresses for router web consoles are and Once logged in, you can block incoming echo requests at the perimeter of your home network, protecting every computer behind it.


  • If you have enabled port forwarding, make sure that TCP port 445 is closed. Otherwise, the pings will still get through.

Video of the Day

Brought to you by Techwalla
Brought to you by Techwalla

More Articles