This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/config/cursor/rules/php-security.mdc
T
2026-07-26 11:55:16 +02:00

11 lines
372 B
Plaintext

---
alwaysApply: false
---
# Security
- Never commit secrets; load via env (vlucas/phpdotenv or server env).
- Escape output (HTML/JS) and use parameterized queries everywhere.
- Validate and sanitize all input; centralize validation.
- Use password_hash()/password_verify(); never custom crypto.
- Enable SameSite, HttpOnly, Secure cookies; rotate session IDs on login.