12/07/2026
π₯ FREE PROMPT AI UNTUK HARDENING SERVER PRODUCTION π₯
Cocok buat yg punya VPS Ubuntu + Apache + PHP + MariaDB
Copy paste ke AI coding favoritmu:
===== START PROMPT =====
Lakukan hardening server production ini:
- Ubuntu 22.04 LTS, Apache2, PHP 7.4/8.1, MariaDB, Let's Encrypt SSL
- Multi website (VirtualHost), production server
URUTAN:
1. Audit semua konfigurasi (tampilkan β
β β)
2. Backup semua config dgn timestamp
3. Hardening item β saja (kecuali SSL & VH yg sudah benar)
4. Verifikasi semua service
5. Buat laporan
YANG DIHARDENING:
SSH: PermitRootLogin prohibit-password, X11Forwarding no, MaxAuthTries 3, ClientAliveInterval 300, ClientAliveCountMax 2
Apache: ServerTokens Prod, ServerSignature Off, -Indexes, nonaktifkan autoindex, Header set X-Frame-Options SAMEORIGIN, X-Content-Type-Options nosniff, Referrer-Policy strict-origin-when-cross-origin, Permissions-Policy geolocation=() microphone=() camera=()
PHP: allow_url_fopen Off, disable_functions exec,system,shell_exec,passthru,proc_open,popen,show_source,pcntl_*, session.cookie_httponly=1, session.cookie_secure=1, session.use_strict_mode=1, session.cookie_samesite=Lax
ModSecurity: install libapache2-mod-security2, mode DetectionOnly
phpMyAdmin: Basic Auth + proteksi .htaccess (blokir file sensitif, backdoor, .git, path traversal)
JANGAN UBAH: SSL Let's Encrypt valid, VirtualHost yg sudah benar, module yg dipakai website.
Jika ada perubahan berpotensi error website β TANYA dulu.
===== END PROMPT =====
Save aja, tinggal paste ke AI kapan aja π