Fork me on GitHub

pnBloodhound displaying bots/crawlers  Bottom

  • Good Day!

    I just installed pnBloodHound (.76a) on PostNuke .761, and it works great.

    But it also displays all the Spiders and Crawlers as Unregistered users. Would anyone know of any hacks or changes I could do to make these not appear?

    Any help would be greatly appreciated!

    PS Happy New Year!!! :)
  • Shamelessly copied from /modules/pn_bbcode/pnuserapi.php:

    Code

    // check the user agent - if it is a bot, return immediately
        $robotslist = array ( "ia_archiver",
                              "googlebot",
                              "mediapartners-google",
                              "yahoo!",
                              "msnbot",
                              "jeeves",
                              "lycos");
        $useragent = pnServerGetVar('HTTP_USER_AGENT');
        for($cnt=0; $cnt < count($robotslist); $cnt++) {
            if(strpos(strtolower($useragent), $robotslist[$cnt]) !== false) {
                return $message;
            }
        }


    HTH
  • Where would you post that snippet though?
  • forget the last post, i cant get rid of the API errors in the block now, so i am removing this module

This list is based on users active over the last 60 minutes.