Linux – How to disable indexing in a specific directory across multiple platforms

file searchlinuxmacoswindows 7

I have some files that will be accessed across several platforms (Mac OS X and Windows 7 mainly, but I wouldn't rule out Linux in the future) and I do not want these files indexed by the search services of the platforms (there will be some DB dumps and I don't want sensitive info put into the search tables).

As I recall, I can block indexing of a directory in OS X by placing a specially named file there (it may have line of text inside of it, it's been a while and I don't remember). Is there something like that in Windows?

How do I block indexing of a certain directory for Mac OS X, Windows (and possibly Linux)?

Best Answer

Windows Search only indexes a few locations by default (see screenshot below); all others have to be included specifically in the index. To edit the settings just start typing "indexing options" or "search" in the Start Menu search box and click the relevant result:

1

There you can see the currently indexed locations and modify them as required:

2 3

You can also change advanced indexing options if required:

5 6

Related Question