All LibraryPricingDemo
Resources
Webflow ComponentsWebflow DOM ElementsCovert 10,000+ SVG to DOM. ChatGPT Prompts for Webflow
LoginLogout
LogoutLoginSign up

Host Webflow/Framer site for free

A short guide to learn how to host any sites using cloudflare workers and connect your domain for free.
Watch Tutorial
Get Library
View Demo
Required Script*
Copy this <script> and paste into the Workers.js file on Cloudflare
export default {
 async fetch(request, env, ctx) {
   try {
     // Step 1: Capture the Request Path
     const url = new URL(request.url);
     const path = url.pathname; // This gets the path of the request      

// Step 2: Construct the Target URL
     const targetUrl = `https://yoururl.webflow.io${path}`;      

// Step 3: Fetch the Page
     const response = await fetch(targetUrl);
     let content = await response.text(); // Assuming the content is HTML      

//Show this file to remove the framer tag
const cssToHideBadge = `<style>#__framer-badge-container { display: none !important; }</style>`;
     content = content.replace('</head>', `${cssToHideBadge}</head>` );

// Step 4: Respond with the Page
     return new Response(content, {
       headers: {"Content-Type": "text/html"} // Ensure proper content type
     });
   } catch (e) {
     // Handle any errors
     return new Response('An error occurred: ' + e.message, { status: 500 });
    }
  }
};
Step 2
I want to add my domain to the script
On step 2 replace https://yoururl.webfow.io to your test domain, either framer or webflow.
// Step 2: Construct the Target URL     
const targetUrl = `https://yoururl.webflow.io${path}`;
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Add Functionalites to Webflow without code. ✊🏽
Be the first to try out new libraries and updates.
Subscribe
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Links
All LibrariesWebflow ComponentsMulti-step FormsChatGPT Prompts for Webflow
Flowscriipts ©2024. All rights reserved.
Made forWebflow