Re: $HTTP_REFERER
| From: | Erich Zigler | Date: | Fri, 17 Aug 2001 16:34:00 +0000 |
| Subject: | Re: $HTTP_REFERER | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63208@lists.php.net to get a copy of this message | ||
On Fri 17 Aug 2001, Nick Davies wrote:
> Probably best to read stuff first ;)
> try preg_match
> preg_match("/^(http:\/\/)?([\/]+)/i", $HTTP_REFERER, $hostname);
> the hostname will be in $hostname[2]
> Hope it helps.
Thanks. But is using $HTTP_REFERER the most secure way of doing it? Or can
the $HTTP_REFERER be forged and thus gaining unauthorized access to the
forms?
--
Erich Zigler
A sick mind is not necessarily the sign of a neat desk.