How to trigger a function if CF detects that visitor is a bot


#1

Hi! I would like to know (if possible) how to trigger a function if CF detects that visitor is a bot. Something like:

function botDetected() {
  console.log('Bot detected!')
}

Thank you.


#2

Hi @marcelo5, a good conversation about that going on over here, Filter Firewall Event Log.