On Mon, 4 Dec 2000, mycgiserver wrote:
> Hi,
>
> that's an idea, however this approach would fail if 2 clients in an INTRANET
> would like to cast a vote, only the gateway IP would be visible to our
> server and that would cause the second client to be rejected.
>
> See, it ain't that easy.
okay, so instead you are proposing to make the vote only accessible to
users of your system (re: original email response) ... so now, instead of
losing the *occasional* person that is sharing an IP, you lose everyone?
> -----Original Message-----
> From: The Hermit Hacker <scrappy@hub.org>
> To: mycgiserver <general@mycgiserver.com>
> Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
> Date: 4. Dez 2000 14:35
> Subject: Re: Your RDBMS Survey ...
>
>
> >
> >Good point, about the proxy ... we run Squid at work, and you are corect
> >that REMOTE_ADDR will show up the proxy server's IP, but, at least with
> >Squid, a second environment variable will be setup in that case, called
> >'HTTP_X_FORWARDED_FOR', that contains the true IP of the visitor ...
> >
> >A simple:
> >
> >if(HTTP_X_FORWARDED_FOR) {
> > use this IP
> >} else {
> > use REMOTE_ADDR
> >}
> >
> >would work around that limitation/problem ...
>
>
Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org