Bot- und Crawler-Schnittstelle ausschließen, wenn Code in den Header eingefügt wird

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.

2 „Gefällt mir“

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

1 „Gefällt mir“