3 min read · Jun 15, 2023
--
Here is a step-by-step guide on how to block a website using Windows Firewall along with screenshots.
- Click on Windows Defender Firewall in Control Panel.
2. You will find the “Advanced Settings” option on the left pane. Just click it. A new window will appear.
3. The left pane displays the Inbound Rules and Outbound Rules rules.
The traffic that is permitted to the server on which ports and from which sources is determined by inbound firewall rules. Outbound firewall rules specify which ports and destinations are permitted for traffic to exit the server.
In this article, our main emphasis will be on outbound rules.
A list of rules appears when you click on Outbound Rules in the left pane.
4. To create a new rule, select “New Rule” from the right pane. The Wizard for New Outbound Rules will launch.
5. Click on Custom rule -> Next. You will reach Program Step -> Next. You will reach Protocol and Ports Step -> Next. When you get to the Scope stage, you must input the IP address of the website you want to block.
6. Let’s say, I want to block this website - Lorem Ipsum — All the facts — Lipsum generator. I need to find it’s IP address. To find IP address of any site, we can use nslookup command.
7. Now that we got IP address, we can add this to the dialog box. Select “These IP addresses” in “Which remote IP addresses does this rule apply to?” section and click on Add.
8. Click on Next. Select ‘Block the connection’.
9. Press Next. You’ll get to the Profile step. Choose Next. Give this rule a name, then click Finish. I have given “demo” name.
10. Now check if the rule has been applied or not by trying to access that site.
You should get error message “You internet access is blocked”. That means, you have successfully blocked the website.