I am not sure what that code does in the context you provide. It clearly aims to target only specific bots but based merely on the code (and without looking at the surrounding phpBB code I can't tell you if it works.
Why are you considering it? If you use my mod those spiders already get no sessions.
Thu 29 Jul, 2004 02:01 pm
Your MOD is for phpBB this is for a shopping cart
Craven de Kere
Thu 29 Jul, 2004 02:06 pm
Ok, that explains why the code wasn't making sense to me.
Without familiarity with the code it will be applied to, it seems like what it does is remove session IDs for certain user-agents that are from famous search engines.