One way to address this is to generate a new Search API Key with reduced queries:Rate Limiting an API Key. The rate of the limit is up to you; we generally recommend starting with a higher number (in order to avoid limiting real users) and reduce it gradually based on the usage/fake bots.
To fully resolve the issue, however, the searches themselves need to be prevented. While you cannot block IP addresses with Algolia, your web host/infrastructure provider is a good point of contact for advice on mitigating bot searches on your website. You can also investigate blocking IP addresses from your own site search.
You can also review the articles like this one:
Monitoring Search Operations
How do I look at my logs on the Algolia Dashboard?
Here are some other resources that may be helpful:
- Cloudflare has good measures against this:https://www.cloudflare.com/security/malicious-bot-abuse
- You could also implement the latest Google reCAPTCHA:https://www.google.com/recaptcha, which is a very efficient way to protect yourself against bots
- Lastly, you could check your robots.txt to ensure it contains the appropriate configuration to allow/deny search engine crawling