The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    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.
     
Loading...

Share This Page