Search Exclude (Node)

A default search page looks for content in all content types. If you want to hide some content using roles and permissions, the search pages continue to index this hidden content. When a user clicks these search results, they will get a page with no access. We want to avoid this.

Add a new search page, type Content (exclude).

 

Screen000286.png

Screen000288.png

Filter what you don't want.
Screen000287.png


Put this page as default and hide the rest.


Screen000289.png
Screen000290.png