<?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: Bangsaen AI</title>
    <description>The latest articles on DEV Community by Bangsaen AI (@bangsaenai).</description>
    <link>https://dev.to/bangsaenai</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%2F4042908%2F456abdee-3031-4af4-984d-5a8aa9fbd469.png</url>
      <title>DEV Community: Bangsaen AI</title>
      <link>https://dev.to/bangsaenai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bangsaenai"/>
    <language>en</language>
    <item>
      <title>The Enterprise WAF Monopoly is Dead: How We Shattered Layer-7 Security Pricing with C++/WASM</title>
      <dc:creator>Bangsaen AI</dc:creator>
      <pubDate>Sat, 25 Jul 2026 17:05:06 +0000</pubDate>
      <link>https://dev.to/bangsaenai/the-enterprise-waf-monopoly-is-dead-how-we-shattered-layer-7-security-pricing-with-cwasm-12ng</link>
      <guid>https://dev.to/bangsaenai/the-enterprise-waf-monopoly-is-dead-how-we-shattered-layer-7-security-pricing-with-cwasm-12ng</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo5ykx9j5asphiurt4c0p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo5ykx9j5asphiurt4c0p.png" alt="Bangsaen Filter ROI Comparison"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For years, giant cloud providers have held a dirty secret: &lt;strong&gt;Enterprise WAFs ($200–$1,000+/month) are priced high not because Edge compute is expensive, but because they know you can't build one yourself.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you run an e-commerce storefront, a event-ticketing platform, or a high-traffic app, you’ve experienced the &lt;strong&gt;Layer-7 Bot Tax&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Malicious scrapers, credential stuffers, or checkout bots flood dynamic endpoints (&lt;code&gt;/checkout/&lt;/code&gt;, &lt;code&gt;/cart/&lt;/code&gt;, &lt;code&gt;/api/&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Your origin server’s CPU spikes to 100%, triggering database locks and killing user sessions with &lt;code&gt;502 Bad Gateway&lt;/code&gt; errors.&lt;/li&gt;
&lt;li&gt;Your options? Either pay &lt;strong&gt;Cloudflare $200+/month for Business/Enterprise rules&lt;/strong&gt; or spend &lt;strong&gt;$150+/month upgrading your web server instances&lt;/strong&gt; just to process garbage traffic.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We decided to end this monopoly.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚡ The Paradigm Shift: Bare-Metal C++/WASM at the Edge
&lt;/h2&gt;

&lt;p&gt;The problem with traditional security isn't that Layer-7 filtering is impossible—it’s that people were doing it in the wrong place with the wrong tools. &lt;/p&gt;

&lt;p&gt;We compiled a bare-metal &lt;strong&gt;C++ security kernel directly into WebAssembly (WASM)&lt;/strong&gt; and deployed it to execute at the Global Edge. Instead of letting threats touch your web server, &lt;strong&gt;Bangsaen Filter v1.0.0&lt;/strong&gt; inspects payloads in microsecond timeframes right at the perimeter.&lt;/p&gt;

&lt;h3&gt;
  
  
  🧪 Empirical Proof: Zero-Infrastructure Stress Test
&lt;/h3&gt;

&lt;p&gt;We didn't just benchmark this in a lab—we battle-tested it on a real-world WooCommerce storefront integrated with Stripe Express Checkout. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Test Constraints:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Origin Infrastructure:&lt;/strong&gt; A $0/month GCP &lt;code&gt;e2-micro&lt;/code&gt; instance (&lt;strong&gt;1 vCPU, 1 GB RAM&lt;/strong&gt;—literally the weakest free-tier VM available).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attack Vector:&lt;/strong&gt; Heavy dynamic Layer-7 attacks via &lt;code&gt;sqlmap&lt;/code&gt; and automated checkout scrapers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The Empirical Results:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🛑 &lt;strong&gt;Bot Destruction:&lt;/strong&gt; 100% of threat payloads blocked at the Edge with an instant &lt;code&gt;HTTP 403&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;⚡ &lt;strong&gt;Edge CPU Execution Time:&lt;/strong&gt; &lt;strong&gt;~1.3 milliseconds&lt;/strong&gt; average.&lt;/li&gt;
&lt;li&gt;🖥️ &lt;strong&gt;Origin CPU Utilization:&lt;/strong&gt; &lt;strong&gt;0.00%&lt;/strong&gt; (Zero PHP/MariaDB overhead. The attack never touched the server!).&lt;/li&gt;
&lt;li&gt;💳 &lt;strong&gt;Real Buyer Latency:&lt;/strong&gt; Legitimate shoppers checked out via Apple Pay and Google Pay in &lt;strong&gt;&amp;lt;600ms&lt;/strong&gt; while the attack was actively running.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  💣 Why $19/mo for 1M Requests Changes Everything
&lt;/h2&gt;

&lt;p&gt;In the old model, 800,000 malicious bot requests meant a crashed server or a $300 hosting bill. &lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;Bangsaen Filter Pro ($19/mo)&lt;/strong&gt;, those 800,000 bad requests are destroyed at the Edge in 1.3ms. Your $0–$10/mo origin server processes only the 200,000 real buyers without sweating.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ 1,000,000 Incoming Edge Requests ]
├── 800,000 Bad Bots    ──► [ C++/WASM Edge Kernel ] ──► Instant 403 (1.3ms)
└── 200,000 Real Buyers  ──► [ GCP e2-micro Origin ]  ──► 200 OK (0.00% Bot CPU Load)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We are giving SMEs and developers the exact same high-speed, sub-millisecond protection that big corporations pay thousands for—at a price so low it makes legacy security pricing look absurd.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛡️ Take Back Control of Your Infrastructure
&lt;/h2&gt;

