Soulweave

Moderator
Verified
Content Creator
Staff member
As some users are not aware in how to block websites in Windows Firewall and due to a recent discussion about such topic, below is a guide in how to create rules to block websites in Windows Firewall:

Code:
1. Open Windows Firewall from the Control Panel;

2. Select Advanced Settings;

On windows 10 just search for Windows Firewall in the search bar and choose Windows Firewall with Advanced Settings

3. Select Inbound Rules from the left panel. Select New Rule from the right side (Action window);

4. Select Custom (Custom rule) and click Next;

5. All Programs should be selected and click Next;

6. Click next on the Protocols and Ports page (leave as it is);

7. In the scope page enter the IP (i.e. 192.168.1.1 but not www) address of the site you want to block in the "Which remote IP addresses does this rule apply to?" section;

8. Select Block the connection on the Action page, click Next;

9. Leave all boxes checked on Profile page if you don't ever want to see the website on any network connection, modify if you want to allow on a Domain, Public or Private Network;

10. Enter a name for the new rule you created and click Finish;

11. Select Outbound Rules from the left panel and repeat ALL steps precisely from above.


Side note: any rules can be edited later if you want to add more IP addresses to block.
 

Online_Sword

New Member
Verified
Trusted
I think, for users who do not have the problem of DNS cache pollution, the most direct way to get the IP address corresponding to a domain is to use the nslookup command.

First, you need to run cmd.exe. Then, enter the following command:
Code:
nslookup malwaretips.com 8.8.8.8
Here you need to replace malwaretips.com with the domain of which you want to know the IP address, and replace 8.8.8.8 with the DNS server that you like. If you do not specify a DNS server here, then the command nslookup will use the default DNS server specified in the network config.
 

Dirk41

Level 17
Verified
hi guys, thank you for the guide.
anyway ,since I'd like to use windows firewall controll,to block also outgoing communications, I look for a guide to do that.
because i suppose that before adding a website to you "blacklist" you should discover that it is a malicious website. i look for something to prevent unknow threats. without using third-party av-fw
thank you in advance
 

Danielx64

Level 10
Verified
I'm just looking at this and I don't think that this is a good idea. You should be aware that you can have more than one website on the same server with the same IP. There is such a thing as shared hosting. You would be better off editing the host file instead.