A better solution would be to make webgl, webgpu and (especially) webrtc have some sort of prompt before they can be in any way used in that fashion, but this will absolutely destroy web ux Windows Vista style.
You mean the "Accept Cookies" banner that has become a complete joke? Pass
And then the gatekeepers like Cloudflare will say "please hit accept in order to verify your browser and access this site".