GiliSoft File Lock Pro

Keep private folders out of ordinary Windows browsing and place access behind a local master password.

  • Hide files, folders, and complete drives
  • Lock access without uploading data
  • Protect local, external, and shared folders
Hide private folders on Windows with GiliSoft File Lock Pro
Windows 11/10 Search Privacy Guide

How to Hide a Folder from Windows Search

Windows offers several ways to reduce where a folder appears, but they solve different problems. Excluding a location changes the Windows Search index. The Hidden and Not Content Indexed attributes change ordinary discovery. Neither one is a password or access-control boundary. This guide shows what each setting does, how to remove old traces, and when a local folder-locking tool is the more appropriate choice.

Windows 11 and 10Excluded foldersIndexing OptionsHidden attributeLocal folder privacy
Quick answer

For Windows 11, open Settings > Privacy & security > Searching Windows and add the location under Exclude folders from enhanced search. On Windows 10, use Settings > Search > Searching Windows. This removes the location from the Windows index; it does not hide the folder in File Explorer or prevent another user from opening it.

What Does "Hide from Windows Search" Mean?

Windows exposes files through more than one surface. Before changing a setting, decide which result you actually need:

Reduce search clutterExclude the folder from the Windows Search index. The folder remains visible and usable in File Explorer.
Do not index document textTurn off content indexing. A file name or path may still be discoverable even though text inside the file is not indexed.
Hide from casual browsingApply the Hidden attribute. Anyone can reveal it with View > Show > Hidden items.
Keep a folder privateUse password-based hiding or locking. Search exclusions and attributes are not access control.

Compare the Available Methods

MethodChanges Windows SearchHides in ExplorerStops accessBest use
Excluded folderYes, for that locationNoNoReducing indexed results
Classic Indexing OptionsYes, for selected locationsNoNoManaging Classic index scope
Not Content IndexedLimits content indexingNoNoKeeping document text out of the index
Hidden attributeMay reduce ordinary resultsOnly while Hidden items is offNoCasual concealment
File Lock Pro hiding Private useRemoves the hidden item from ordinary viewsYes while hiddenPassword controls restorationLocal private folders
Important distinction: Windows Search exclusions control Microsoft's index. Direct path access, File Explorer browsing, cloud search, and third-party search applications are separate.
1

Exclude a Folder from Windows Search

This is Microsoft's clearest option when the goal is a cleaner local search index.

Open Settings. In Windows 11, go to Privacy & security > Searching Windows. In Windows 10, go to Search > Searching Windows.

Find Exclude folders from enhanced search and select Add an excluded folder.

Select the target folder and confirm that it appears in the exclusion list.

Search for a distinctive file name from that folder after Windows has updated the index.

Microsoft explains that Enhanced mode searches the PC broadly except excluded folders, while Classic mode focuses on common profile locations and locations selected through Indexing Options.

2

Remove a Location in Classic Indexing Options

Use this route when Windows Search is configured around the Classic index scope.

Search Windows for Indexing Options, or open Advanced indexing options from Searching Windows.

Select Modify.

Expand the drive tree and clear the checkbox beside the folder or parent location you no longer want indexed.

Confirm the change and allow the index to reconcile. Rebuild the index only when stale results persist.

Do not start with a rebuild. Rebuilding can take time and is mainly a troubleshooting step after the scope is correct.
3

Stop Windows from Indexing File Contents

This can keep document text out of the index without pretending the folder itself is secret.

Right-click the folder, select Properties, and choose Advanced.

Clear Allow files in this folder to have contents indexed in addition to file properties.

Apply the change to the folder, subfolders, and files, then test both a file-name search and a phrase from inside a document.

Advanced folder property for content indexing
Disabling content indexing is narrower than excluding the folder: names and properties may still be searchable.

Administrators can apply the same attributes from Command Prompt. Microsoft documents +h as Hidden and +i as Not Content Indexed:

attrib +h +i "C:\Private" attrib +h +i "C:\Private\*" /s /d

To undo both attributes:

