Urgent.News

600+ sources. One page. See who else covered it.

Editions

Tech

My evidence pipeline was saving Cloudflare block pages as evidence

I build a web service that preserves evidence of harassment on social platforms. The core feature is a single thing: automatically capture a real screenshot of the offending post. There was no substitute for it. I built an alternative that pulled the text through an API and rendered a tidy "evidence card" image, and threw it away. An image you can author freely afterwards proves nothing. Here's…

I developed a web service to record evidence of harassment on social media platforms by taking real screenshots of offending posts. The most effective method was to use the official embed from the platform directly. However, relying on third-party wrappers resulted in the capture of error pages instead of actual evidence when the domain was retired or the provider changed parameters unexpectedly.

Recording the raw error body in the database allowed me to quickly diagnose the issue, which would have otherwise remained undiagnosed. It is crucial to record timestamps in the correct timezone and assume nothing when moving components to asynchronous processing, as this can lead to missing critical steps and resulting in incomplete evidence.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Your `if` statements are a database nobody can query

Somewhere in your codebase there is a line that looks like this: if ( user . plan === ' enterprise ' || user . tenantId === ' acme-corp ' ) { // ...

  • Rules scattered across codebase, not queryable
  • Lack of schema, querying, migrations, audit log
  • Moving rules to separate service introduces latency and kill switch issues

Overlaying a design on a live page: four things that bit me

I spent the last few weeks building a Chrome extension that puts a design frame on top of a running web page so you can see where the implementation drifted.

  • Fixed position overlays shift when scrolling
  • Overlay must be in document space, not fixed
  • Image dimensions are not accurate, calculate with scale factor

More from Saturday 15 August →