Block A Website In Windows 10 Using Firewall

This article will show how to block a website in Windows 10 using Firewall. You can create an Outbound Rule to block website using its IP.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

If you’re managing a multi user system and you do not want to access users a specific website, this article is for you. Though, there is no direct setting to configure this. But in Windows 10, you can simply use Windows Defender Firewall to block a website.

All you need is the website IP address. Each website have its own IP address to which its server is pointed. You can get this IP address by pinging the website. Once you got the IP address, you’ve to create an Outbound Rule with Windows Defender Firewall, blocking that IP address and you’re done.

Here are the steps you need to perform.

Block A Website In Windows 10 Using Firewall

We’re illustrating this method by blocking twitter.com. You can apply it to any website.

1. Open Command Prompt. Type ping domain.tld and press enter key. Replace domain.tld with the website address you want to block.

Block A Website In Windows 10 Using Firewall

2. Notice the IP address of the website in command execution. We’ll be using this IP address to block the website.

3. Go to Control Panel > Windows Defender Firewall > Advanced Settings.

4. In Windows Defender Firewall with Advanced Security, right click on Outbound Rules and select New Rule.

Block A Website In Windows 10 Using Firewall

5. In New Outbound Rule Wizard window, select Rule type as Custom and hit Next.

Block A Website In Windows 10 Using Firewall

6. Then for Program section, select All programs. For Protocol and Ports, select default settings and move on.

7. Under Scope section, select These IP addresses and click Add. Type the IP address we got in step 2 and click OK. Click Next.

Block A Website In Windows 10 Using Firewall

8. In the Action section, select Block the connection, hit Next.

Block A Website In Windows 10 Using Firewall

9. Finish the rest of section with default and complete the wizard and reboot the system.

After rebooting the system, the website (you wanted to) should be blocked from access.

If you want to unblock the website later, simply delete the outbound rule.

You can also block website using hosts file, check out this video:

That’s it!

Related: Disable Windows Defender Firewall In Windows 10.

Share this article
https://www.kapilarya.com/block-a-website-in-windows-10-using-firewall

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.