security
ASP.NET Core and .NET Security Articles, Tutorials & News
ASP.NET Core and .NET Security articles, tutorials, and news from the DotNetNews archive.
562 articles Updated Page 15 of 23
Browse additional ASP.NET Core and .NET Security articles from the DotNetNews archive.
ASP.NET Core and .NET Security articles
Page 15 of 23
Newest first
-
.NET R&D Digest (September, 2025)
WordPress Issue #301
This issue includes bits of AI, software development, learning, C#, performance, security, C, programming languages, ruby, and of course .NET and .NET Internals.
-
How to Secure Your ASP.NET Core Web API with API Key Authentication in .NET
Medium Issue #300
In today’s interconnected world, securing your APIs is not optional — it’s essential. Whether you’re building microservices, mobile… Continue reading on FullStack Web Development »
-
C# .NET 9: How to Use Safety Annotations to Eliminate NullReferenceException
Medium Issue #300
NullReferenceException is often called the billion-dollar mistake. Even with nullable reference types introduced in C# 8, there are still…
-
🚀 Top 20 Proven Ways to Optimize Docker Images and Improve Performance
C# Corner Issue #300
Unlock peak performance with these 20 proven Docker image optimization techniques! Learn how to minimize image size, enhance security, and accelerate deployments. From choosing minimal base images and...
-
ASP.NET Web.Config: Redirects, Security, and URL Rewriting Explained
C# Corner Issue #299
Master ASP.NET Web.config: redirects, security, URL rewriting, custom errors, and connection strings. Optimize your web app's configuration & security!
-
Token Validation and Generation in ASP.NET – Step-by-Step Guide
C# Corner Issue #298
Secure your ASP.NET apps! Learn to generate & validate tokens for NSE IPO APIs. Step-by-step C# guide with code examples & best practices.
-
Azure IIS Setup: Installing a Free Let’s Encrypt SSL Certificate
C# Corner Issue #297
Secure your Azure-hosted IIS web applications with a free Let's Encrypt SSL certificate! This step-by-step guide walks you through the entire process, from prerequisites to verification, ensuring encr...
-
Best Ways to Handle Null Reference Exceptions in C#
C# Corner Issue #296
This article provides practical strategies to prevent and handle NREs effectively. Learn to use null checks, the null-conditional and coalescing operators, proper object initialization, and C# 8's nul...
-
Passkeys in ASP.NET Core
C# Corner Issue #296
Unlock passwordless authentication in your ASP.NET Core applications with this comprehensive guide! Learn how to implement passkeys using the latest .NET features and the WebAuthn API. Enhance securit...
-
Azure Config, Blazor and EF Core patterns
DotNetNews Issue #294
A varied .NET roundup covering Azure App Configuration, Blazor WASM in .NET 10, RBAC APIs, MAUI, C# internals, and data patterns.
-
How to Secure Your C# Applications: Best Practices & Code Examples
blog.stackademic.com Issue #292
Why Security Should Be Your Top Priority Continue reading on Stackademic »
-
Penetration Testing Basics for ASP.NET Core Web Applications
C# Corner Issue #291
Secure your ASP.NET Core web applications with this practical guide to penetration testing. Learn essential techniques, from reconnaissance to reporting, with C# examples. Discover how to identify vul...
-
Protecting Background Jobs and Scheduled Tasks from Abuse in ASP.NET Core
C# Corner Issue #291
This article explores common threats like job injection, privilege escalation, and resource abuse. Learn practical strategies for robust protection, including secure scheduling interfaces, input valid...
-
Logging and Monitoring Security Events in ASP.NET Core
C# Corner Issue #291
Enhance your ASP.NET Core application security by implementing robust logging and monitoring practices. This guide covers structured logging with Serilog, NLog, and built-in providers. Learn to detect...
-
How to Perform Security Testing on ASP.NET Core Applications
C# Corner Issue #290
Comprehensive guide to ASP.NET Core security testing, covering static analysis, dependency scanning, secure configuration, and dynamic testing. Learn to implement security headers, validate inputs, ha...
-
How a Tiny Token in .NET Stopped a Million-Dollar Mistake
Medium Issue #288
Discover the overlooked role of __RequestVerificationToken, why it’s critical for web security, and the lessons I learned the hard way as…
-
.NET Mastery: 40+ Essential Practices for Clean, Secure, and Scalable Code
Medium Issue #287
1. Use Dependency Injection (DI) Properly
-
Security Headers Every ASP.NET Core App Should Have
C# Corner Issue #287
This article provides a comprehensive guide to protecting against XSS, clickjacking, and other common web vulnerabilities. Learn how to implement HSTS, CSP, X-Frame-Options, and more with practical co...
-
AspGoat: The First Intentionally Vulnerable modern ASP.NET Core App for OWASP Top 10
infosecwriteups.com Issue #286
Most intentionally vulnerable applications we know and use for training like DVWA, Juice Shop, and WebGoat are written in PHP , Node.JS… Continue reading on InfoSec Write-ups »
-
How to Secure a Website?
C# Corner Issue #285
Protect your website from cyber threats with our comprehensive guide to website security. Learn essential practices, from SSL/TLS encryption and WAF implementation to secure coding, access control, an...
-
Clickjacking Protection with X-Frame-Options and CSP in ASP.NET Core
C# Corner Issue #285
Protect your ASP.NET Core applications from clickjacking attacks! This guide explains how to implement robust defenses using X-Frame-Options and Content Security Policy (CSP) with frame-ancestors. Lea...
-
Add API key authentication to an Minimal API endpoint
Round The Code Issue #284
Learn how to add API key authentication to a minimal API endpoint by using a saved key in the config and how you can add a fallback policy to protect all routes. The page Add API key authentication to...
-
Authentication in .NET — Part 7: External Authentication Providers
Medium Issue #284
In Part 6, we explored role-based and policy-based authorization. Now, in Part 7, let’s look at how to integrate external authentication…
-
Preventing CORS Misconfigurations in ASP.NET Core APIs
C# Corner Issue #284
Secure your ASP.NET Core APIs! This article dives into preventing CORS misconfigurations, a critical aspect of web application security. Learn how overly permissive CORS settings can lead to vulnerabi...
-
Cross-Site Request Forgery (CSRF) Protection in ASP.NET Core
C# Corner Issue #284
This article details built-in mechanisms like anti-forgery tokens, SameSite cookies, and global validation to safeguard authenticated users. Learn how to implement CSRF protection in Razor Pages, MVC,...