| Server IP : 162.241.226.12 / Your IP : 216.73.217.142 Web Server : Apache System : Linux box5305.bluehost.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : zphiblgz ( 1848) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/bin/ |
Upload File : |
#!/bin/bash
_domain=$1
_user=$(whoami)
_home_dir=$(getent passwd ${_user} | awk -F: {'print $6'})
_base_path="${_home_dir}/.cpanel/proxy_conf"
if [[ -z ${1+x} || -z ${_user+x} || ${_user} == 'root' ]]; then
exit 1
elif [[ -d "${_home_dir}" ]]; then
_path_owner=$(stat -c '%U' "${_home_dir}")
if [[ "${_user}" != "${_path_owner}" ]]; then
exit 1
fi
fi
if [[ ! -d "${_base_path}" ]]; then
mkdir -p "${_base_path}"
fi
echo 'cache_level=2' > "${_base_path}/${_domain}"
touch "/etc/proxy_notify/${_user}"