logoalt Hacker News

JCattheATMyesterday at 9:43 PM1 replyview on HN

Care to share a link or some more info?


Replies

f311ayesterday at 10:07 PM

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/

show 2 replies