Re: [squid-users] reverse proxy filtering?

From: Gavin McCullagh <gavin.mccullagh_at_gcd.ie>
Date: Sun, 19 Apr 2009 10:09:39 +0100

Hi,

On Sun, 19 Apr 2009, Jeff Sadowski wrote:

> I am helping a library to setup a way to display available books to the outside.
> The internal website allows you to login and check out books which
> they want blocked to the outside. They do not want to modify the web
> developers code to fit their special needs, since it is a commonly
> used program to the libraries. They just want me to stop people from
> logging in and checking out books and they don't need it to be an
> absolute just difficult. When they should only be allowed to check
> books out from inside.

I presume the login is required to do any task.

It might be simplest to just block access to any URLs which process a
check out and any other disallowed tasks? You could give a custom error
page which says "this task is not allowed to external users. I suppose it's
better for users to not show buttons which they can't use, but this would
be simple to implement, perform well and wouldn't require modifying html.

Some people do modify content indirectly using squid's url_rewrite,
including this amusing one:
        http://www.ex-parrot.com/~pete/upside-down-ternet.html

which involves running a webserver on squid. The perl script downloads the
page to squid's web directory, translates it and rewrites the url to the
localhost location of the translated page. It's a bit of a hack, but it
would probably work.

Gavin
Received on Sun Apr 19 2009 - 09:09:45 MDT

This archive was generated by hypermail 2.2.0 : Sun Apr 19 2009 - 12:00:02 MDT