News for hackers. Stuff that matters.

Show HN: A server that removes a byte with every request

https://rot.jakebasile.com

I was inspired by a comment[1] here on HN to write a static web server that slowly degrades the content it serves byte by byte as it is requested. Every time someone requests a path from the server, a byte is removed from the next request to that path (barring 404s etc.) It resets every hour.

The nature of the Ritual is that I can't put this behind a cache, so it's possible that the cheap AWS server I used will get hugged to death if it becomes at all popular here. Sorry.

[1]: https://news.ycombinator.com/item?id=33568061

( 3 comments | 2 points | on HN )
Re:Show HN: A server that removes a byte with every request by Sujeto on Tuesday November 15, 2022 @04:00AM (#33606891)
Haha that's funny

Also could be like SnapChat in a way, only the first few visitors get to see the full thing, and only the first might be the one to get a full image, intended as some sort of protection or something.

Re:Show HN: A server that removes a byte with every request by jakebasile on Tuesday November 15, 2022 @01:04PM (#33612712)
Thanks! I had a lot of fun writing it.

It's hard for me to think of a practical use for this thing but that could be one!

Re:Show HN: A server that removes a byte with every request by 2kwatts on Wednesday November 16, 2022 @10:16AM (#33624417)
This is cool. It reset about 15 minutes ago, so there are some very minimal corruptions, but they are there.

Good job!