← Back to context

Comment by f311a

11 hours ago

How it works:

* CF worker on a subdomain that handles POST requests. Basically, a JS function that handles incoming requests.

* It stores comments in CF KV and sends me a copy to telegram

* All I need to do is copy it to Markdown (can be automated, but I manually approve the comments in case of spam)

* In Markdown, I'm using frontmatter to store arbitrary JSON data

* To avoid automated spam, I have a few tricks: do not expose the submit URL in HTML (insert it via JS) and calculate a simple checksum so that automated software that does not execute JS won't be able to post. Such software usually targets Wordpress blogs by scraping them from Google. I get zero spam from it.

Everything, including hosting and workers, costs me zero.

Example: https://rushter.com/blog/zsh-shell/

>Everything, including hosting and workers, costs me zero.

Your setup sounds cool. Do you host it on a home lab or something?

  • Just a free plan on Cloudflare (CF in the comment above also means CloudFlare). Zero maintenance.

    I push to Github and CF deploys static pages to CDN.