TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A Security-First Web Server in C with XSS, SQL Injection Protection

3 点作者 pulkas6 个月前
I built a high-performance web server in C that prioritizes security from the ground up. Key features:<p>- XSS protection and SQL injection prevention built into the core - Rate limiting with IP tracking and automatic blocking - Comprehensive security headers (CSP, HSTS, CORS) - Multi-threaded architecture with connection pooling - Zero-copy file serving for performance - 100% test coverage with integration tests - Pure C99, no external dependencies beyond POSIX<p>The goal was to create a web server that&#x27;s secure by default and easy to audit (under 2000 lines of C). All security features are enabled out of the box with sensible defaults.<p>GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;erson&#x2F;misewe">https:&#x2F;&#x2F;github.com&#x2F;erson&#x2F;misewe</a><p>I am looking for feedback, especially on the security implementation and test coverage. The code is MIT-licensed.

暂无评论

暂无评论