Hi anonymous user
You should change the query in the Search Results Web Part.
You can refer to the following two examples:
How to exclude "AllItems.aspx" from the search results Webpart ?
Exclude AllItems.aspx from Search Results in Content Search Web Part
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.