Direct use of example.com/?s=something
-
Hi,
it looks like direct use of the search results page url, like example.com/?s=something, is overriding any content post type filtering I use on individual search boxes I create. In fact, it overrides any per box settings. Is this correct? Should there not be any check on where searches are initiated, like passing a nonce along with the result, to avoid direct url use?
Second related question, is there any way to limit the availability of the search function? I want only logged in users to be able to search, and I thought I had solved this by rendering the search box shortcode only to logged in users, but now I see non-logged in users can still make direct use of the search results page url, like example.com/?s=something. Please advise.
Thanks.
- The topic ‘Direct use of example.com/?s=something’ is closed to new replies.