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
- redirection data is separated from general Squid configuration.
Refer to INSTALL.txt inside the distribution for more information.
- Run from squidred source directory, as root:
$ make install
- 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).
- 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.
- Edit /etc/squid/squid.conf . Add the following line there:
- Restart Squid and enjoy!
squidred-0.3.tar.bz2 (42 Kb) [7162 d/l]