How to search Google by specific URL?
Asked Answered
B

2

10

I want to search for results from a specific site but only from a specific section of the site, I want to exclude results that have url segments, for example:

What I want to search for:

http://domain.com/productx

What I want to exclude

http://domain.com/productx/details/further

What query would I use in Google search to get the first results only above.

Barbrabarbuda answered 22/10, 2013 at 14:42 Comment(1)
This question appears to be off-topic because it is about using a web service. You may be able to get help on Web Applications.Cypriot
S
17
site:domain.com/productx -domain.com/productx/details/further

Eg. search all stack overflow but not unanswered directory:

site:stackoverflow.com -stackoverflow.com/unanswered
Sisterinlaw answered 29/10, 2013 at 18:42 Comment(1)
Have you tried this recently? It is my impression that this (or similar ways to exclude paths) used to work but does not anymore. (The site: still works of course, but excluding the paths does not).Thermel
T
2

Using Google advanced search page and directing it to search on one site only with terms appearing only in the text of the page would not search linked pages.

Tired answered 22/10, 2013 at 14:54 Comment(4)
is there a specific query using search operators?Barbrabarbuda
I believe intext is the operator for searching only on page text.Tired
I know there is inurl also, but how would I use this to exclude certain text or uri segments, i.e. I only want mydomain.com/products and not mydomain.com/products/s..Barbrabarbuda
The following should provide the functionality to search only on the specific page given and not any domains linked from said page -- allintext: term site:website.com/index.html (pardon the formatting as I'm on my phone)Tired

© 2022 - 2024 — McMap. All rights reserved.