HOW TO PREVENT USERS FROM ACCESSING FILES OUTSIDE PUBLIC_HTML WITH PHP? [STEP BY STEP]☑️

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

steps to prevent users from accessing files outside home directory with php
steps to prevent users from accessing files outside home directory with php

Step::3 Click on PHP open_basedir Tweak option

steps to prevent users from accessing files outside home directory with php
steps to prevent users from accessing files outside home directory with php

 

Step::4 Tick on Enable php open_basedir Protection

steps to prevent users from accessing files outside home directory with php
steps to prevent users from accessing files outside home directory with php

Step::5 Then click on Save button

That’s it!!!

For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channelhttps://youtube.com/redserverhost.com

Facebook Page- https://facebook.com/redserverhost

Twitter Page- https://twitter.com/redserverhost.com

If you have any query, feel free to let us know via the comments section below.

Thanks for Reading!!!

Tags: cheap linux hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting

Scroll to Top