/plushcap/analysis/cloudflare/integrating-redirection-io-with-cloudflare-workers

Integrating redirection.io with Cloudflare Workers

What's this blog post about?

Redirection.io is a web traffic redirection manager that provides tools for administrators, SEO agencies, and developers to analyze HTTP errors, set up HTTP redirections, customize HTTP responses, and monitor traffic efficiently. The platform can be integrated with Cloudflare Workers, which allows running code on the edge of Cloudflare locations without changing the existing platform or infrastructure. Redirection.io's integration with Cloudflare Workers involves querying its hosted agent at each incoming request to determine if any redirection or action rule is defined for that type of request. The implementation includes asynchronous non-blocking functions, such as redirectOrPass() and log(), which handle the redirection process and send log data to the backend for analysis and statistics purposes. Cloudflare Workers run very fast, with the ability to execute thousands of scripts per second, making it an efficient way to integrate Redirection.io into a website.

Company
Cloudflare

Date published
Aug. 21, 2018

Author(s)
Guest Author

Word count
1075

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.