How to block a website / URL [SOLVED]

Started by kinghnvn, January 13, 2021, 05:01:53 AM

Previous topic - Next topic
January 13, 2021, 05:01:53 AM Last Edit: January 13, 2021, 07:40:28 AM by kinghnvn
Hi all,

How to block a website / URL?
Could you please teach me the steps details?

E.g. I want to block this URL https://www.bbc.com

January 13, 2021, 05:37:14 AM #1 Last Edit: January 13, 2021, 05:44:10 AM by Greelan
I assume you want to block clients on your LAN from accessing that URL?

If so, one way is:

Create a Host(s) Alias for www.bbc.com

Then create a firewall rule into the LAN interface, Action Block (or Reject), IP versions IPv4+IPv6, protocol TCP, source any, destination the Alias created above, destination port HTTPS (you can also block HTTP if you want - easiest way to do both would be to create a Port(s) Alias for both HTTP and HTTPS and use that Alias for the destination port in the firewall rule)

Make sure the rule is above the Allow LAN to any rules in the list

I have tried but still can access to www.bbc.com :)

Please find attached files and have look.

Thanks.

Look where your block rule is placed...

January 13, 2021, 06:50:50 AM #4 Last Edit: January 13, 2021, 06:55:44 AM by kinghnvn
Make sure the rule is above the Allow LAN to any rules in the list -> OK, thanks Brother.

Large websites like BBC.com use more than just one IP address, so the advice above will work only when DNS resolution of bbc.com will return that specific IP address you put into the rule. You are up to a game of whack-a-mole if you hope to block large global websites by their IP addresses...

See my other post related to Netflix how to approach blocking with Sensei or DNS.

January 14, 2021, 03:29:30 AM #6 Last Edit: January 14, 2021, 03:34:30 AM by Greelan
The advice above was to specify the URL (domain, not IP) in the Alias, which creates a table of all IPs to which that URL resolves, which by default is also updated every 300s

July 08, 2024, 10:21:42 PM #7 Last Edit: July 08, 2024, 10:24:53 PM by reynolds087
This feature is not working for me. Please see the attached screenshots. I can still access Google using the recommended firewall rule.