# Exclude Bot and crawler interface when inserting code in header

**URL:** https://meta.discourse.org/t/exclude-bot-and-crawler-interface-when-inserting-code-in-header/216158
**Category:** Support
**Created:** [January 27, 2022, 2:41am UTC](https://meta.discourse.org/t/exclude-bot-and-crawler-interface-when-inserting-code-in-header/216158 "2022-01-27T02:41:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)
#### Post date: [January 27, 2022, 2:41am UTC](https://meta.discourse.org/t/exclude-bot-and-crawler-interface-when-inserting-code-in-header/216158/1 "2022-01-27T02:41:41Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [January 27, 2022, 7:50am UTC](https://meta.discourse.org/t/exclude-bot-and-crawler-interface-when-inserting-code-in-header/216158/2 "2022-01-27T07:50:53Z")

</div>

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