My Open Source Projects
O.S.S.
My Free Software
Free Soft
Articles and Documentation (in Russian)
Articles
My photoalbum and photographer notes
Photo
Windows Logos (Cool replacements for Windows 95/98 startup, shutdown and switchoff screens)
WinLogos
Site Archive (Site design gallery, dead sites gallery, old guestbooks...)
Archive
Contact information (quick email, email, ICQ etc)
Contacts
ENG
RUS


squidred

Русского текста пока нет :)

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.

Installation

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) [4115 d/l]

Go to Start page
© Sergey A. Galin, 1998-2010http://sageshome.net/oss/squidred.php
Time: 0.003s · squidred: 11360/11728 Total: 1351789/1587812