PHP Kapatılması Gereken Fonksiyonlar

Katılım
27 Tem 2018
Tepki puanı
227
Rating - 0%
Aşağıda belirtilen fonksiyonlar ya gereksizdir ya da sunucuda açık bulunması güvenlik sorunu teşkil etmektedir. Bu sebeple kapatılması tavsiye edilir. Sunucunuzdaki php.ini dosyanızı açıp disable_functions kısmı varsa aşağıdaki eşitini yoksa tamamen aşağıdaki kodu eklemeniz durumunda, sunucu geçme, root olmak gibi istenmeyen olaylar yaşama olasılığınız en aza inecektir.

Genellikle php.ini dosyası şu yolda bulunur "/usr/local/lib/php.ini". Düzenlemek için;
Kod:
cd /usr/local/lib/
nano php.ini

Kapatılması gereken fonksiyonlar;

Kod:
disable_functions = foreach, glob, openbasedir, posix_getpwuid, f_open, system,dl, array_compare, array_user_key_compare, passthru, cat, exec, popen, proc_close, proc_get_status, proc_nice, proc_open, escapeshellcmd, escapeshellarg, show_source, posix_mkfifo, ini_restore, mysql_list_dbs, get_current_user, getmyuid,pconnect, link, symlink, fin, passthruexec, fileread, shell_exec, pcntl_exec, ini_alter, parse_ini_file, leak, apache_child_terminate, chown, posix_kill, posix_setpgid, posix_setsid, posix_setuid, proc_terminate, syslog, allow_url_fopen, fpassthru, execute, shell, curl_exec, chgrp, stream_select, passthru, socket_select, socket_create, socket_create_listen, socket_create_pair, socket_listen, socket_accept, socket_bind, socket_strerror, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, openlog, apache_get_modules, apache_get_version, apache_getenv, apache_note, apache_setenv, virtual
 
Katılım
1 Ara 2015
Tepki puanı
19,685
Konum
spyhackerz
Rating - 95.8%
foreach ve curl_exec engellenmesi pek tavsiye edilmez. php dosyalarında sık kullanılan fonksiyonlardan olabiliyor.

ln , eklenebilir.
 
131,470Konular
3,268,517Mesajlar
315,242Kullanıcılar
kkkcSon Üye
Üst Alt