Quote:
Originally Posted by Alan_SP
This with weekly email would be nice, but having thread created, for all moderators to be informed is a very welcome option, so we could allow people to use proxies, but watch them more closely.
And, how can I manually add spiders? Through their UA, or differently? I'm still not installing it, as this is very important for me, so I'm waiting to know how to do this.
|
Yes
Code:
isset($_SERVER['HTTP_USER_AGENT']) && !preg_match('/bot|crawl|slurp|spider/i', $_SERVER['HTTP_USER_AGENT']))
Of course if you wanted to just allow a few bots and not all (The ones you know are good bots) then you could just check the user agent for Googlebot or multiple other bots.
Code:
strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "Googlebot")