Search squid archive

RE: redirect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx] 
> Sent: Tuesday, June 13, 2006 11:47 PM
> To: Moshe Beeri
> Subject: Re:  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@xxxxxxxxxxxx]
> >> Sent: Monday, June 12, 2006 9:42 AM
> >> To: squid-users@xxxxxxxxxxxxxxx
> >> Subject:  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
> >>
> >>
> >>
> >>     
> 
> 


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux