I have got this code from someone:
$my_host = $SERVER["SERVER_ADDR"];
$referer = $SERVER["REMOTE_ADDR"];
if ($my_host == $referer){
do this
} else {
do this
}
I only want to allow form data from within my site but when testing, the two vars are never equal DESPITE where I come from.
ANY help would be much appreciated 🙂