[squid-users] squid url_rewrite_program how to return a kind of TCP reset

Eliezer Croitoru ngtech1ltd at gmail.com
Mon Jan 31 16:20:43 UTC 2022


Hey David,

 

It works only with ICAP or ECAP but I was talking about ICAP.

I wrote an example golang service at:

https://github.com/elico/bgu-icap-example

 

It is licensed with 3-clause BSD so you can use it freely.

It’s pretty simple to understand the code and I have used it in more
then one production environment in the past years.

The above is modifying the response of a page while you can just push into the page a template.

Just so you would see that the production is using one that is similar to the next one:

https://github.com/elico/squidblocker-icap-server/blob/master/sb_icap.go

 

Eliezer

----

Eliezer Croitoru

NgTech, Tech Support

Mobile: +972-5-28704261

Email: ngtech1ltd at gmail.com <mailto:ngtech1ltd at gmail.com> 

 

From: squid-users <squid-users-bounces at lists.squid-cache.org> On Behalf Of David Touzeau
Sent: Monday, January 31, 2022 10:54
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] squid url_rewrite_program how to return a kind of TCP reset

 

Is adapted_http_access supporting url_rewrite_program  ? It seems only supports ecap/icap 

Le 31/01/2022 à 03:52, Amos Jeffries a écrit :

On 31/01/22 13:20, David Touzeau wrote: 



But it makes 2 connections to the squid for just stopping queries. 
It seems not really optimized. 


The joys of using URL modification to decide security access. 





I notice that for several reasons i cannot switch to an external_acl 


:( 





Is there a way / idea ? 


 <http://www.squid-cache.org/Doc/config/adapted_http_access/> <http://www.squid-cache.org/Doc/config/adapted_http_access/> 


Amos 
_______________________________________________ 
squid-users mailing list 
squid-users at lists.squid-cache.org <mailto:squid-users at lists.squid-cache.org>  
http://lists.squid-cache.org/listinfo/squid-users 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20220131/0b36a236/attachment.htm>


More information about the squid-users mailing list