Embed Code

How does it work?

The embed code creates a frame in an unblocked website which embeds a blocked website into it, therefore most browser extensions would treat the frame as part of the unblocked website. However a few browser extensions check pages very carefully and inspect the frames as well, in this case the embed code might not work but using an <embed> tag instead of a <iframe> tag could fix the issue.

Limitations

The embed code would not work if

You are likely to see messages like 'XXX refused to connect' in this case.

Steps

Code

Inlined embed

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8" />

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />

<meta http-equiv="Referrer-Policy" content="no-referrer" />

<meta name="referrer" content="no-referrer" />

<meta name="viewport" content="width=device-width,initial-scale=1" />

<link rel="icon" type="image/x-icon" href="https://www.google.com/favicon.ico" />

<link rel="stylesheet" type="text/css" href="data:text/css;base64,Ym9keSwgZW1iZWQsIGlmcmFtZSB7Cglwb3NpdGlvbjogYWJzb2x1dGU7CglkaXNwbGF5OiBibG9jazsKCXdpZHRoOiAxMDAlOwoJaGVpZ2h0OiAxMDAlOwoJbWFyZ2luOiAwcHg7CglwYWRkaW5nOiAwcHg7Cglib3JkZXI6IG5vbmU7CglvdmVyZmxvdzogaGlkZGVuOwp9Cg==" />

<title>Google</title>

</head>

<body>

<embed type="text/plain" width="1024" height="768" src="https://whitespider.dev/" />

</body>

</html>

Popup embed

Note: Click on the text to open popup window.

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8" />

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />

<meta http-equiv="Referrer-Policy" content="no-referrer" />

<meta name="referrer" content="no-referrer" />

<meta name="viewport" content="width=device-width,initial-scale=1" />

<link rel="icon" type="image/x-icon" href="https://www.google.com/favicon.ico" />

<link rel="stylesheet" type="text/css" href="data:text/css;base64,Ym9keSwgZW1iZWQsIGlmcmFtZSB7Cglwb3NpdGlvbjogYWJzb2x1dGU7CglkaXNwbGF5OiBibG9jazsKCXdpZHRoOiAxMDAlOwoJaGVpZ2h0OiAxMDAlOwoJbWFyZ2luOiAwcHg7CglwYWRkaW5nOiAwcHg7Cglib3JkZXI6IG5vbmU7CglvdmVyZmxvdzogaGlkZGVuOwp9Cg==" />

<title>Google</title>

</head>

<body>

<div>Click here to continue</div>

<script type="text/javascript">"use strict";

(() => {

document.onclick = () => {

const win = window.open(void 0, "_blank", "");

if (win == null) {

document.body.innerHTML = "Error: Popup windows are blocked by your browser. Please allow popups and click here to retry.";

return;

}

win.focus();


const doc = win.document;

doc.documentElement.replaceWith(document.documentElement);

doc.body.innerHTML = "<embed type=\"text/plain\" width=\"1024\" height=\"768\" src=\"https://whitespider.dev/\" />";

doc.title = "Google";

};

})();

</script>

</body>

</html>