Re: "Authenticating" across sites/servers
| From: | Alexander Wagner | Date: | Tue, 23 Jan 2001 18:24:27 +0000 |
| Subject: | Re: "Authenticating" across sites/servers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36240@lists.php.net to get a copy of this message | ||
Boget, Chris wrote:
> > > Also, you can check the value of $HTTP_REFERER for the ip of
> > the trusted host, to further eliminate the potential.
>
> How do you get the IP out of $HTTP_REFERER? As far as I know,
> that only tells you the referring url, not the ip address.
This is correct. But you could extract the hostname and do a dns-lookup, if
you wish. But the hostname should suffice, shouldn't it?
> And couldn't
> that value be messed with?
Sure it can. It is sended by the browser, so the client (or proxy-servers)
can maniulate or delete it. Anyway, it's from the wrong side of the trust
boundary.
Wagner
--
One maniac alone can do what 20 together cannot