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

I don’t know why they’re doing this and what do they want. Any ideas? Thanks!

Have you seen this @sam? Odd.

This happens in Google Analytics all the time — the hope is that the searches are published somewhere or an admin visits the link.

I wonder if the same user is spamming these? Could we possibly look for a user who is searching for a url hundreds of times and flag their account?

13 个赞

For a lot of communities it’s uncommon for users to search URLs at all, so it probably doesn’t even need to be hundreds.

2 个赞

It sure is a very frustrating abuse factor, maybe we should auto eliminate spammers from the list, same IP or user, a gazzilion searches

I really would like to see the raw data here

Have not seen this before on our sites

5 个赞

I can send you the raw data for sure; which file is it?

Have been seeing this myself lately – anything I can do to send data along or get it looked at? This thread seems to have died down. Thanks!

Where have you seen it exactly? Can you share a screenshot?

4 个赞

Would a “simple” fix be to just block anonymous users from searching for anything that regexes like a domain?

It looks like you could win by simply banning all searches for .cn domains, somehow, but the actual impact is so low here (and what they are doing is so pointlessly ineffective) it’s hard to justify any engineering effort.

3 个赞

Our site is seeing something similar, but slightly different.

We appear to have some kind of bot performing a daily search on our forum for a few keywords.

Is there a way to block specific search terms?

Or, a way to link a search term to an IP address, then in turn to block that IP?

These, for example, are significantly skewing our search term data analysis:

Screen Shot 2020-07-17 at 21.59.44

Capybara is part of discobot. That you see that is a good sign that discobot is working and people are making it through the new user tutorial.

The others I do not recognize.

I am not sure what the issue is honestly with having some random keywords on this list. A bit weird, sure, but you are the only one who sees it.

Maybe some ability to prune this list would be interesting. Eg never show me again how many people searched for capybara on my site. But not a high priority methinks.

4 个赞

Sorry to revive this old topic, I am facing a lot of the same spam.
How would one ban all searches for .cn domains?

I’ve already added a filter to the blocked word list, but searches are still coming through

Not sure what the point of these are, but it’s extremely annoying to see so much spam between search logs :confused:

3 个赞

This started happening this week on our site too! For now, the numbers are negligible…

2 个赞

我们的搜索结果中仍然充斥着各种无用的内容。

我猜它某种程度上是(搜索)机器人,因为它都在一天内涌入,然后消失一个月。

我尝试将一些关键词添加到我们的屏蔽词列表中,但这似乎并不能阻止人们搜索这些关键词,它只阻止他们发布这些词。

我确定我以前问过这个问题,我们能否关闭未登录用户的搜索功能?

或者任何人有什么建议来解决或规避这个问题?当搜索日志充满了机器人/垃圾信息时,它们毫无意义 :confused:

1 个赞

因为最初:

但现在我们的搜索日志简直毫无用处。

看看这个:

整个月只有一次有效的搜索。

这太没用了 :confused:

我真心欢迎任何关于如何解决此问题或如何阻止未登录用户进行搜索的建议。

有一个名为 rate_limit_search_anon_global 的隐藏站点设置可用于限制此操作。

4 个赞

谢谢 @Falco

它期望的是布尔值还是整数值?

详细信息在 site_settings.yml 中,它期望一个整数值:

2 个赞