Disallow subdomain folder php scripts access to outside of it?

Amit

Verified User
Joined
Mar 24, 2020
Messages
129
Location
India
Hi
I have multiple sudomain on my da account i want to disallow subdomain php script to access to outside its own folder which is very essential for security because if one of my subdomain hacked it allow hacker to access to other subdomain and may inject malware to other subdomains.Please provide solution for it?
 
best sollution is to put all subdomains as separate domains in separate accounts,
but also you can try to use open_basedir restriction
 
Open_basedir is enable for the domain but its not working still sub domain php scripts are able to access to public_html and other folder outside of it
 
check phpinfo output from subdomain, I think it uses open_basedir from domain, while you must use custom_httpd to set up individual open_basedir for subdomain
 
check phpinfo output from subdomain, I think it uses open_basedir from domain, while you must use custom_httpd to set up individual open_basedir for subdomain
How would i customize it for subdomain please tell me step by step proccess
 
Back
Top