can i guarantee a 'HTTP_REFERER' ?
Posted: Fri Jun 01, 2007 10:09 am
$_SERVER['HTTP_REFERER']
Can i guarantee that a page will have a referrer? I know there are some circumstances when one isn't sent - such as your home page when you open your browser.
However. For example, I have one page, "form.php" and another "processform.php". If the only way a user should be requesting processform.php is after submitting form.php, can I use $_SERVER['HTTP_REFERER'] to check the user is not doing anything suspicious? Or is this just wishful thinking?
Thanks,
Shears
Can i guarantee that a page will have a referrer? I know there are some circumstances when one isn't sent - such as your home page when you open your browser.
However. For example, I have one page, "form.php" and another "processform.php". If the only way a user should be requesting processform.php is after submitting form.php, can I use $_SERVER['HTTP_REFERER'] to check the user is not doing anything suspicious? Or is this just wishful thinking?
Thanks,
Shears