Excellent software and practical tutorials
WordPress Basically all the pages of the website are generated by reading the data stored in the database in real time according to the user's request. This leads to a problem. Some websites with low server configuration are easily attacked by malicious people, causing the server CPU usage and load status to be full. Especially the built-in search function of WordPress is easy to be exploited. Let me share with you a method that can limit the built-in search of WordPress within a certain period of time.Number of searchesmethod.
WordPress built-in search limits the number of searches within a certain period of time
Install the Search Limiter & Blocker plugin. It can limit the number of searches that users on your WordPress website can perform.WordPress Search Frequency
Note: You can set a search time limit and the number of searches within a certain period for visitors. The plugin automatically detects the visitor's IP address and counts each search behavior of these IP addresses. The plugin is compatible with the latest version of WordPress.
The setting is very simple. As shown in the figure below, there are three input boxes, which are used to limit the number of searches made by visitors, the search time interval, and the prompt after prohibiting the search.

OK, that's it. Of course, using plugins can onlyLimit SearchHowever, when the number of users is large, using this plug-in can indeed reduce the pressure on the server.
Common settings are once every 10 seconds, once every 30 seconds, or once every 60 seconds to prevent users or malicious requests from searching too frequently.
Search Limiter & Blocker Features
- Search Limit (Count): Limit the number of WordPress searches
- Block Time (in seconds): Limit WordPress search time
- Message for blocked visitor: WordPress prohibits search prompts