How To Create Proxy Website On Cloudflare To Unblock Website



Cloudflare is a content delivery network (CDN) and internet security company that provides a range of services to improve the performance, security, and reliability of websites and web applications.
But it has a special to host your script through a cloudflare workers. 

What is proxy 

gateway that acts as an intermediary between a client computer or device and a destination server or website. When a client device sends a request to access a website or server, the request is first sent to the proxy server, which then forwards the request to the destination server. 

What is it used for

You can Surf internet anonymously without leave your footmarks. It also bypass Regional restrictions. You can hide your IP address. 

How To Make Account

Open cloudflare.com , click on create account and feel you email,name and password. Check your email from cloudflare to verify your account. Open verification link. 
Open on workers page. Cloudflare has paid plans including free account. You can continue with free plan. Create a worker, give name. 
Now create a service give any name. Now open quick edit now remove all previous code and paste this new code 

Code for cloudflare workers 

⬇️

addEventListener('fetch', event => {
  event.respondWith(handleRequest(event.request))
})

async function handleRequest(request) {
  const url = new URL(request.url)
  const targetUrl = "https://example.com" // replace with the desired target URL
  const targetRequest = new Request(`${targetUrl}${url.pathname}${url.search}`, {
    method: request.method,
    headers: request.headers
  })

  const response = await fetch(targetRequest)

  return new Response(response.body, {
    status: response.status,
    statusText: response.statusText,
    headers: response.headers
  })
}

⬆️ Copy this code and paste in cloudflare worker. Don't forget to replace your url with https://example.com. to whom you wanted to access. 


Popular posts from this blog

How to Test Any Software Online

Avira Antivirus Pro 2024 Free for 3 Months

Minecraft And Limbo Game sale