woff 發表於 2021-8-18 16:30:58

CPanel如何禁用 PHP 的 mail() 防止電子郵件濫發垃圾郵件

通過WHM


1. 以root用戶登錄WHM

2. 導航至:Home »Software »MultiPHP INI Editor

3.點擊“Editor Mode”標籤

4. 從下拉列表中選擇一個 PHP 版本

5. 找到 disable_functions 的設置

6. 將郵件功能添加到該設置中。如果沒有現有的禁用功能,您的設置將如下所示:

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names.
; http://php.net/disable-functions
disable_functions = mail
7、點擊編輯器右上角的藍色“保存”按鈕
頁: [1]
查看完整版本: CPanel如何禁用 PHP 的 mail() 防止電子郵件濫發垃圾郵件