<div dir="auto">Have you ever considered using an external ACL helper?</div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 29, 2018, 9:57 PM Marcus Kool <<a href="mailto:marcus.kool@urlfilterdb.com">marcus.kool@urlfilterdb.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On 28/05/18 15:10, dean wrote:<br>
> I am implementing modifications to Squid 3.5.27 for a thesis job. At some point in the code, I need to block a user. What I'm doing is writing to an external file that is used in the configuration, <br>
> like Squish does. But it does not block the user, however when I reconfigure Squid if it blocks it. Is there something I do not know? When I change the file, should I reconfigure Squid? Is there <br>
> another way to block users dynamically from the Squid code?<br>
<br>
You can use ufdbGuard for this purpose.  ufdbGuard is a free URL redirector for Squid which can be configured to read lists of usernames or list of IP addresses every X minutes (default for X is 15).<br>
So if you control a blacklist with usernames and write the name of the user to a defined file, ufdbguardd will block these users.<br>
If the user must be blocked immediately you need to reload ufdbguardd, otherwise you wait until the configured time interval to reread the userlist expires and so after a few minutes the user gets <br>
blocked.<br>
<br>
Note that reloading ufdbguardd does not interfere with Squid and all activity by browsers and squid continues normally.<br>
<br>
Marcus<br>
<br>
_______________________________________________<br>
squid-dev mailing list<br>
<a href="mailto:squid-dev@lists.squid-cache.org" target="_blank" rel="noreferrer">squid-dev@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-dev" rel="noreferrer noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-dev</a><br>
</blockquote></div>