Now I'm sure there are better more sophisticated ways to do this.
But I'm a php noob so here we go :
Code:
// the URL of the submission form
$formURL = array('http://www.blah.biz/testform.php', 'www.blah.biz/testform.php', 'blah.biz/testform.php');
// prevent off-site use
if ($HTTP_REFERER != $formURL) {
die("Illegal use.");
}
The scripts returns "Illegal Use" eveytime although I come from page specified in $formURL.
Can someone help?