# 如何阻止特定用户字段的更新

**URL:** <https://meta.discourse.org/t/how-to-prevent-the-updating-of-specific-user-fields/353627>\
**Category:** Development\
**Created:** [2025年二月21日 15:31 UTC](https://meta.discourse.org/t/how-to-prevent-the-updating-of-specific-user-fields/353627 "2025-02-21T15:31:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![IJK\_Rick](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@IJK\_Rick](https://meta.discourse.org/u/IJK_Rick)\
**Post date:** [2025年二月21日 15:31 UTC](https://meta.discourse.org/t/how-to-prevent-the-updating-of-specific-user-fields/353627/1 "2025-02-21T15:31:51Z")

</div>

我使用 CSS 隐藏了某些用户字段。  
但是，它们仍然可以通过 Rails 控制台、API 或开发者工具进行更新。  
如何确保没有人可以通过上述方法更新这些字段（例如网站或位置）？

---

_[View the full topic](https://meta.discourse.org/t/how-to-prevent-the-updating-of-specific-user-fields/353627)._
