URL redirection to error code

From: <ard@dont-contact.us>
Date: Tue, 14 Oct 1997 14:38:44 +1300

Folks, I've written a redirector that decides whether a given user should
be allowed access to the web cache (based on an ever-changing database -
never mind the details).

At the moment the redirector outputs the URL of a local page telling that
user that for some reason they're webbily-knobbled. I'd rather return
"access denied" to avoid client caching problems.

So, my scheme was to return a unique URL from the redirector:
"http://sorry.out.of.luck/", perhaps. Then in the Squid config file I'd
have:

        acl unlucky url_regex ^http://sorry.out.of.luck
        http_access deny unlucky

Alas, it seems the redirector is used after ACLs are set and acted on, so
my rewritten URL is passed back to the client.

Is there any way to have ACLs recalculated after the URL redirector has
done its work, or to return an error code from the redirector?

Thanks in advance -

___________________________________________________________________________
Andrew Donkin, Unix admin. Email: ard@cs.waikato.ac.nz PGP Key: 0B0F9FE5
School of Computing & Mathematical Sciences, Waikato University New Zealand
Received on Mon Oct 13 1997 - 18:41:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:17 MST