# yml 中的 from: & to: 语法钩子

**URL:** <https://meta.discourse.org/t/hooks-from-to-syntax-in-yml-to-disable-anonymous-searches/370952>\
**Category:** Support\
**Created:** [2025年六月19日 21:19 UTC](https://meta.discourse.org/t/hooks-from-to-syntax-in-yml-to-disable-anonymous-searches/370952 "2025-06-19T21:19:09Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [2025年六月21日 21:53 UTC](https://meta.discourse.org/t/hooks-from-to-syntax-in-yml-to-disable-anonymous-searches/370952/7 "2025-06-21T21:53:08Z")

</div>

> [@opcourdis](#):
>
> 我的意思是未登录用户创建一个会话 cookie 来假装已登录

🤨

那将是一个安全问题。如果你能做到这一点，请向 [HackerOne](https://hackerone.com/discourse) 报告

> [@opcourdis](#):
>
> 但也许我在这里想得有点远了

![](https://media.tenor.com/w_DGRPsvzZAAAAAC/team-fortress2-heavy.gif)

---

_[View the full topic](https://meta.discourse.org/t/hooks-from-to-syntax-in-yml-to-disable-anonymous-searches/370952)._
