squidred is a simple redirection program for Squid. It can be used to redirect requests to banners and prohibited URL's to some document or image. It is somewhat better than using stuff like "acl url_regex" in squid.conf because:

  • you can redirect banner requests to stub images, which makes pages with banners looking not so bad as with just banners blocked;
  • you can do redirections explaing why the URL has been blocked;
  • you don't have to send any signals or restart Squid after modifying squidred config files - all changes are updated automatically on-the-fly;
  • redirection data is separated from general Squid configuration.


Refer to INSTALL.txt inside the distribution for more information.

  1. Run from squidred source directory, as root:
    $ make install
  2. Decide where you want to put files to be used as destination of redirections. It can be any webserver where you can put these files, preferrably on the same computer where Squid installed. Create these files (short HTML files explaining why the URL was redrected and images to replace banners).
  3. Copy default config files which can be found at etc/squid/* to /etc/squid/ . (This operation is not done by Makefile yet). Check content of these files in text editor.
  4. Edit /etc/squid/squid.conf . Add the following line there:
    redirect_program /usr/local/bin/squidred
  5. Restart Squid and enjoy!

Download squidred

Get squidred-0.3.tar.bz2 squidred-0.3.tar.bz2 (42 Kb) [7629 d/l]

Go to Start page
© Sergey A. Galin, 1998-2022http://sageshome.net/oss/squidred.php
Time: 0.018s · squidred: 27656/28053 Total: 2556429/2836373