---
title: "Discussion on \"Use Cloudflare Workers as a Reverse Proxy\" | Hashnode"
description: "Discussion on \"Use Cloudflare Workers as a Reverse Proxy\". Reverse Proxy / Rewrites allow us to serve content from different hosts/websites to our domain.\nFor example, this article you are reading, is on blog.hrithwik.me which is essentially a Reverse proxy / Rewrite of hrithwik.hashnode.dev.\nSo you get the ..."
url: "https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Use Cloudflare Workers as a Reverse Proxy](https://blog.hrithwik.dev/use-cloudflare-workers-as-a-reverse-proxy?utm_source=hashnode&utm_medium=feed)

Reverse Proxy / Rewrites allow us to serve content from different hosts/websites to our domain. For example, this article you are reading, is on blog.hrithwik.me which is essentially a Reverse proxy / Rewrite of hrithwik.hashnode.dev. So you get the ...

Mar 15, 2022 · 6 min read · blog.hrithwik.dev  
Updated Oct 1, 2022  
Read the article

-   [#serverless](https://hashnode.com/tag/serverless)
-   [#cloudflare](https://hashnode.com/tag/cloudflare)
-   [#proxy](https://hashnode.com/tag/proxy)
-   [#cloud](https://hashnode.com/tag/cloud)

## Written by

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

@hrithwik · Bangalore, India

  
[View profile](https://hashnode.com/@hrithwik)

Software Engineer ,Tech Enthusiast, Violinist

I am a full stack developer from Mysore India. I am here to share as much information I know with the world in the most articulate way.

## Responses 3

Markdown supported · ⌘↵ to post

[Yezni](https://hashnode.com/@Yesnie)

[Mar 16, 2022](https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f/comment/62318700febabbf75388e881)

This article is super simple to help people get started with Workers [Hrithwik](https://hashnode.com/@hrithwik).

Discovered Cloudflare workers from [Fruition](https://fruitionsite.com/) initially.

There is even a SAAS called [Cloakist](https://cloak.ist/) which does Rewrites to any custom domain and use AWS Lambdas.

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

[Mar 17, 2022](https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f/comment/62318700febabbf75388e881#reply-6232c24eea00630650dfe446)

It's interesting how rewrites can be helpful to build a simple and useful SaaS

[Tapas Adhikary](https://hashnode.com/@atapas)

[Mar 16, 2022](https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f/comment/62317032154913f71e77f3a5)

Great article [Hrithwik Bharadwaj](https://hashnode.com/@hrithwik). Very detailed and informative.

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

[Mar 16, 2022](https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f/comment/62317032154913f71e77f3a5#reply-62317555154913f71e77f44a)

Thank you [Tapas](https://hashnode.com/@atapas)

[Marco Gancitano](https://hashnode.com/@Mgancita)

[Mar 15, 2022](https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f/comment/6230b7871ea5cdf031552ffb)

Hey Hrithwik, awesome article! I always thought have a solution to map a blog subdomain to a subdirectory would be a pain but it seems very doable after reading this. Thanks!

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

[Mar 15, 2022](https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f/comment/6230b7871ea5cdf031552ffb#reply-6230c5a6c4a093f00c8ac517)

Glad to hear that Marco, A little Heads up , it might still be a pain if the assets in your main content domain and the proxied domain are using the same directories.

Otherwise you won't face a lot of problems

[Marco Gancitano](https://hashnode.com/@Mgancita)

[Mar 15, 2022](https://hashnode.com/posts/use-cloudflare-workers-as-a-reverse-proxy/62306ec638e0a0d99d33134f/comment/6230b7871ea5cdf031552ffb#reply-6230c6991ea5cdf0315531c7)

I'll try to remember that when setting it up! Thanks for the heads up
