最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

php disable_functions 函數(shù)列表

  發(fā)布時(shí)間:2011-09-29 23:21:59   作者:佚名   我要評(píng)論
虛擬主機(jī)配置,建議禁止php函數(shù)列表,禁用不安全的PHP函數(shù)
禁用不安全的PHP函數(shù),有些php函數(shù)是不夠安全的,我們必須要加強(qiáng)安全配置,如果做虛擬主機(jī),建議禁止php函數(shù)列表如下:

復(fù)制代碼
代碼如下:

disable_functions = system,exec,shell_exec,passthru,proc_open,proc_close, proc_get_status,checkdnsrr,getmxrr,getservbyname,getservbyport, syslog,popen,show_source,highlight_file,dl,socket_listen,socket_create,socket_bind,socket_accept, socket_connect, stream_socket_server, stream_socket_accept,stream_socket_client,ftp_connect, ftp_login,ftp_pasv,ftp_get,sys_getloadavg,disk_total_space, disk_free_space,posix_ctermid,posix_get_last_error,posix_getcwd, posix_getegid,posix_geteuid,posix_getgid, posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid, posix_getrlimit, posix_getsid,posix_getuid,posix_isatty, posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname

PHP.ini 里面的 disable_functions 開關(guān)選項(xiàng)可關(guān)閉一些危險(xiǎn)的函數(shù),比如system,exec 等,比如: disable_functions = phpinfo , 如果在文件中調(diào)用 phpinfo() 函數(shù),那么在 error_reporting 開啟的情況下,會(huì)提示如下錯(cuò)誤:
Warning: phpinfo() has been disabled for security reasons
目前發(fā)現(xiàn)萬網(wǎng)主機(jī)是屏蔽此函數(shù)的。
利用 google: inurl:phpinfo.php 就可查看大量的主機(jī)信息,一般為管理員進(jìn)行調(diào)試的時(shí)候放上未刪除的文件。禁用不安全的PHP函數(shù),這是必須的

相關(guān)文章

最新評(píng)論

平阴县| 隆回县| 七台河市| 浮梁县| 正宁县| 治县。| 原平市| 凌云县| 北京市| 孙吴县| 秭归县| 九寨沟县| 晋中市| 定远县| 寿光市| 化州市| 拜城县| 桓仁| 伊川县| 辛集市| 滦平县| 高碑店市| 广德县| 墨竹工卡县| 阿巴嘎旗| 咸宁市| 蒙阴县| 上杭县| 文成县| 东兰县| 宜黄县| 顺昌县| 含山县| 衢州市| 慈溪市| 武清区| 增城市| 嘉鱼县| 城市| 太保市| 称多县|