[squid-users] Dstdomain from external ACL

Amos Jeffries squid3 at treenet.co.nz
Sat Jul 22 05:00:07 UTC 2023


On 21/07/23 00:23, Alexeyяр Gruzdov wrote:
> Hello.
> 
> Looks I found how to do that and this works well for me:
> 
> The external helper script must check if the url is in DB and answer as 
> OK (if there is) or ERR (if there isnt)
> 

You can probably use the ext_sql_session_acl helper bundled with Squid 
instead of writing your own from scratch.
See 
<http://www.squid-cache.org/Versions/v4/manuals/ext_sql_session_acl.html> 
for its parameters.

AIUI, you want the --uidcol to be the table of URLs and leave both 
--usercol and --tagcol unset.


Amos


More information about the squid-users mailing list