MicrosoftWindowsWindows 11
The Windows Firewall is a security app that comes preinstalled with the Windows OS.
The firewall can be used to block websites, certain applications, specific IP addresses, and even ports.
This can be done using the Firewall itself and throughWindows PowerShell.

However, you’re free to alter its controls to apply filters and block the packets.
Each packet contains a header and a payload.
The header has both the destination and the source IP addresses, amongst other information.

Find the IP address of a domain/website
Depending on what your requirements are, it’s possible for you to configure the firewall accordingly.
Most home users do not need to perform any actions on the firewall if it is for personal use.
prior to beginning configuring the firewall, consider all the tangent pros and cons.

Open Advanced Windows Firewall settings
This means added delay in your connection and will seem like your internet is (slightly) slow.
This will also significantly higher system resources when the firewall is inspecting the packets.
On the contrary, configuring Windows Firewall also has benefits.

Create new outbound rule
You do not need external firewall hardware to filter the internet traffic, saving costs.
Hence, configuring the integrated firewall enhances your privacy.
This limitation makes the method to block an IP address or a website very similar.

Create custom outbound rule
Replacewebsite.comwith the domain name.
You may now get 1 or more IP addresses in return (both IPv4 and IPv6).
Now clickOutbound Rulesfrom the left pane and then right-click it.

Apply rule to all programs
Then clickNew Rulefrom the context menu.Create new outbound rule
TheNew outbound rulewizard will now open.
SelectCustomand then clickNext.Create custom outbound rule
Now selectAll programsand then clickNext.
Once the IP addresses have been added, clickNext.

Select the protocol to apply the rule to
The Windows Firewall will now block the IP address(es) or website.
If you wish to change the setting of an existing rule using PowerShell, continue to the section below.
Open anelevated PowerShell instance.

Add remote IP addresses
Now use the following cmdlet to create a new firewall rule to allow or block an IP address.
The website/IP address(es) will now be allowed/blocked.
However, the steps above only apply to creating a new rule.

Enter IP address to block
For inbound rules, replace outbound with inbound.
Learn how tocheck which ports are open/listening.
Blocking a port using a firewall is the same as closing it.

IP addresses have been added
Ports can be blocked or allowed using both Windows Firewall and PowerShell.
OpenAdvanced Firewall Settingsby typing inwf.mscin the Run Command box.Open Windows Firewall advanced tweaks
TheNew Outbound Rulewizard will now open.
Launch PowerShell with administrative privileges.

Allow or block the IP address(es)
Now use the following cmdlet to create a new firewall rule to allow or block a online grid port.
The data pipe port will now be allowed/blocked.
However, the steps above only apply to creating a new rule.

Select the network type to apply the rule on
If you wish to undo these changes, you either need toedit an existing firewall ruleordelete it.
Here is how:
TheNew Outbound Rulewizard will now open.
However, the app will still run on your box.

Name the firewall rule
The program will now be allowed/blocked.
This is excellent for parents to control what their children can and cant access.
0
Get weekly insights, tips and exclusive content delivered straight to your inbox.

Website is blocked successfully
Talk to us straight and get your questions answered right away

Disable or delete the firewall rule

Block IP address or website using PowerShell

Note and save the GUID

Allow a blocked IP address/website using PowerShell

Block an allowed IP address/website using PowerShell

Remove firewall rule using PowerShell using GUID

Get GUIDs with firewall rule names

Create new port rule

Specify port number and type

Name the firewall rule

Disable or delete the firewall rule

Block port using PowerShell

Note down GUID

Allow an app through the firewall

Change allowed app settings

Allow or block apps and programs from Control Panel

Select type of network to allow/block

Browse for another app to allow/block

Add another app

Save changes

Create new app/program rule

Browse for app/program

Select app/program and proceed

Name the firewall rule

Disable or delete the firewall rule

Block app/program using PowerShell

Note and save the GUID



source: www.itechtics.com