OK so here is what I did. I tested using the folloing:
echo $_SERVER['HTTP_REFERER']
When I tested coming from Google.com I just got a blank screen.
Also, from doing some more research, I found that if the HTTP_REFERER has not been set, I won't see anything, which seems to be the case.
Is this the issue and if so how do I go about setting the HTTP_REFERER?