How to stop search spam queries

I keep seeing a lot of spam queries on my google and bing search console, spam queries that look like this: [https://prnt.sc/dryR0Q1CWGUB](https://prnt.sc/dryR0Q1CWGUB) and other Chinese spam.

These pages are not being indexed thanks to Yoast SEO, it adds a no-index tag to the search pages, but I need to stop these spammy search queries from reaching the google search console, is there any way I could do that? I feel like it’s affecting my google rankings.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer