OPNsense Forum

English Forums => General Discussion => Topic started by: errored out on February 07, 2021, 04:17:18 AM

Title: [Solved] How can a url be blocked? Not block a domain, subdomain, DNS - a URL
Post by: errored out on February 07, 2021, 04:17:18 AM
I am trying to find a way to specifically block URLs.  The forum has various ways to block by IP, DNS, list, etc.  But I am looking for a way to block a URL. 

Why?  I want to have access to the domain, and most of the content on that site.  However, I don't want certain content from specific directories / files from that domain/site.

Example:  My browser is on https://www.instructables.com but I also want to block https://www.instructables.com/assets/img/pixel.png

This is just 1 example, there are different domains, file types, and names I will be adding. 

How can this be setup without having to use scripts (modifying through console), external downloads, just using the existing tools / functionality through the GUI.

Thank you
Title: Re: How can a url be blocked? Not block a domain, subdomain, DNS - a URL
Post by: Fright on February 07, 2021, 08:45:50 AM
can try squid + regex blacklist
Title: Re: How can a url be blocked? Not block a domain, subdomain, DNS - a URL
Post by: errored out on February 17, 2021, 03:07:59 AM
Thanks