WordPress sites search through the following values:
https://yoursite.com/?s=test
https://yoursite.com/?s=test&post_type=post
https://yoursite.com/?s=test&post_type=page
https://yoursite.com/?s=test&post_type=product
https://yoursite.com/?s=test&post_type=...
If DDos attacks are carried out on the site by the above values and different types of posts, the site's database will be down in a certain period of time depending on the amount of attacks, unless we disable the WordPress search option or limit the search option to member users. Is there any other solution to prevent this type of attacks?
In this type of attack, a lot of pressure comes to the server, especially shared hosts.
I used all the security plugins, but none of them stopped this type of attack!