I need to block some accesses to search results not the whole page, just the results.
The problem is, I need the search SQL query to not happen AT ALL. (I can conditionaly hide the output loop template very easily, I'm just not sure SQL is not happening).
Where would I prevent such thing (I assume some filter/action hook I just could not find the right one)?
EDIT: Please note, that the page needs to be loaded and displayed, otherwise I would proceed with request blocking approach like