Ben's Coding Blog: Latest pages in the security genre

🔄 Modernizing a legacy MVC 4 project to ASP.NET Core [version] is no small feat—especially when Identity is involved. If you’ve been through it, you already know. If you haven’t… you're in for a surprise. more


🤯 Making Cloudflare Turnstile CAPTCHAs Work on Multiple Forms (Without Losing Your Mind) Getting Cloudflare Turnstile CAPTCHAs working on a single form is easy. Getting them to work reliably across multiple forms on the same page... more


If you're looking to provide a teaser for premium content—just like platforms such as Substack—you can use a simple, effective method based on a browser cookie check. more


If you're serious about website security, Content Security Policy (CSP) is one of your best defenses against XSS, data injection, and rogue scripts. But how do you know when something's being blocked? more


As your site scales or handles sensitive data, a strong Content Security Policy (CSP) becomes essential—not just for security, but for trust, SEO, and performance. more


Content Security Policy CS(P) in ASP.NET Core: A Practical Middleware Pattern more