&lt;p&gt;Stop paying cloud providers for the computational energy consumed by bad bots. Keep your origin infrastructure minimal, fast, and dirt cheap.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📦 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/bangsaenai/bangsaen-filter-bot-killer-docs/releases/tag/v1.0.0" rel="noopener noreferrer"&gt;Bangsaen Filter Release v1.0.0&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🔑 &lt;strong&gt;Claim Free Tier (100,000 Reqs/mo):&lt;/strong&gt; &lt;a href="https://www.bangsaenai.com" rel="noopener noreferrer"&gt;Get Started Free&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;How much are you currently paying in hosting or WAF costs just to absorb threat traffic? Let’s talk architecture in the comments below!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>devops</category>
      <category>webassembly</category>
      <category>security</category>
    </item>
    <item>
      <title>How I Compiled C++ to WebAssembly on Cloudflare Edge to Kill Bots with 0.000ms Origin Overhead</title>
      <dc:creator>Bangsaen AI</dc:creator>
      <pubDate>Thu, 23 Jul 2026 03:02:49 +0000</pubDate>
      <link>https://dev.to/bangsaenai/how-i-compiled-c-to-webassembly-on-cloudflare-edge-to-kill-bots-with-0000ms-origin-overhead-3bb8</link>
      <guid>https://dev.to/bangsaenai/how-i-compiled-c-to-webassembly-on-cloudflare-edge-to-kill-bots-with-0000ms-origin-overhead-3bb8</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9avp3bz5m2gid69qur9.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9avp3bz5m2gid69qur9.PNG" alt=" " width="800" height="644"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every web service faces the same annoying issue: &lt;strong&gt;AI scrapers, automated brute-force bots, and bad actors eating up origin server CPU &amp;amp; RAM&lt;/strong&gt; before they even get blocked.&lt;/p&gt;

&lt;p&gt;Traditional middleware (like PHP or Node.js security plugins) still forces your origin host to execute code just to decide whether to drop a request. That’s wasted computing resources.&lt;/p&gt;

&lt;p&gt;I wanted to solve this with a strict rule: &lt;strong&gt;Zero host CPU impact on the origin server.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here is how I compiled a C++ kernel to WebAssembly (WASM) and deployed it directly to Cloudflare Global Edge.&lt;/p&gt;




&lt;h2&gt;
  
  
  🏗️ The Architecture
&lt;/h2&gt;

&lt;p&gt;Instead of filtering traffic at the origin, the protection layer is pushed to Cloudflare’s 300+ Edge locations globally.&lt;/p&gt;

&lt;p&gt;[ Incoming Request ]&lt;br&gt;
│&lt;br&gt;
▼&lt;br&gt;
[ Cloudflare Global Edge ]&lt;br&gt;
│ ──► [ C++ WASM Kernel Inspection ] ──► (Blocked if Bot)&lt;br&gt;
▼&lt;br&gt;
&lt;a href="//0.000ms%20CPU%20Impact!"&gt; Your Origin Server &lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Why C++ WebAssembly on the Edge?
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ultra-Low Latency:&lt;/strong&gt; Executing C++ compiled to WASM delivers sub-millisecond execution (&lt;code&gt;0.000ms&lt;/code&gt; kernel impact).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Instant Dropping:&lt;/strong&gt; Bad actors are terminated at the nearest edge node—never reaching your actual server stack.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language Efficiency:&lt;/strong&gt; C++ provides predictable memory usage and near-bare-metal speeds compared to standard V8 JavaScript isolates.&lt;/li&gt;
&lt;/ol&gt;


&lt;h2&gt;
  
  
  ⚡ Try it with cURL
&lt;/h2&gt;

&lt;p&gt;You can inspect the response directly from your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-X&lt;/span&gt; POST &lt;span class="o"&gt;[&lt;/span&gt;https://bangsaen-bot-killer.bangsaen-filter.workers.dev]&lt;span class="o"&gt;(&lt;/span&gt;https://bangsaen-bot-killer.bangsaen-filter.workers.dev&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"x-bangsaen-key: YOUR_API_KEY"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Sample JSON Response:&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "status": "Success",&lt;br&gt;
  "botDetected": false,&lt;br&gt;
  "score": "0.0000",&lt;br&gt;
  "executionTime": "0.000ms"&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;🔌 What's Next &amp;amp; Free Tier&lt;br&gt;
I've made the API gateway available with a Free Tier (100,000 requests/month) so developers can offload scraper mitigation without paying a dime or using a credit card.&lt;/p&gt;

&lt;p&gt;🌐 Live Demo &amp;amp; API Key: bangsaenai.com&lt;/p&gt;

&lt;p&gt;🔌 WordPress Users: We have submitted the official Bangsaen Filter plugin to the WordPress.org directory—currently under manual review and scheduled to launch in ~5 days!&lt;/p&gt;

&lt;p&gt;Would love to hear your thoughts on latency optimization and edge security architecture!&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>cpp</category>
      <category>webassembly</category>
    </item>
  </channel>
</rss>
