Join Nostr
2026-10-21 13:58:46 UTC

Dr. Christopher Kunz on Nostr: PHP stopgap mitigation. Don't rely on it, patch your shit! memory_limit=-1 ...

PHP stopgap mitigation. Don't rely on it, patch your shit!
memory_limit=-1
post_max_size less than one-quarter of the memory limit, or 8M as a fallback
Set max_input_nesting_level to a low value, such as 8
session.upload-progress.enabled=0
For PHP-FPM: Set pm.max_requests to a low value
Use SELinux / AppArmor,
set apparmor_hat,
set fatal_error_backtraces=0 and
hide the presence of PHP with expose_php=0.