Exclude Bot and crawler interface when inserting code in header

I have inserted some js script in the header discourse. And it shows up in the source code both on BOT and crawler visibility.
How to exclude for crawler interface and BOT.

1 Like

You can’t. You can do different copies of a site depending how bots are identifing themselves, but there is no point for that.