WebRTC makes it easier for people to communicate between browsers without installing additional software. WebRTC allows you to chat, meet online or share files with others.
However, WebRTC can also expose a device’s local and public Internet address, even if you choose to hide the device’s location by using a virtual private network (VPN). This phenomenon is collectively known as a WebRTC leak, as it exposes the user’s personal information. Once an advertiser or web host knows a device’s public Internet address, they can determine the region, city, and Internet service provider associated with that address.
If you don’t need WebRTC, you may want to disable or restrict it in your browser. You can prevent a WebRTC leak in many modern browsers.
How to disable WebRTC in Firefox
Of all modern browsers, Firefox is the only one that allows you to completely disable WebRTC.
1. Open Firefox, then type about: config where you normally enter a web address and press Enter (or, on some other system it is Return).
2. Click the button I accept the risk! This gives you access to many Firefox configuration settings.
3. In the search box at the top, type peer and press Enter.
4. Double-click the row media.peerconnection.enabled. The row will display in bold, and the value will change to false, this indicates that peer-to-peer connections are now disabled.
5. In the search box at the top, type media.navigator and press Enter.
6. Double-click the row media.navigator.enabled. The row will display in bold, and the value will change to false, indicates that device navigation is now disabled.
WebRTC will no longer work in Firefox on your device.
How to block WebRTC in Chrome, Firefox and Opera
You can block WebRTC with a browser extension, WebRTC Control. This extension is available to install in Chrome, Firefox and Opera.
1. Open the browser and go to https://mybrowseraddon.com/webrtc-control.html.
2. Select an icon for the browser (for example, Chrome, Firefox or Opera).
3. You should now be on the WebRTC Control extension page for your browser. Press Add to Chrome, Add to Firefox or Add to Opera to add the corresponding extension to Chrome, Firefox or Opera.
4. A prompt is displayed for you to allow the extension to access data for all websites, as well as read and modify the privacy settings. Choose Add (or Add extension) if you agree.
5. If you use Firefox or Opera, you may also need to press OK 1 more time, after the extension has been installed.
6. The extension icon appears in the upper right part of the browser.
7. When the circle is blue, WebRTC leak protection is enabled. Select the extension for state transitions.
How to block WebRTC in the new version of Microsoft Edge
Newer versions of Edge include a security feature that blocks local IP addresses over WebRTC. It’s simple to activate and protect from most leaks without an extension.
1. Open Edge.
2. Enter about: flags go to the address bar and press Enter.
3. Scroll down to find an option Hide my local IP address over WebRTC connections. Put a check mark in the box next to it.
4. A message will appear asking you to restart the browser. Close Edge and reopen it. Rerun the browser leak test to make sure WebRTC is no longer leaking your IP.
Block WebRTC on Microsoft Edge with extensions
The new version of Microsoft Edge also supports Chrome extensions. Like Chrome, Firefox, and Opera, the new version of Microsoft Edge is based on the open-source Chromium code, which is why extensions work with all of them.
1. Open the new version of Microsoft Edge and go to https://mybrowseraddon.com/webrtc-control.html.
2. Select the icon for Chrome, even if you are using the new version of Microsoft Edge.
3. Reminder “You can now add extensions from the Chrome Web Store to Microsoft Edge” will be displayed. Press Allow extensions from other stores.
4. The system will display a message that the extensions from other stores have not been verified. Press Allow.
5. Select Add to Chrome.
6. A prompt will be displayed for you to allow the extension to access data for all websites, as well as read and modify privacy settings. Choose Add extension, if you agree.
7. The extension icon will appear in the upper right part of the browser. By default, the extension will be enabled and active after you install it.
Source content: How to turn off WebRTC