I've been trying to figure out if add-on domains can be prevented from accessing folders outside its specified root folder. I host multiple websites on one big hosting plan and am trying to avoid a compromise in one of the sites from allowing access to the directories above it.
How would I go about doing this using htaccess, permissions, or any other method? or is this even possible to do in the first place?
I am using Amazon Lightsail VPS to host these sites.