{
  "id": 20373659,
  "title": "I almost unlocked Pro from a URL parameter. What I changed before launch.",
  "url": "https://urgent.news/2026/11/17/i-almost-unlocked-pro-from-a-url-parameter-what-i-changed-before",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-17T03:44:05.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/piyush_rajput0077/i-almost-unlocked-pro-from-a-url-parameter-what-i-changed-before-launch-3lb4"
  },
  "original_language": "en",
  "account": "Three mistakes the author made or nearly made when building a SaaS called ClauseRadar:\n\n1. Paywall mistake: The author initially implemented a paywall using a URL parameter in Whop checkout. This approach was unsafe for four reasons: the secret could be shared, the check was in JavaScript, replaceState hid the URL from the address bar but not from history, analytics, or extensions, and there was no server-side confirmation of payment. The author changed this by granting Pro status through a secure webhook handler that verifies a signature and adds Pro days to the database.\n\n2. CSS blur is not a paywall: The author originally used CSS blur to create a blurred preview for free users. However, this method is ineffective as anyone can remove the CSS rule. To fix this, the author now uses AES-256-GCM to seal locked parts before sending them to the client, and decrypts them only after checking the user's plan through an unlock endpoint.\n\n3. Installer bug: The author's installer script had a bug that caused the app to display grey blocks, causing user frustration. To resolve this, the author read the mount target from the main.js file instead of using a regular expression, and made the loading state fail open by removing the skeleton and showing a static server-rendered page after six seconds if any errors occurred.",
  "summary": "I build a small SaaS called ClauseRadar ( https://clauseradar.online/?utm_source=devto&utm_medium=article&utm_campaign=paywall-lessons ). It reads contracts (freelance agreements, brand deals, job offers) and flags clauses like \"payment within 90 days\" or \"contractor's liability is unlimited\". I'm in India, I work alone, and I deploy from my phone using Termux. I build with an AI coding assistant…",
  "key_points": [
    "Replaced CSS blur preview with AES-256-GCM encryption and unlock endpoint for secure Pro status",
    "Fixed installer bug by reading mount target from main.js and implementing fail-open loading state"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}