3 ms·
I think you would have to go as far as re-hosting a lot of "high-end" content (such as YouTube), otherwise the JavaScript will surely be run as part of the medi
by bArray 9y ago
I think you would have to go as far as re-hosting a lot of "high-end" content (such as YouTube), otherwise the JavaScript will surely be run as part of the media providing system. If you try running YouTube with no script, you won't get very far. I don't think re-hosting is technically legal though, which may be your first problem. You could try contacting the content creator to ask to duplicate their material, but more than likely this will be denied if they have ads on their video. To be completely honest, from looking at Facebook videos that have been re-uploaded from various sources, I think "fair use" is just a case of adding some text and emoji at the top and bottom of the video - so there's that.
A way you could (in theory) get around this is by having the user view some virtual web browser, so that Google still gets all that lovely advertiser time but your server is the one making all the requests to their service. One issue is if your site gets more than a few hits a minute, your server will probably either kill over or start providing a terrible user experience if it wasn't like that in the first place.
If you really want to respect DNT and don't want to affect user experience (too much), I would have some JavaScript reveal code for the embedded content - with a warning that the once they have clicked the button you can no longer respect their DNT request. A DNT request could translate from `/index.html` to `/index.html.dnt.html` for example, if you pre-process your pages to be statically served.