Block Edge third party cookies
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: Medium
System Functionality / Data 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.
- 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 blocks third-party cookies in Microsoft Edge, enhancing your privacy by reducing tracking across various webpages.
It prevents websites from setting cookies unless they match the domain in the address bar 1. This action limits potential tracking activities by third-party entities, which could otherwise track your web activities and gather information about you 2.
Third-party cookies are enabled and not blocked by default on Edge 1.
Disabling third-party cookies may impact the performance of websites like Microsoft 365 or Salesforce, which depend on these cookies for some of their features 2.
Authorities like The Center for Internet Security (CIS) 1 recommend this script for enhanced security.
- 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.
- Some websites may not function properly without third-party cookies.
Technical Details
This script configures the BlockThirdPartyCookies
Edge policy 1 2.
Running this script does not require a browser restart for the changes to take effect 1.
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
- 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#blockthirdpartycookies - 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
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
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
- Apply
- Revert
:: Configure "BlockThirdPartyCookies" Edge policy
:: Set the registry value: "HKLM\SOFTWARE\Policies\Microsoft\Edge!BlockThirdPartyCookies"
PowerShell -ExecutionPolicy Unrestricted -Command "$registryPath = 'HKLM\SOFTWARE\Policies\Microsoft\Edge'; $data = '1'; reg add 'HKLM\SOFTWARE\Policies\Microsoft\Edge' /v 'BlockThirdPartyCookies' /t 'REG_DWORD' /d "^""$data"^"" /f"
Ijo6IFJlc3RvcmUgXCJCbG9ja1RoaXJkUGFydHlDb29raWVzXCIgRWRnZSBwb2xpY3lcbjo6IERlbGV0ZSB0aGUgcmVnaXN0cnkgdmFsdWUgXCJIS0xNXFxTT0ZUV0FSRVxcUG9saWNpZXNcXE1pY3Jvc29mdFxcRWRnZSFCbG9ja1RoaXJkUGFydHlDb29raWVzXCJcblBvd2VyU2hlbGwgLUV4ZWN1dGlvblBvbGljeSBVbnJlc3RyaWN0ZWQgLUNvbW1hbmQgXCJyZWcgZGVsZXRlICdIS0xNXFxTT0ZUV0FSRVxcUG9saWNpZXNcXE1pY3Jvc29mdFxcRWRnZScgL3YgJ0Jsb2NrVGhpcmRQYXJ0eUNvb2tpZXMnIC9mIDI+JG51bGxcIiI=
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. These script...
This category contains scripts that adjust Microsoft Edge settings to enhance privacy, security, and potentially improve system performance This category is design...
This category includes scripts that enhance privacy by adjusting browsers to prevent tracking, minimize data leaks, and restrict personalized ads. These changes he...
Configure programs — to create a safe and private environment from online privacy protection on Windows. Important to mention, to roll back this adjustment, follow...
Same Goal
Other guides in Harden Edge privacySee 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.