All I’ve seen is proxies built on node.js which is mostly or completely incompatible with HTML and I would like to make one on a browser, but is it possible? If it is, can you take this code and alter it to run in the proxy on an iframe? else, is there an alternative way to make one on a browser compiler?
<head>
<title id="aaa">random proxy</title>
</head>
<body onload="retrieveValues(), lal()">
<div id="hp" class="ho">
<input type="text" placeholder="url here" id="hi"></input>
<button onclick="hi()">search</button>
</div>
//iframe displaying the url
<iframe class="asp" height="100%" width="100%" src="" id="hakf"></iframe>
</body>
<script>
var w = "";
//function to plug the written url into the iframe
function hi() {
var url = document.getElementById("hi").value;
document.getElementById("hakf").src = url;
w = url;
}
<style>
.ho {
background-color: black;
padding: 5px;
border-radius: 3px;
display: inline-block;
}
</style>
I honestly have no clue how to try it, because the iframe does not unblock sites by itself (yeah I’m trying to unblock sites). All the research I did on proxies about pinging a server on your behalf is irrelevant to javascript so this is more of an experiment question on whether there is actually a way. Thanks!
squago is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.