ป้องกันไม่ให้ Hack Web ด้วย shell_exec php
ป้องกันไม่ให้ Hack Web ด้วย shell_exec php
1. vi /etc/php.ini
2. Find disable_functions and set new list as follows:
“disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source”
3. service httpd restart
Credit www.cyberciti.biz/faq/linux-unix-apache-lighttpd-phpini-disable-functions/