Disable iFilters and protocol handlers
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: Minimum
System Functionality / Data Loss Risk: Low
This action improves privacy with minimal impact when you run the recommended script.
- Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script enhances the security of Windows Desktop Search by restricting the use of iFilters and protocol handlers 1.
These components enhance Windows search capabilities by enabling the indexing of specific file types and the processing of various file protocols 2 3. By default, Windows Desktop Search can use any installed iFilters and protocol handlers 1, which might pose a security risk if untrusted components are used.
The script configures the system to only use iFilters and protocol handlers that are explicitly listed in an 'allow list' 1. It does not prevent the installation of new iFilters or protocol handlers, nor does it restrict their use by other applications 1.
This measure is particularly useful for preventing unauthorized or potentially harmful search-related add-ins from being used by Windows Desktop Search, thereby enhancing the overall security of the system.
Sources
- Prevent unwanted iFilters and protocol handlers. admx.help. (2024).
Original: https://admx.help
Archived: https://web.archive.org/web/20240121002144/https://admx.help/?Category=Windows_10_2016&Policy=FullArmor.Policies.3B9EA2B5_A1D1_4CD5_9EDE_75B22990BC21::PreventUnwantedAddins - Developing Filter Handlers for Windows Search - Win32 apps. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/windows/win32/search/-search-ifilter-conceptual
Archived: https://web.archive.org/web/20240121002129/https://learn.microsoft.com/en-us/windows/win32/search/-search-ifilter-conceptual - Registering Filter Handlers - Win32 apps. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/windows/win32/search/-search-ifilter-registering-filters
Archived: https://web.archive.org/web/20240121002136/https://learn.microsoft.com/en-us/windows/win32/search/-search-ifilter-registering-filters
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable iFilters and protocol handlers" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable iFilters and protocol handlers" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable iFilters and protocol handlers
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Set the registry value: "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search!PreventUnwantedAddIns"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search'; $data = ' '; reg add 'HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search' /v 'PreventUnwantedAddIns' /t 'REG_SZ' /d "^""$data"^"" /f"
:: Suggest restarting explorer.exe for changes to take effect
PowerShell -ExecutionPolicy Unrestricted -Command "$message = 'This script will not take effect until you restart explorer.exe. You can restart explorer.exe by restarting your computer or by running following on command prompt: `taskkill /f /im explorer.exe & start explorer`.'; $warn = $false; if ($warn) { Write-Warning "^""$message"^""; } else { Write-Host "^""Note: "^"" -ForegroundColor Blue -NoNewLine; Write-Output "^""$message"^""; }"
Ijo6IERlbGV0ZSB0aGUgcmVnaXN0cnkgdmFsdWUgXCJIS0xNXFxTT0ZUV0FSRVxcUG9saWNpZXNcXE1pY3Jvc29mdFxcV2luZG93c1xcV2luZG93cyBTZWFyY2ghUHJldmVudFVud2FudGVkQWRkSW5zXCJcblBvd2VyU2hlbGwgLUV4ZWN1dGlvblBvbGljeSBVbnJlc3RyaWN0ZWQgLUNvbW1hbmQgXCJyZWcgZGVsZXRlICdIS0xNXFxTT0ZUV0FSRVxcUG9saWNpZXNcXE1pY3Jvc29mdFxcV2luZG93c1xcV2luZG93cyBTZWFyY2gnIC92ICdQcmV2ZW50VW53YW50ZWRBZGRJbnMnIC9mIDI+JG51bGxcIlxuOjogU3VnZ2VzdCByZXN0YXJ0aW5nIGV4cGxvcmVyLmV4ZSBmb3IgY2hhbmdlcyB0byB0YWtlIGVmZmVjdFxuUG93ZXJTaGVsbCAtRXhlY3V0aW9uUG9saWN5IFVucmVzdHJpY3RlZCAtQ29tbWFuZCBcIiRtZXNzYWdlID0gJ1RoaXMgc2NyaXB0IHdpbGwgbm90IHRha2UgZWZmZWN0IHVudGlsIHlvdSByZXN0YXJ0IGV4cGxvcmVyLmV4ZS4gWW91IGNhbiByZXN0YXJ0IGV4cGxvcmVyLmV4ZSBieSByZXN0YXJ0aW5nIHlvdXIgY29tcHV0ZXIgb3IgYnkgcnVubmluZyBmb2xsb3dpbmcgb24gY29tbWFuZCBwcm9tcHQ6IGB0YXNra2lsbCAvZiAvaW0gZXhwbG9yZXIuZXhlICYgc3RhcnQgZXhwbG9yZXJgLic7ICR3YXJuID0gICRmYWxzZTsgaWYgKCR3YXJuKSB7IFdyaXRlLVdhcm5pbmcgXCJeXCJcIiRtZXNzYWdlXCJeXCJcIjsgfSBlbHNlIHsgV3JpdGUtSG9zdCBcIl5cIlwiTm90ZTogXCJeXCJcIiAtRm9yZWdyb3VuZENvbG9yIEJsdWUgLU5vTmV3TGluZTsgV3JpdGUtT3V0cHV0IFwiXlwiXCIkbWVzc2FnZVwiXlwiXCI7IH1cIiI=
Help
How to apply or restore "Disable iFilters and protocol handlers" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable privacy-invasive indexing
- Disable Windows search data collection
- Disable OS data collection
This category is dedicated to preventing privacy-invasive indexing features within Windows. Indexing can include details from emails, documents, and other files th...
This category is dedicated to minimizing the personal data collected and utilized by Windows Search and Cortana. It encompasses a range of scripts designed to curt...
Disable OS data collection — to reduce data exposure leveraging important data privacy safeguard on Windows. What follows is, this guidance provides instructions t...
Same Goal
Other guides in Disable privacy-invasive indexingSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.