[squid-users] Block word in a URL part
Amos Jeffries
squid3 at treenet.co.nz
Mon Jul 20 17:40:00 UTC 2015
On 21/07/2015 5:24 a.m., Felipe Almeida wrote:
> Hi all,
>
> I have a problem here where I need to block some words within a search result in a URL.
>
> For example, a I have those two URLs below:
>
> https://www.youtube.com/results?search_query=porn
> ------
> and
>
> https://www.google.com.br/?gfe_rd=cr&ei=EC2tVcjaE_Op8weMyYDoDw&gws_rd=ssl#q=porn
> ------
>
> In these two URLs the word "porn" is there, as a query search result.
>
> Is there a way to create a blocking rule for that? So if a user type that word in a search engine, squid will block it.
>
> I searched for this kind of configuration in the past emails here but couldn't find it anything regarding this.
>
URL #fragment are not sent "over the wire" as it were. Squid can do
nothing about that.
For the former there is urlpath_regex ACLs.
Amos
More information about the squid-users
mailing list