Re: [squid-users] regexp after redirect

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Tue, 21 Feb 2006 23:40:18 +0100

tis 2006-02-14 klockan 18:36 -0600 skrev Fernando Rodriguez:
> Hello,
>
> Is there a way to match a regexp after redirect returns??

The rproxy patch available from devel.squid-cache.org adds among a lot
of other things a http_access2 statement executing after redirectors and
can be used for this.

>
> Im using Squid Squidguard, I have done some tests regarding userlists and ip
> lists
> Since both of the matches are done via the same network it usually works but
> since the firs ACL to match is regarding ip if your ip is on the list you
> will have no problems, but if is not then you will be redirected to
> http://jdkalsjd.jjj <http://jdkalsjd.jjj/> that obiously dosnt exist but I
> wan to catch that url to ask the user for its login and password using PAM
> so the next time is redirected it will also have a username and password to
> see if this matches a user from squidguard and then contunie with the
> process.

You could send a browser redirect instead of just rewriting the URL..
this way the browser will request the new URL.

Regards
Henrik

Received on Wed Feb 22 2006 - 06:07:09 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST