Quote:
Originally posted by Overgrow
This is the if statement
PHP Code:
if ((!strstr(getenv(HTTP_REFERER),$homeURL)) or (strlen(getenv(HTTP_REFERER)) < 1)) {
It is checking that the referer is greater than 0 length. This does work for me Can you troubleshoot it a bit on your end?
|
Looking at that line, I see the problem. strstr() is case sensitive, and I defined my $homeURL to be a different case than what I accessed it from, so you should change that to use stristr() instead.