Activate js challenge by JS condition

How can I show the JS challenge when this script returns “true”?

// Initialize an agent at application startup.
const botdPromise = import(‘’).then((Botd) =>
// Get the bot detection result when you need it.
.then((botd) => botd.detect())
.then((result) => console.log(result))
.catch((error) => console.error(error));

I am not sure that we have a built in way to trigger this.

A js challenge can be set on a certain path using firewall rules.

You may be able to use workers to achieve what you would like.

The developers discord would be the best place to discuss that further: Discord

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.