botrefund.com
← BotRefund 首页 信号解释

元素布局矩形一致性

BotRefund mounts two stacked 100x50 px elements inside a 100 px container and checks whether getBoundingClientRect() parent height matches the sum of both children within 0.001 px.

检测内容

The layout probe temporarily appends a hidden 100 px-wide container holding two stacked 100x50 px child <div> elements with zero margin, padding, and border, calls getBoundingClientRect() on the parent and both children, and immediately removes the container.

It flags a geometry inconsistency whenever the absolute difference between the parent element's height and the sum of the two child heights exceeds 0.001 px.

为何重要

Anti-detect browsers and privacy shims that defeat DOMRect fingerprinting by adding independent random sub-pixel noise to every getBoundingClientRect() call break mathematical additivity (100 no longer equals 50 + 50).

Caveat: unreset global site CSS rules targeting div elements (such as inherited padding, transforms, or min-height) or unusual fractional browser zoom can rarely cause sub-pixel discrepancies past 0.001 px, so this signal is weighed against verified human interaction.

说明

如何解读结果

01 预期结果

父元素高度在 0.001px 范围内等于子元素之和

Deterministic layout engines report a parent height of 100 px matching 50 px + 50 px across both children cleanly.

Example result Parent height: 100 px • Child 1: 50 px • Child 2: 50 px • Residual: 0.00 px — Result: consistent layout geometry
02 可能的自动化信号

单次 DOMRect 噪声破坏布局保护(> 0.001px)

Random jitter added to getBoundingClientRect() values shifts parent height away from the sum of its children, signaling likely DOMRect spoofing.

Example result Parent height: 100.22 px • Child sum: 99.80 px • Residual: 0.42 px — Result: DOMRect geometry noise detected

Forensic significance: Strong indicator of randomized getBoundingClientRect() tampering; review alongside human interaction and page CSS rules to rule out zoom or global div styling effects.