Skip to content

Instantly share code, notes, and snippets.

@jalallinux
Last active February 21, 2023 06:54
Show Gist options
  • Save jalallinux/dfb5212d0b664ffb96c38003a5739ddc to your computer and use it in GitHub Desktop.
Save jalallinux/dfb5212d0b664ffb96c38003a5739ddc to your computer and use it in GitHub Desktop.
📣 Create a free vmess server with the help of Cloudflare worker

1. Create Cloudflare Worker with this code:

addEventListener("fetch", event => {
  var url = new URL(event.request.url)
  var newUrl = new URL("https://" + url.pathname.replace(/^\/|\/$/g, ''))
  var request = new Request(newUrl, event.request)
  event.respondWith(fetch(request))
})

2. Go to freevmess.com and get an accunt. (5 days)

3. Fill this form and get optimized config.

If it didn't work, change host to another domain like discord.com in vmess client application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment