سكريبت Whmcs حذف php info من صفحة server status
How to remove phpinfo in Status
المشكلة :
وجود php info معطل فى الغالب و لكن موجود كرابط يوضح رابط السيرفر
وهو يعرضك للخطر حيث اذا كانت هذه الصفحة بها جميع سيرفراتك هتجعلها مكشوف
امام الهكر فعند محاولة عمل attack هيعملها عى جميع سيرفراتك لذلك يفضل اخفائها
حل المشكلة :
By default, it should actually be disabled (i.e. commented) within the status script (status/index.php) itself. However, if you'd like to remove the hyperlink from your status page, you can modify the templates/{your_active_template}/serverstatus.tpl file.
اذهب الى المسار
templates/{your_active_template}/serverstatus.tpl file
ثم احذف السطر
كود:
<th class="text-center">{$LANG.serverstatusphpinfo}</th>
والسطر
كود:
<td class="text-center"><a href="{$server.phpinfourl}" target="_blank">{$LANG.serverstatusphpinfo}</a></td>
ينصح باخذ باك اب للملف مسبقا
المرجع:
https://whmcs.community/topic/229545-disable-php-info/
المفضلات