36 ms·
You know what, you're right. I was thinking of something like: if (strpos('http://digg.com/', $_SERVER['HTTP_REFERER'])) header('Location: whateverPage
by erlanger 18y ago
You know what, you're right. I was thinking of something like:
if (strpos('http://digg.com/', $_SERVER['HTTP_REFERER']))
header('Location: whateverPage');
But that would block all traffic from Digg, including links in comments, etc. To perform the same check as the regex would require much more code.
However, I stand by my Apache recommendation as the best option.