亚洲国产精品人久久,亚洲va国产日韩欧美精品色婷婷,久久久久88色偷偷,免费人成黄页在线观看国际

17站長網(wǎng)

17站長網(wǎng) 首頁 安全 腳本攻防 查看內(nèi)容

php disable_functions的函數(shù)列表

2022-9-27 08:23| 查看: 2312 |來源: 互聯(lián)網(wǎng)

禁用不安全的PHP函數(shù),有些php函數(shù)是不夠安全的,我們必須要加強安全配置,如果做虛擬主機,建議禁止php函數(shù)列表如下: 代碼如下: disable_functions = system,exec,shell_exec,passthru,proc_open,proc_close, proc_get_
禁用不安全的PHP函數(shù),有些php函數(shù)是不夠安全的,我們必須要加強安全配置,如果做虛擬主機,建議禁止php函數(shù)列表如下:

代碼如下:
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)選項可關(guān)閉一些危險的函數(shù),比如system,exec 等,比如: disable_functions = phpinfo , 如果在文件中調(diào)用 phpinfo() 函數(shù),那么在 error_reporting 開啟的情況下,會提示如下錯誤:
Warning: phpinfo() has been disabled for security reasons
目前發(fā)現(xiàn)萬網(wǎng)主機是屏蔽此函數(shù)的。
利用 google: inurl:phpinfo.php 就可查看大量的主機信息,一般為管理員進行調(diào)試的時候放上未刪除的文件。禁用不安全的PHP函數(shù),這是必須的
本文最后更新于 2022-9-27 08:23,某些文章具有時效性,若有錯誤或已失效,請在網(wǎng)站留言或聯(lián)系站長:17tui@17tui.com
·END·
站長網(wǎng)微信號:w17tui,關(guān)注站長、創(chuàng)業(yè)、關(guān)注互聯(lián)網(wǎng)人 - 互聯(lián)網(wǎng)創(chuàng)業(yè)者營銷服務(wù)中心

免責(zé)聲明:本站部分文章和圖片均來自用戶投稿和網(wǎng)絡(luò)收集,旨在傳播知識,文章和圖片版權(quán)歸原作者及原出處所有,僅供學(xué)習(xí)與參考,請勿用于商業(yè)用途,如果損害了您的權(quán)利,請聯(lián)系我們及時修正或刪除。謝謝!

17站長網(wǎng)微信二維碼

始終以前瞻性的眼光聚焦站長、創(chuàng)業(yè)、互聯(lián)網(wǎng)等領(lǐng)域,為您提供最新最全的互聯(lián)網(wǎng)資訊,幫助站長轉(zhuǎn)型升級,為互聯(lián)網(wǎng)創(chuàng)業(yè)者提供更加優(yōu)質(zhì)的創(chuàng)業(yè)信息和品牌營銷服務(wù),與站長一起進步!讓互聯(lián)網(wǎng)創(chuàng)業(yè)者不再孤獨!

掃一掃,關(guān)注站長網(wǎng)微信

大家都在看

    熱門排行

      最近更新

        返回頂部