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

    Joined:
    Mar 13, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hello

    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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...
Loading...

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