Hi Peter.
I checked the redirector source for you, and I have a solution for you.
NOTE: that this solution will work for users how are navigating directly
to your proxy, and not using
Other proxy on the way (since multiple user may come with the same IP,
then you'll have to change
the redirector code to pass X-forward-for)
The second parameter that passed from squid to the redirector is the
client IP address.
Then, if you maintain a hash table for the IP's the passed through your
system, you will be able to do
The following:
If this IP is not in the hash then redirect (change the URL) to your
home page and insert the IP to the hash,
else return the URL as is.
Hope it helps,
Moshe Beeri.
> -----Original Message-----
> From: Peter John Allebone [mailto:peter@cdrive.co.za]
> Sent: Tuesday, June 13, 2006 11:47 PM
> To: Moshe Beeri
> Subject: Re: [squid-users] redirect
>
> Hi there
>
> But it must be possible somehow
>
> If i take the tube out of london some trains have a wifi on the train.
> If i open my web browser it takes me to their webpage
> automatically and asks for my credit card details.
> then i can browse.
> I want the same thnig (but i dont need people to pay - just
> to see my homepage first)
>
> Is this not possible to do?
> Pete
>
> Moshe Beeri wrote:
> > You may use the redirector to do that.
> > but you need to check if it is the first request of a
> browser session
> > if you would like the users to be free after the first page
> view, and
> > I do not think it is possible.
> >
> >
> >
> >> -----Original Message-----
> >> From: Peter Allebone [mailto:peter@cdrive.co.za]
> >> Sent: Monday, June 12, 2006 9:42 AM
> >> To: squid-users@squid-cache.org
> >> Subject: [squid-users] redirect
> >>
> >> Hi there
> >>
> >> I am trying to redirect clients to a webpage of my choice
> when they
> >> first connect to my proxy.
> >>
> >> Ie instead of opening their own homepage when they open internet
> >> explorer my homepage should come up regardless of the setting in
> >> their internet options homepage.
> >> Can this be donein squid?
> >>
> >> Peter
> >>
> >>
> >>
> >>
>
>
Received on Wed Jun 14 2006 - 08:00:12 MDT
This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:01 MDT