[squid-dev] Block users dynamically
marcus.kool at urlfilterdb.com
Wed May 30 00:56:58 UTC 2018
On 28/05/18 15:10, dean wrote:
> 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,
> 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
> another way to block users dynamically from the Squid code?
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).
So if you control a blacklist with usernames and write the name of the user to a defined file, ufdbguardd will block these users.
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
Note that reloading ufdbguardd does not interfere with Squid and all activity by browsers and squid continues normally.
More information about the squid-dev