HOW TO PREVENT USERS FROM ACCESSING FILES OUTSIDE PUBLIC_HTML WITH PHP? [STEP BY STEP]☑️
Today in this documentation you will learn how to prevent users from opening files outside their home directory with php. So before getting started let us quick watch this short video tutorial on how to prevent users from opening files outside their home directory with php.
Follow the steps to prevent users from accessing files outside home directory with php:
Step::1 Login to WHM as root
Step::2 Navigate to Security Center option
Step::3 Click on PHP open_basedir Tweak option
Step::4 Tick on Enable php open_basedir Protection