Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP upload disable in public_html only excluding sub directory under public_html

Discussion in 'General Discussion' started by joncallen, Jun 26, 2014.

  1. joncallen

    joncallen Member

    Mar 13, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Reseller Owner

    Please help me out with a script designing where I want to disable php upload in public_html but allows php to be uploaded in subfolders under public_html.

    I dont know the subfolders names but it will automatically check for subfolder and upload the php and deny upload if it is uploaded directly in public_html.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate a little more on the purpose of this type of configuration? For instance, what's the primary reason you want to prevent file uploads? Do you mean file uploads that occur through a particular PHP script?

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice