Search squid archive

Re: Your opinion: Squid and MySQL interaction, for redirecting users? Is it possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, 22 Nov 2009, Jonas Brunsgaard wrote:

> I have the squid, i have the MySQL data. But how do I make the Squid
> distinguish between blocked and not blocked. And further how do I
> redirect blocked users to the internal "you are a bad boy" page.

We do something like this by keeping the blocked IPs in a file.

  acl blockedclients      src "/etc/squid/blocked_ips"
  http_access deny  blockedclients
  deny_info http://www.our.tld/temp/message.html blockedclients

A simple method might be to just regenerate the file once an hour on a cron
job?

Gavin


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux