How to Block Ping Sweeps

by B. Steele
Thinkstock Images/Comstock/Getty Images

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 enabled port forwarding, make sure that TCP port 445 is closed. Otherwise, the pings will still get through.


  • 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.


Photo Credits

  • Thinkstock Images/Comstock/Getty Images

About the Author

A writer and proofreader since 2006, B. Steele also works as an IT Help Desk analyst, specializing in consumer and business user tech support. She earned a B.A. in English and journalism from Roger Williams University. Steele also holds certifications as a Microsoft-certified desktop support technician, Microsoft-certified IT professional, Windows 7 enterprise support technician and CompTIA A+ IT technician.

More Articles