Re: reminder needed please...
| From: | Pablo | Date: | Thu, 08 May 2003 23:25:52 +0000 |
| Subject: | Re: reminder needed please... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146934@lists.php.net to get a copy of this message | ||
On 05/08/2003 6:13 PM, Ryan A (ryan@jumac.com) wrote:
> I *think* this is the one but am not sure.
>
> http://si.php.net:8888/manual/en/function.parse-url.php
>
> Tell me if you know of a better alternative.
It sounds more like you want HTTP_REFERER.
> Basically I want to make sure that the request came from
> https://2checkout.com
> so i can do this:
> if( yes )
> {grant access}
> elseif (no)
> {politely decline...}
Assuming you mean HTTP_REFERER, I hope you don't do this as not all browsers
send it. Instead you may want to consider something more along these lines:
if ((HTTP_REFERER is what you want) OR (HTTP_REFERER is not set)) {
grant access
}
else {
politely decline
}
You really don't want to rely on HTTP_REFERER.
Pablo