# Inline-onebox не использует SiteSetting.onebox\_user\_agent

**URL:** https://meta.discourse.org/t/inline-onebox-doesnt-use-sitesetting-onebox-user-agent/365105
**Category:** Feature
**Tags:** onebox, pr-welcome
**Created:** [07.Май.2025 09:44:27 UTC](https://meta.discourse.org/t/inline-onebox-doesnt-use-sitesetting-onebox-user-agent/365105 "2025-05-07T09:44:27Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [28.Январь.2026 00:42:31 UTC](https://meta.discourse.org/t/inline-onebox-doesnt-use-sitesetting-onebox-user-agent/365105/7 "2026-01-28T00:42:31Z")

</div>

PR с настройкой `inline_onebox_user_agent`, скрытой по умолчанию, был принят. Вы можете использовать её для переопределения заголовка User-Agent для встроенных onebox-объектов.

> <https://github.com/discourse/discourse/pull/37324>
>
> Inline oneboxes use a browser-like user agent by default, which can cause issues… with bot protection services like Anubis that block browser-like requests while allowing bot/crawler user agents through.
> 
> This adds a new hidden site setting \`inline\_onebox\_user\_agent\` that allows configuring a custom user agent for inline onebox requests. When set, this user agent will be used instead of the default browser-like one.

@osmith, не могли бы вы подтвердить, что эта настройка решает проблему со встроенными ссылками и Anubis?

---

_[View the full topic](https://meta.discourse.org/t/inline-onebox-doesnt-use-sitesetting-onebox-user-agent/365105)._
