MyBB Community Forums

Full Version: PHP if user is a bot/spider
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey

Is there a certain PHP code (e.g. $mybb->usergroup['cancp']) I can use to check if the user is a bot/spider?

I.e.,
if (a user is bot/spider) {
//some code here
} else {
//other code here
}


Thanks!