Voltz Public Server Instructions

Step 1 — Add The HTML

Paste this where you want the proxy input and iframe to appear on your page:

<input type="text" id="voltzUrlInput" placeholder="Enter URL">
<button onclick="loadVoltz()">Go</button>

<iframe 
  id="voltzFrame" 
  style="width:100%; height:600px; border:none; border-radius:8px;">
</iframe>

Step 2 — Add The Script

Paste this script at the bottom of your page before the </body> tag:

<script>
function normalizeURL(input) {
  input = input.trim();
  if (input.startsWith("http://") || input.startsWith("https://")) {
    return input;
  }
  if (input.includes(".")) {
    return "https://" + input;
  }
  return "https://www.bing.com/search?q=" + encodeURIComponent(input);
}

function loadVoltz() {
  const input = document.getElementById("voltzUrlInput").value;
  if (!input) return;
  const finalURL = normalizeURL(input);
  const encoded = encodeURIComponent(finalURL);
  document.getElementById("voltzFrame").src =
    "https://usevoltz.netlify.app/.netlify/functions/Voltz?url=" + encoded;
}
</script>

Step 3 — Optional Direct Link

If you want to load a specific site without a search box:

<iframe 
  src="https://bnserverofficial.netlify.app/.netlify/functions/Voltz?url=https://www.bing.com"
  style="width:100%; height:600px; border:none;">
</iframe>

Step 4 — That’s It!

Users can now type a URL, press Go, see the 5-second ad, and load the requested site via Voltz Public Server.