I'm having problems with a few clients ... but I can't get the reason. Some clients get an invalid referer message even if they are clicking from the same domain. Others are working correctly. ideas?
$REFERERCHECK =~ s/(http:\/\/|https:\/\/)//g;
@GETVALIDREF = split (/\//, $REFERERCHECK);
&results("Invalid Referer") unless ($ENV{'SERVER_NAME'} eq $GETVALIDREF[0]);
Thanks
Code:
$REFERERCHECK = $ENV{'HTTP_REFERER'}; $REFERERCHECK =~ s/(http:\/\/|https:\/\/)//g;
@GETVALIDREF = split (/\//, $REFERERCHECK);
&results("Invalid Referer") unless ($ENV{'SERVER_NAME'} eq $GETVALIDREF[0]);
Thanks