/cf-teleport

Tool to teleport your HTTP requests to different Cloudflare datacenters.

Primary LanguageTypeScript

Usage

Base URL: https://cfteleport.xyz URL query parameters:

  • proxy - url to send request to
  • colo colo code of cloudflare datacenter to proxy request to

https://cfteleport.xyz/?proxy=https://cloudflare.com/cdn-cgi/trace&colo=SEA Teleport to Seattle!

Overview

Cloudflare uses an Anycast network for handling network connections to datacenters. This means that regardless of any specific datacenter IP you connect to from their subnet, your ISP automatically routes you to the nearest Cloudflare datacenter.

This proxy abuses a method using Cloudflare Workers to redirect HTTP requests to specific Cloudflare datacenters. (Huge props to Christian Proetti for finding this)

Cloudflare partitions cache based on datacenter region/location, and it can be complicated to test certain types of cache bugs making this a incredibly useful tool.

Setup

This code is open-sourced mostly for transparency. Configuration and setup is not very easy, so I won't be including any specific instructions. Feel free to message me with any questions.