NGINX HTML Sanitize Module: Strip Dangerous HTML at the Edge
Learn how to sanitize HTML content at the NGINX level using the ngx_http_html_sanitize_module. This module uses Google's gumbo-parser for HTML5 parsing and katana-parser for…
Practical nginx-mod guides from the GetPageSpeed engineering team: configuration, performance tuning and security for production Linux servers.
40 articles
Learn how to sanitize HTML content at the NGINX level using the ngx_http_html_sanitize_module. This module uses Google's gumbo-parser for HTML5 parsing and katana-parser for…
Learn how to parse HTTP POST and PUT form data directly into NGINX variables using the form-input module. Extract URL-encoded form fields for routing,…
Set up NGINX active health checks that proactively monitor upstream servers with HTTP, TCP, MySQL, FastCGI, SSL, and AJP probes. Included in NGINX-MOD —…
Learn how to dynamically add, remove, and modify NGINX upstream servers at runtime using a REST API — no reload required. NGINX-MOD brings this…
Learn how to protect files and content with the NGINX auth hash module. This module brings SHA-256, SHA-512, BLAKE2, and other modern hash algorithms…
Learn how to use the NGINX keyval module to create a dynamic key-value store directly inside NGINX. Build feature flags, IP blocklists, maintenance mode…
Learn how to use the max_headers directive in nginx-mod to limit the number of HTTP request headers and protect your server from header-flooding DoS…
NGINX HTTP/3 leaves $http_host empty, breaking FastCGI, proxy configs, and logs. nginx-mod fixed this at the protocol layer — four months before upstream shipped…
Enable kernel TLS (kTLS) and SSL_sendfile in NGINX on RHEL, Rocky, AlmaLinux, Amazon Linux and CentOS 7, verify it, and avoid the tcp_notsent_lowat sysctl…
How to hide the Server HTTP header in NGINX and more: hide the fact of using NGINX altogether.