Connect Akto with Cloudflare

Cloudflare is a global network security platform that provides CDN, DDoS protection, and security services. Integrating Cloudflare with Akto will enable automatic discovery of all agentic components passing through your Cloudflare infrastructure, helping you maintain continuous visibility and protection of your edge-distributed components.

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

  1. Navigate to the Cloudflare Dashboardarrow-up-right and select your account.

  2. Go to Workers & Pages.

  3. Click Create and choose Worker.

  4. Click the Hello World button and deploy it.

  5. Click Edit code and replace the default script with the following example:


Step 3: Configure Worker Routing

If you'd like to route specific domains or paths through this Worker:

  1. In the Cloudflare Dashboard, go to Workers & Pages.

  2. Under Overview, select your Worker.

  3. Navigate to Settings > Domains & Routes.

  4. Click Add Route.

  5. 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

  1. Confirm that traffic data (requests and responses) are captured on the Akto dashboard under the respective collection.

  2. Check logs of your Lambda function for any initialization messages from the extension.

  3. Navigate to Agent Collections > Hostname.

  4. 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:

  1. In-app intercom support. Message us with your query on intercom in Akto dashboard and someone will reply.

  2. Join our discord channelarrow-up-right for community support.

  3. Contact [email protected] for email support.

  4. Contact us herearrow-up-right.

Last updated