A shield is not one thing. Under the name sit four different mechanisms — deleting the constructor, wrapping it to drop candidates, forcing a relay, or leaning on a browser policy — and they fail in four different ways. What they share is a promise: the address stays hidden. What we measured is how much of that promise survives a second look from inside the same page.
Four implementations, three probes each: what the candidate event delivers, what the constructor looks like to the page that calls it, and what getStats() returns for the very same connection. One shield was bypassed by an iframe, one handed the address straight back, and two announced themselves in a single line of JavaScript.
A shield edits what the page is told; it does not stop the question being asked.
measured
Deletion is the oldest: remove window.RTCPeerConnection before page scripts run, and no page can open a peer connection at all. Filtering keeps the constructor and intercepts the candidate event, dropping the lines that carry an address. Forcing rewrites the configuration so that only a relay may be used. Policy leaves the page alone and sets an IP-handling value at browser level — the path we found inert in the prevention comparison, which is why it is not in the table below.
The naming is marketing; the mechanism decides the outcome. One detail separates a shield from a shield-shaped hole: a content script reaches only the frames it is told to reach, and the default is the top frame alone.
There is one property the filtering family cannot have. Deletion stops the peer connection from existing and relay-forcing stops it from gathering, but a filter runs after the fact: the browser already asked the STUN server, already received the mapping, and already knows the address. The filter only decides that the page is not told.
That distinction is the whole page: if the site must not learn the address, a filter is the wrong shape of answer; if the page must not display it, a filter works — and announces itself doing so.
| Shield mechanism | Candidates on the page | Constructor probe | getStats() readback | Same-origin iframe |
|---|---|---|---|---|
| None, reference run | 2: host and reflexive | native source | 5 entries, address present | 2 candidates |
| Constructor deleted, top frame only | 0 | property absent, stringify throws | nothing to inspect | 2 candidates, address present |
| Wrapped, reflexive dropped | 1: host only | wrapped source, identity broken | 5 entries, address present | 1 candidate |
| Wrapped, relay forced | 0 | wrapped source, identity broken | no connection to inspect | 0 candidates |
Read the first column as what a visitor would see on a leak test: the deletion shield and the relay shield both show nothing, and they are not the same product. The deletion shield shows nothing in the top frame while the iframe beside it gathers a full pair — same page, same request, two answers.
The constructor column is the fingerprint. An untouched constructor stringifies to 46 characters and says native code; the wrappers came in at 537 and 85, neither native. A connection created through a wrapper also reports the wrapper as its own constructor, so the identity check fails.
The stats column is where filters lose the argument. getStats() reports candidates the transport actually gathered, not the subset the event was allowed to deliver, so dropping a line from the event leaves it sitting in the report. Any script on the page can read it, and no wrapper short of stubbing the stats API hides it.
The iframe column is the deployment mistake: a top-frame-only shield left a same-origin iframe with its own untouched constructor, gathering exactly what the top frame was denied.
In the filtered run the event delivered one line, a host candidate with a .local label. The connection behind it returned five local-candidate entries, one of them the hidden line: type srflx, address 14.155.235.106, port 52296, protocol UDP. The wrapper had replaced the listener, not the connection.
Timing agrees: the filtered run took 539 ms to finish gathering against 233 ms untouched — the excess is the STUN exchange happening anyway.
Deletion avoids both tells by removing the connection, and pays for it with two of its own. A browser in which the constructor property is simply absent is not a normal browser, and stringifying it throws rather than returning source. Either fact is one line of JavaScript away from a page that cares, and the iframe keeps working unless every frame was covered.
Relay-forcing is the only mechanism in the set that leaves nothing behind: zero candidates in the page frame and zero in the iframe, because without a TURN server there is no route to gather. It also leaves nothing to connect with, which makes it a switch rather than a shield.
| What the shield claims | What to run | What a broken shield shows |
|---|---|---|
| The page cannot open a peer connection | Type check and stringify the constructor | A wrapped function, or a property that vanished |
| The address is never shown to the page | Read the candidate event, then getStats() | An srflx entry the event never delivered |
| Every frame is covered | Create a same-origin iframe and gather inside it | Two candidates where the top frame had none |
| Calls still work | Place a call or check for any candidate at all | Relay-only with no TURN, so nothing gathers |
Run these against the shield, not the settings panel. The WebRTC leak test covers the first two checks in a browser; the iframe check is the one nobody runs and the one that finds the hole.
Then decide what the shield is for. Hiding the line from the page while the network keeps the mapping is a privacy gesture, not a network change — useful against a page that merely displays what it is told, useless against one that compares the address with your HTTP exit, which is the comparison the candidate-line breakdown describes.
For a fleet, add one more check: the same probes on every profile. A shield applied to some profiles and not others produces exactly the inconsistency a fingerprint review looks for, since a wrapped constructor on one profile and a native one on its siblings is a difference with no innocent explanation. The fingerprint test reads that signal next to the rest.
A shield can hide a line from a page; it cannot un-ask the question. Pick the mechanism that matches what you need hidden, then verify it one probe per claim, on the frame that matters.
Running antidetect or multi-account profiles? A shield whose wrapper is visible on one profile and absent on the next is a fingerprint difference, not a privacy setting.
Download RoxyBrowserRoxyBrowser keeps per-profile WebRTC behaviour consistent across the fleet.
Not the filtering kind. In our run a shield that dropped server-reflexive candidates from the event delivered one host line and nothing else, while the same connection still gathered for 539 ms against 233 ms untouched, and getStats() returned five local-candidate entries with 14.155.235.106 on port 52296. The query left and the answer came back; only the display was edited. Deleting the constructor does stop it in that frame, and forcing relay-only stops it by removing every candidate including the ones a call needs.
Usually because the shield never reached the frame that gathered. A content script without the all_frames flag runs in the top frame by default, and a same-origin iframe keeps its own constructor: in our run the top frame reported nothing while the iframe gathered two candidates, one of them the public address. If frames are covered too, the address is arriving by another route — the HTTP exit or a resolver — and the peer channel was never the leak.
Yes, in one line of JavaScript, for the wrapping kind. An untouched constructor stringifies to 46 characters containing native code; our filtered wrapper stringified to 537 and our relay wrapper to 85, neither native. The identity check fails as well, because a connection made through a wrapper reports the wrapper rather than itself. A deleted constructor is its own anomaly: the property is gone and stringifying it throws.
They answer different questions. A filter changes what the page is told while the connection behaves normally, so the honest claim is that the page is not shown the address, not that the network never learned it. Turning the protocol off or forcing relay removes the lines themselves, and both break the calls that needed them. If your requirement is calls plus no address, the answer is a relay you control, not a shield.