Originally Posted by
johnjlarge
Just another observation on this, could it be that known spiders are prevented from creating a session, so the IP isn't cached in the session cache? I could be way off, but my initial investigation is that this IP is pinterestbot which I have as a robot in my zen cart who's online/admin robot definitions.
Known spiders are definitively prevented from creating sessions
As you are not using the page_not_found redirect, you could change in the observer class from
Code:
// Do not execute the check for the 'page_not_found' page
if ($current_page_base == 'page_not_found') {
return;
}
to
Code:
// Do not execute the check for known spiders
if (isset($spider_flag) && $spider_flag === true) {
return;
}
to disable the whole thing for known spiders
I'm not using this on a live site at the moment so cannot really test if its working
Bookmarks