I see this being outside the scope of Relevanssi. There are filters you can use: just add a check on pre_get_posts for example, and if the search query seems to be spam, just terminate the search.
Thread Starter
Eric
(@ekazda)
Mikko, I mention this because Relevanssi shows top search keywords, and if spam searches are being submitted, then those top searchers are practically useless. The fact that only top keywords are shown and not a complete list makes it even more useless if spam searches are being stored.
Sure. But I still see spam protection being outside of scope for Relevanssi. How do you recognise search spam in the first place? I don’t have a good idea that works for everybody.
Also, you have full access to the logs. Want to clean out spam searches from the logs? Go ahead, you can do that. Want to create a list that shows all the searches? That’s possible.
The logs are in wp_relevanssi_logs, just do whatever you want with that information. That is an area where the conscious decision has been to leave the advanced use cases for users to handle, Relevanssi will only provide the basic functionality.
Thread Starter
Eric
(@ekazda)
I’ll take a look at the logs. I guess I have to FTP to the server to see those directly?
Use phpMyAdmin or something like that.