Connect Akto with Cloudflare Worker Proxy
Cloudflare is a global network security platform that provides CDN, DDoS protection, and API security services. Integrating Cloudflare with Akto enables automatic discovery of all APIs passing through your Cloudflare infrastructure, helping you maintain continuous visibility and protection of your edge-distributed APIs.

To connect Akto with Cloudflare, follow these steps -
Step 1: Deploy the Akto Data-Ingestion Service
Before configuring the Cloudflare Worker Traffic Connector, you need to deploy the Akto Data-Ingestion Service. Ensure that the service is running and accessible via a publicly available URL. Set up and configure Akto Traffic Processor. The steps are mentioned here. Ensure this instance is publicly accessible, as it will receive traffic logs from your Cloudflare Worker.
Step 2: Set Up Your Cloudflare Worker Script
Navigate to the Cloudflare Dashboard and select your account.
Go to Workers & Pages.

Click Create and choose Worker.

Click the Hello World button and deploy it.

Click Edit code and replace the default script with your Worker code that proxies traffic and mirrors it to Akto using service binding.
Important Notes while editing the Worker code
Replace
<DATA_INGESTION_SERVICE>with the URL of the Akto Data-Ingestion Service you deployed in Step 1.Replace
YOUR_AKTO_API_KEYwith your API key from Akto. You can find it inside Akto Dashboard โ Settings โ Integrations โ Akto API.If you are using Cloudflare Service Binding to send traffic to your ingestion service hosted inside a Cloudflare container, use the following line instead of a public URL:
Step 3: Configure Worker Routing
If you'd like to route specific domains or paths through this Worker:
In the Cloudflare Dashboard, go to Workers & Pages.
Under Overview, select your Worker.
Navigate to Settings > Domains & Routes.
Click Add Route.
Select the appropriate zone (domain), and enter a route pattern such as:
This ensures all traffic matching the route is intercepted and mirrored to Akto.
Step 4: Verify the Setup
Confirm that API traffic data (requests and responses) are captured on the Akto dashboard under the respective API collection.
Check logs of your Worker for any initialization or forwarding messages.
Go back to the Akto Dashboard.
Navigate to API Collections > Hostname.
You should start seeing the traffic from your Cloudflare Worker.
Get Support for your Akto setup
There are multiple ways to request support from Akto. We are 24x7 available on the following:
In-app
intercomsupport โ message us inside the Akto dashboard and someone will reply.Join our discord channel for community support.
Contact
[email protected]for email support.Reach us here.
Last updated
Was this helpful?