attrib -h -i "C:\Private" attrib -h -i "C:\Private\*" /s /d
4

Use the Hidden Attribute for Casual Concealment

This removes a folder from ordinary directory views, but it is deliberately easy to reverse.

Right-click the folder, choose Properties, check Hidden, and apply the attribute to the selected folder and its contents.

In File Explorer, keep View > Show > Hidden items turned off.

Test the folder in Start search, File Explorer search, and its parent folder.

Set the Hidden attribute on a Windows folder
The Hidden checkbox changes ordinary visibility.
Show Hidden items in File Explorer
Any user who enables Hidden items can reveal the folder again.
Do not use this as a security claim. The Hidden attribute does not encrypt data, request a password, or deny a user who already has file permissions.

Remove Old Search and Explorer Traces

A correctly excluded folder can still appear somewhere else because Windows has several discovery surfaces. Review these after changing the index:

  • File Explorer Home or Quick Access: unpin the folder and clear recent files from File Explorer Options if it was previously opened.
  • Device search history: open Search permissions and clear device search history when old queries keep suggesting the name.
  • OneDrive or work-account results: Windows can surface cloud content separately. Review Search permissions and the cloud service's own search behavior.
  • Third-party search tools: applications such as desktop indexers maintain their own databases and require their own exclusion rules.
5

Hide a Private Folder with GiliSoft File Lock Pro

Choose this when the folder should disappear from ordinary Windows views and restoration should require a local master password.

Open GiliSoft File Lock Pro and enter the master password.

Choose Local Disk > Hiding File.

Select Hide Files/Folders, add the target folder, and apply the action.

Verify the result in File Explorer and Windows Search. Keep the recovery email and password information secure.

GiliSoft File Lock Pro Hiding File screen
Use Hiding File when the folder should not remain visible. Use Locking File when it should remain visible but require controlled access.

Why Does the Folder Still Appear?

What you still seeLikely reasonWhat to check
Old Start-menu resultThe index has not reconciled yetConfirm the exclusion, wait, then rebuild only if the stale result remains
Folder in File ExplorerSearch exclusion does not hide browsingUse Hidden for casual concealment or password-based hiding for private data
Folder in Home or Quick AccessRecent-item history is separateUnpin it and clear File Explorer history
OneDrive resultCloud content is surfaced separatelyReview Search permissions and OneDrive search/history
Result in another search appThe app has its own indexAdd an exclusion in that application

Privacy Checklist Before You Finish

Search for a unique file name

Test a name that exists only inside the target folder, not just the folder name.

Test direct browsing

Index exclusion is successful even though the folder remains visible. Decide whether that is acceptable.

Check recent and cloud surfaces

Quick Access, device history, and OneDrive are not the same as the local index.

Keep a verified backup

Hiding, locking, and index settings are not substitutes for a recoverable backup.

Frequently Asked Questions

Does the Hidden attribute remove a folder from Windows Search?

It can keep the folder out of ordinary views while Hidden items is off, but it is not reliable access control. Another user can reveal hidden items or browse directly to the path.

Can other users review excluded folders?

The Windows Search settings expose configured exclusions to users who can open that page. Treat exclusion as a search preference, not secrecy.

Why does an excluded folder still appear?

The result may be stale, pinned in Quick Access, stored in search history, coming from OneDrive, or supplied by another search tool.

Does exclusion hide a folder in File Explorer?

No. It changes the Windows Search index scope. It does not remove the folder from normal browsing.

Can I prevent content indexing but keep names searchable?

Yes. Clear the folder's content-indexing attribute. Windows may still index properties such as the name and path.

Does the exclusion automatically cover OneDrive search?

Not necessarily. Windows Search can include cloud results, while OneDrive also has its own search behavior. Check both surfaces.

Research Sources

Windows paths and attribute meanings were checked against Microsoft documentation. External guides were used to compare common reader workflows; product instructions were verified against the current File Lock Pro interface.

Keep Private Folders Out of Ordinary Windows Views

Use GiliSoft File Lock Pro when search exclusions and the Hidden attribute do not provide the local privacy you need.