In this article, I will cover how you can block a certain website in a Sonicwall Firewall.
We need to create one “Address object” which contain the website we will block and two “Access Rules” which block the traffic from LAN to WAN and WAN to LAN.
I am currently running a TZ500 device, with firmware SonicOS Enhanced 6.5.4.4-44n
Login to your firewall, and go to “Objects” and click on “Address Objects”
Click on “Add”
Change Zone Assignment to WAN, and type to FQDN.
In field FQDN Hostname type in the website you wish to block, remember to use wildcard * to be able to block all sites within facebook.com
Name: Facebook
Zone Assignment: WAN
Type: FQDN
FQDN Hostname: *.facebook.com
When it has been added, it should look like this below.
Click on “Access Rules” and then “Add”
Select “Deny” in “Action”
From: LAN
To: WAN
Source Port: Any
Service: HTTPS
Destination: Facebook
When done, then click “Add”
Then we just need to make one last rule.
Select “Deny” in “Action”
From: WAN
To: LAN
Source Port: Any
Service: HTTPS
Destination: Facebook
Click “Add”
When done, it should look like this.