Web Analytics
 php.ini lengkap untuk keamanan website

php.ini lengkap untuk keamanan website


; === Keamanan Fungsi Eksekusi Sistem dan Fungsi Berbahaya ===
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source,dl,pcntl_exec

; === Batasi Akses File dan Remote URL ===
allow_url_fopen = Off
allow_url_include = Off
open_basedir = /home/username/web/domain.com/public_html:/tmp

; === Nonaktifkan Fitur Berisiko Lain ===
expose_php = Off
register_globals = Off
display_errors = Off
log_errors = On

; === Batasi Ukuran Upload dan Eksekusi Script ===
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
upload_max_filesize = 10M
post_max_size = 12M

; === Error Logging untuk Audit Keamanan ===
error_log = /var/log/php_errors.log

; === Session Security ===
session.use_strict_mode = 1
session.cookie_httponly = 1
session.cookie_secure = 1

; === Disable Remote Debugging dan Tracing ===
xdebug.remote_enable = 0
zend_extension = /path/to/opcache.so
opcache.enable = 1
opcache.validate_timestamps = 1
opcache.revalidate_freq = 2

; === Miscellaneous Security Settings ===
cgi.fix_pathinfo=0
 


Lanjut Part : 1
Jam : 06:36:22
Durasi Part : 0:0:1
Durasi Total : 0:0:1

Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1