How to blocking certain Web URLs..

Started by tryllz, March 17, 2021, 05:12:49 PM

Previous topic - Next topic
March 17, 2021, 05:12:49 PM Last Edit: March 17, 2021, 05:20:12 PM by tryllz
Hi,

I have been trying to find how to block just some URLs but can't seem to find how. I tried by using Alias > Host (IP) and applied it to Destination in a rule but that was ineffective. The only way I see is by using the Web Filtering and downloading the list file as shown here https://docs.opnsense.org/manual/how-tos/proxywebfilter.html that uses Category based blocking.

Any other way I can block some URL's, by manually entering them, or via some custom txt file that can be uploaded to the firewall ?!

firewall

Thank You

A network layer firewall just sees IP addresses and ports and cannot identify specific URLs. So you would need to use a web proxy to do that.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: pmhausen on March 17, 2021, 05:16:52 PM
A network layer firewall just sees IP addresses and ports and cannot identify specific URLs. So you would need to use a web proxy to do that.
But with Proxy it doesn't allow Custom URL's to be blocked, or perhaps I wasn't able to find how.

Maybe with Sensei or a real external web proxy

If your Client and the Opnsense are using the same dns (better the OPNsense is the DNS Server for your client).

You can block them via an Alias
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support