3

I want to display of the indexed file from a particular section of my website.

So I type this into the address bar:

https://www.google.com/search?safe=off&q=site:example.com%2Fsubfolder%2F

I also want to exclude the PDF files that have been indexed. How do I change the URL I am using so that the results never include PDF files?

1 Answer 1

6

Using the inurl operator for Google should do the trick. Assuming your PDF files all have the .pdf extension, adding -inurl:pdf to your search will exclude those URLs.

https://www.google.com/search?safe=off&q=site:example.com%2Fsubfolder%2F+-inurl%3Apdf
1
  • 5
    Alternatively, you could use the filetype operator instead of inurl, eg. -filetype:pdf
    – MrWhite
    Commented Dec 21, 2015 at 20:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.