Enable Edge tracking prevention
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Windows onlyThis script improves your privacy on Windows
- Impact: MediumSystem Functionality Loss Risk: Moderate
This action improves privacy with minimal impact when you run the recommended script.
This action improves privacy with some impact when you run the recommended script. - Batch (batchfile)These changes use Windows system commands to update your settings.
- 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 configures Microsoft Edge's tracking prevention to the 'Strict' level, enhancing user privacy by blocking extensive web tracking
The tracking prevention feature in Microsoft Edge restricts online trackers from accessing browser storage and network resources, which helps safeguard user data 1. By default, the 'Balanced' level is activated 1 2. While the 'Balanced' level does not block ads or analytics 1, this script activates the 'Strict' level to provide a higher degree of privacy by blocking these elements 1. Although recommended for maximum privacy, the 'Strict' level may disrupt some website functionalities 3 4.
Authorities like The Defense Information Systems Agency (DISA) 4 and The Center for Internet Security (CIS) 2 recommend this script for enhanced security. DISA categorizes the absence of this setting as a medium severity security vulnerability 4.
Once applied, this script prevents users from changing the tracking prevention level themselves 3 4.
This script configures the TrackingPrevention
Edge policy 1 2 3 4.
Running this script does not require a browser restart for the changes to take effect 2.
- This will display the message "Your browser is managed by your organization" on the settings page.
- This locks settings and prevents them from being changed on the settings page.
- Aggressive tracking prevention may cause some websites to not function properly.
This script is only recommended if you understand its implications.
Some non-critical or features may no longer function correctly after running this script.
This script can be fully reversed to restore changes if something goes wrong.
Sources
- Tracking prevention in Microsoft Edge - Microsoft Edge Developer documentation. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/microsoft-edge/web-platform/tracking-prevention
Archived: https://web.archive.org/web/20240623143037/https://learn.microsoft.com/en-us/microsoft-edge/web-platform/tracking-prevention - CIS Microsoft Edge Benchmark v1.0.0. paper.bobylive.com. (2024).
Original: https://paper.bobylive.com/Security/CIS/CIS_Microsoft_Edge_Benchmark_v1_0_0.pdf
Archived: https://web.archive.org/web/20240625064922/https://paper.bobylive.com/Security/CIS/CIS_Microsoft_Edge_Benchmark_v1_0_0.pdf - Microsoft Edge Browser Policy Documentation. Microsoft Learn. learn.microsoft.com. (2024).
Original: https://learn.microsoft.com/en-us/deployedge/microsoft-edge-policies
Archived: https://web.archive.org/web/20240517212443/https://learn.microsoft.com/en-us/deployedge/microsoft-edge-policies#trackingprevention - Tracking of browsing activity must be disabled.. www.stigviewer.com. (2024).
Original: https://www.stigviewer.com/stig/microsoft_edge/2023-06-02/finding/V-235766
Archived: https://web.archive.org/web/20240623143146/https://www.stigviewer.com/stig/microsoft_edge/2023-06-02/finding/V-235766
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 "Enable Edge tracking prevention" 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 "Enable Edge tracking prevention" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Enable Edge tracking prevention
- 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
:: Configure "TrackingPrevention" Edge policy
:: Set the registry value: "HKLM\SOFTWARE\Policies\Microsoft\Edge!TrackingPrevention"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SOFTWARE\Policies\Microsoft\Edge'; $data = '3'; reg add 'HKLM\SOFTWARE\Policies\Microsoft\Edge' /v 'TrackingPrevention' /t 'REG_DWORD' /d "^""$data"^"" /f"
Ijo6IFJlc3RvcmUgXCJUcmFja2luZ1ByZXZlbnRpb25cIiBFZGdlIHBvbGljeVxuOjogRGVsZXRlIHRoZSByZWdpc3RyeSB2YWx1ZSBcIkhLTE1cXFNPRlRXQVJFXFxQb2xpY2llc1xcTWljcm9zb2Z0XFxFZGdlIVRyYWNraW5nUHJldmVudGlvblwiXG5Qb3dlclNoZWxsIC1FeGVjdXRpb25Qb2xpY3kgVW5yZXN0cmljdGVkIC1Db21tYW5kIFwicmVnIGRlbGV0ZSAnSEtMTVxcU09GVFdBUkVcXFBvbGljaWVzXFxNaWNyb3NvZnRcXEVkZ2UnIC92ICdUcmFja2luZ1ByZXZlbnRpb24nIC9mIDI+JG51bGxcIiI=
Help
How to apply or restore "Enable Edge tracking prevention" 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.
- Harden Edge privacy
- Configure Edge
- Configure browsers
- Configure programs
This category contains scripts designed to enhance privacy settings in Microsoft Edge by reducing tracking mechanisms encountered during web browsing. Th...
This category contains scripts that adjust Microsoft Edge settings to enhance privacy, security, and potentially improve system performance This category...
This category includes scripts that enhance privacy by adjusting browsers to prevent tracking, minimize data leaks, and restrict personalized ads. These ...
Same Goal
Other guides in Harden Edge privacy See 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
- Audited and verified using automated security tests
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
- Audited and verified using third-party security software
History
We continually monitor our guides, their impact and other potential 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.