<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hensting</title>
    <description>The latest articles on DEV Community by Hensting (@hensting).</description>
    <link>https://dev.to/hensting</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4264253%2Fbcd8d765-c727-4bcd-a875-3d6ca185a3de.png</url>
      <title>DEV Community: Hensting</title>
      <link>https://dev.to/hensting</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hensting"/>
    <language>en</language>
    <item>
      <title>I built a personalised 72-hour emergency plan generator with plain PHP, wkhtmltopdf and Square</title>
      <dc:creator>Hensting</dc:creator>
      <pubDate>Fri, 27 Nov 2026 03:46:15 +0000</pubDate>
      <link>https://dev.to/hensting/i-built-a-personalised-72-hour-emergency-plan-generator-with-plain-php-wkhtmltopdf-and-square-5ham</link>
      <guid>https://dev.to/hensting/i-built-a-personalised-72-hour-emergency-plan-generator-with-plain-php-wkhtmltopdf-and-square-5ham</guid>
      <description>&lt;p&gt;&lt;strong&gt;Disclosure: this is my own product.&lt;/strong&gt; It's a small side project, and I want to share what I learned building it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it is
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://plans.agentsiteaudit.com/?utm_source=dev&amp;amp;utm_medium=post" rel="noopener noreferrer"&gt;72-Hour Ready&lt;/a&gt; asks about your household (adults, children, babies, pets, medical equipment, a car) and generates a personalised PDF plan for a 72-hour power cut. It costs £2.99, and the plan is based on UK Government "Be Ready" guidance and Food Standards Agency advice.&lt;/p&gt;

&lt;p&gt;The water figure is a good example of why it's personalised: adults, children and babies each need roughly 3 litres a day for 3 days. Pets aren't in that number, so the plan tells you to store pet water on top.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;PHP 8.2 FPM behind Caddy, with default-deny routing (only listed paths reach PHP, everything else is a 404)&lt;/li&gt;
&lt;li&gt;SQLite for orders&lt;/li&gt;
&lt;li&gt;wkhtmltopdf turning HTML templates into the PDF&lt;/li&gt;
&lt;li&gt;Square payment links for checkout&lt;/li&gt;
&lt;li&gt;Resend for the email&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No framework, no build step, no JavaScript beyond a water calculator on the landing page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that bit me
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Square sends a burst of webhooks.&lt;/strong&gt; One payment produced six events within about eight seconds (&lt;code&gt;order.updated&lt;/code&gt; and &lt;code&gt;payment.updated&lt;/code&gt;, several times each). My first design could send the customer several emails. The fix was to claim the send atomically in SQLite: &lt;code&gt;emailed_at&lt;/code&gt; goes from &lt;code&gt;''&lt;/code&gt; to &lt;code&gt;'claimed'&lt;/code&gt; to a timestamp, and only the request whose UPDATE changes one row sends the email. In the live log, the first event sent the email and the other five reported "not emailed".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verify every webhook.&lt;/strong&gt; Each one is checked with HMAC against Square's signature before anything happens. I also match the Square order ID against my own orders, so events from other sales on the same Square account are ignored.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A payment failure that wasn't my bug.&lt;/strong&gt; My first live attempt failed with Square's generic "your order didn't go through". Querying the Payments API showed &lt;code&gt;CVV_FAILURE&lt;/code&gt;: I'd mistyped my own card's security code. Checking the API before touching the code saved me an hour of debugging in the wrong place.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UK consumer law shapes the checkout.&lt;/strong&gt; For instant digital delivery, UK rules (Consumer Contracts Regulations 2013) need the buyer's express consent and an acknowledgement that they lose the 14-day right to cancel once the content is supplied. So there's a required tick-box, and the timestamp is stored with the order. If someone picks health-related options (support needs, medical equipment), there's a separate explicit-consent box under UK GDPR Article 9. I'm not a lawyer, so check the rules for your own situation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data retention.&lt;/strong&gt; Plans and email addresses are scrubbed after 12 months by a nightly job. The bare sales record is kept, because tax rules require it. There's also a per-IP rate limit that stores only hashed IPs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;p&gt;I'd write the webhook idempotency first, not as a patch after seeing duplicate sends in testing. And I'd give the sandbox its own database from day one, so test data never mixes with real orders.&lt;/p&gt;

&lt;p&gt;If you're building a small paid-digital-download flow, I'm happy to share more detail on any of this in the comments.&lt;/p&gt;

</description>
      <category>php</category>
      <category>saas</category>
      <category>sideprojects</category>
      <category>startup</category>
    </item>
    <item>
      <title>We audited 1,190 websites selling to AI agents. 75% don't say who they are.</title>
      <dc:creator>Hensting</dc:creator>
      <pubDate>Wed, 25 Nov 2026 08:41:13 +0000</pubDate>
      <link>https://dev.to/hensting/we-audited-1190-websites-selling-to-ai-agents-75-dont-say-who-they-are-4ij0</link>
      <guid>https://dev.to/hensting/we-audited-1190-websites-selling-to-ai-agents-75-dont-say-who-they-are-4ij0</guid>
      <description>&lt;p&gt;We audited every seller website in the Coinbase x402 Bazaar — the directory where AI agents discover and pay for services. 1,322 seller sites listed; 1,190 reachable. We ran each through a technical website audit and published the totals.&lt;/p&gt;

&lt;h2&gt;
  
  
  Findings
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Median technical score: &lt;strong&gt;86/100&lt;/strong&gt;. The basics are mostly fine.&lt;/li&gt;
&lt;li&gt;Only &lt;strong&gt;25%&lt;/strong&gt; publish machine-readable business identity (who they are, in a form an agent can read).&lt;/li&gt;
&lt;li&gt;Only &lt;strong&gt;41%&lt;/strong&gt; have an &lt;code&gt;llms.txt&lt;/code&gt; guide for AI crawlers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;71%&lt;/strong&gt; of all catalog listings come from a single seller with no website at all.&lt;/li&gt;
&lt;li&gt;The most common failures are cheap to fix: missing CAA records, no DMARC, missing security headers (Permissions-Policy, CSP, X-Frame-Options).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it means
&lt;/h2&gt;

&lt;p&gt;Selling to AI agents is no longer just having an API. Agents need to &lt;em&gt;identify&lt;/em&gt; you, &lt;em&gt;read&lt;/em&gt; your prices, and &lt;em&gt;trust&lt;/em&gt; your site before they pay. Most sellers fail the identity and trust layer, not the technical layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method
&lt;/h2&gt;

&lt;p&gt;Passive audits only (we fetch the page, robots.txt, sitemap and linked resources; never submit forms). Every check returns pass/warning/fail/not-tested with evidence. Totals only — no site is named for doing badly.&lt;/p&gt;

&lt;p&gt;Full report with per-check pass rates: &lt;a href="https://agentsiteaudit.com/research/agent-readiness-2026/" rel="noopener noreferrer"&gt;https://agentsiteaudit.com/research/agent-readiness-2026/&lt;/a&gt;&lt;br&gt;
Run the same audit on your own site free (5/day): &lt;a href="https://agentsiteaudit.com/" rel="noopener noreferrer"&gt;https://agentsiteaudit.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>crypto</category>
      <category>security</category>
    </item>
  </channel>
</rss>
