# What is the Discourse User Agent for Onebox?

**URL:** https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281
**Category:** Support
**Created:** [March 21, 2019, 4:23pm UTC](https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281 "2019-03-21T16:23:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![benraay](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@benraay](https://meta.discourse.org/u/benraay)
#### Post date: [March 21, 2019, 4:23pm UTC](https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281/1 "2019-03-21T16:23:34Z")

</div>

does discourse have as special user agent for crawling I need it when posting links from my site (angularJs) to serve SEO friendly content to it

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [March 21, 2019, 5:59pm UTC](https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281/2 "2019-03-21T17:59:24Z")

</div>

Why not use the rss feeds, instead of just crawling the site?

---

<div class="post-metadata">

### Author: ![benraay](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@benraay](https://meta.discourse.org/u/benraay)
#### Post date: [March 21, 2019, 6:40pm UTC](https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281/3 "2019-03-21T18:40:23Z")

</div>

I don’t have rss feeds on my website for now  
here is what I get if I paste a url from my website because discourse bot is scraping my website  
when I detect bots I have special prerended pages but here it’s going to the javascript version and it looks like the bot does not render it

> **[Checking your browser…](https://www.crossshopper.com/js-challenge/js-challenge.html?redirect=%2F)**

 ![52](https://global.discourse-cdn.com/meta/original/3X/2/0/2072d5d125b8e3bd1c013dab0d608528194238e5.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 21, 2019, 6:55pm UTC](https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281/4 "2019-03-21T18:55:36Z")

</div>

> [@Onebox user agent](https://meta.discourse.org/t/onebox-user-agent/61498/18):
>
> This commit adds a custom User-Agent to discourse oneboxes: [https://github.com/discourse/discourse/commit/8bc93c0b018045bf23769b8ecc4ec5b493368667](https://github.com/discourse/discourse/commit/8bc93c0b018045bf23769b8ecc4ec5b493368667) The User agent looks like this: Discourse Forum Onebox v1.8.0.beta13

---

<div class="post-metadata">

### Author: ![benraay](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@benraay](https://meta.discourse.org/u/benraay)
#### Post date: [March 21, 2019, 10:25pm UTC](https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281/5 "2019-03-21T22:25:55Z")

</div>

Thanks, it would probably solve the issue !!

---

<div class="post-metadata">

### Author: ![axierr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/axierr/32/158075_2.png) [@axierr](https://meta.discourse.org/u/axierr)
#### Post date: [November 11, 2020, 9:58am UTC](https://meta.discourse.org/t/what-is-the-discourse-user-agent-for-onebox/112281/6 "2020-11-11T09:58:16Z")

</div>

Did it solved the issue for you?  
How did you apply the change after modifying the .rb file?
