How do I stop someone from spamming "Trending Search Terms"?

Thanks @Canapin :+1:t2:

I was thinking I’d have to enable it via the rails console like some other hidden settings.

Would you happen to know what that value is measured in? Is it the number of searches allowed per minute or something?

Exactly this :slightly_smiling_face:

For the record, you can see the unit of time it uses here: discourse/app/controllers/search_controller.rb at 8222810099de787e844881da42df1702700b9760 · discourse/discourse · GitHub

RateLimiter.new(nil, "search-min-anon-global", SiteSetting.rate_limit_search_anon_global, 1.minute).performed!

I don’t know how Discourse works, but I always have a copy of the repo on my computer to search for some terms in the code and grab some info, it’s very helpful.

Github search is less effective and often doesn’t return anything.

Excellent, thanks @Canapin and @Falco I shall enable this setting and see how my search logs progress :slight_smile:

The difference is absolutely staggering.

Zero spam, proper stats.

:partying_face:

2026년에 이 주제를 다시 살펴보다

rate_limit_search_anon_global 사이트 설정은 2026년에 존재하지 않는 것으로 보입니다.

완전히 이해하지 못하는 설정들을 변경하기 전에, 로그인하지 않은 사용자의 검색 속도 제한을 조정하기 위해 이제 수정해야 할 설정들이 아래 내용과 맞는지 확인해 주실 수 있을까요?

그리고 이 변경 사항 이후에 앱을 다시 빌드해야 하나요? :thinking:

네, rate_limit_search_anon_global_per_minute으로 이름이 변경되었습니다.

좋아요, 확인해 주셔서 감사합니다 :smiley:

아니면, 변경 사항이 즉시 적용된 것 같습니다.