Middleware Library

Our library of Middleware is always growing.

If you run into any troubles or would like to suggest something new, email us at support@fly.io!

Utilities

Bot Detector

Detects bots and adds a Fly-Bot header to your HTTP requests.

Connection Speed Lookup

Using Connection Speed Lookup, you can detect a visitor's connection speed. After you enable this middleware, we will add the Fly-Connection-Type header to all of your requests. You can then use this information to optimize performance based on connection speed. For example, if your users are on a cellular network, you can serve them a 'low bandwidth' version of your application.

Possible header values are:

  • dial-up
  • cable/DSL
  • corporate
  • cellular

Geo IP Lookup

With Geo IP Lookup, you can detect your visitor's geographic location based on their IP address. Once active, we will add location headers to your requests. Your application can then use these headers to change behavior based on user geography. For example, you can serve a localized German version of your pages to those with a Fly-IP-Country-Name of Germany.

The Geo IP headers are:

  • Fly-IP-Country-Code
  • Fly-IP-Country-Name
  • Fly-IP-City-Name

HTTP Caching

Configures how HTTP requests get cached on Fly edge servers.

HTTPS Upgrader

We think that HTTPS is really important. Using the HTTPS Upgrader, you can redirect all your http requests to https. The Upgrader receives the highest priority and will always run first.

Inject HTML

Use this middleware to add snippets of HTML to your whole site. This is useful for marketing integration tools.

This Middleware is in beta.

Render Speed Tracking

Render Speed Tracking will give you a fresh and accurate look into site rendering speeds over time. The tracker injects a small piece of javascript into your HTML requests to log client side render speeds. Within the Fly control panel, the 50th, 75th and 90th percentile render speeds are graphed within the Performance tab.

Web Application Firewall

The Web Application Firewall blacklists known-malicious IP addresses from reaching your network. Our lists are populated from spamhaus.org, dshield.org, and abuse.ch; enabling the Middleware will block all flagged IPs. It's handy for preventing spammers and other unsavory actors (or botnets) from hammering your servers.

This Middleware is in beta.

Third-Party Middleware

Bugsnag

Monitor application errors to improve customer experiences and code quality. This Middleware automatically places the Bugsnags snippet into your </head> page elements.

This Middleware is in beta.

Facebook Pixel

Route data to Facebook to see how your Facebook ads are performing. This Middleware automatically places the Facebook snippet into your </head> page elements.

This Middleware is in beta.

Fullstory

Full Story provides pixel-perfect full session playback of your users' experience. This Middleware automatically places the Fullstory snippet into your </head> page elements.

This Middleware is in beta.

Server-Side Google Analytics

With Fly, you can inject Google Analytics directly into your requests. To add it, click configure and enter your Google Analytics ID. Don't have one? Get started with Google Analytics here. The best part: Server-Side Google Analytics can't be blocked by browser extensions. Read more here.

This Middleware is in beta.

Kissmetrics

Kissmetrics combines behavioral analytics, segmentation and email campaign automation to deeply understand and engage your customers. This Middleware automatically places the Kissmetrics' snippet into your </head> page elements.

This Middleware is in beta.

Mixpanel

Deeply understand every user's journey with instant insights for everyone on mobile and web. This Middleware automatically places the Mixpanel snippet into your </head> page elements.

This Middleware is in beta.

Olark

Live chat for humans. Add Olark to your HTML pages to provide live chat for your users. This Middleware automatically injects the Olark snippet into your </body> page elements.

Read our article about Fly + Olark here.

This Middleware is in beta.

Parse.ly

Parse.ly makes it easy to understand, own, and improve digital audience engagement through content-based data products. This Middleware automatically places the Parse.ly snippet into your </head> page elements.

This Middleware is in beta.

Segment

Capture and direct data about your customers to hundreds of intergrations. This Middleware automatically injects Segment's analytics.js into your </head> page elements.

This Middleware is in beta.

Zendesk

Zendesk puts all your customer information in one place. This Middleware automatically places the Zendesk snippet into your </head> page elements.

This Middleware is in beta.