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.

simple .htaccess question [moved]

Discussion in 'General Discussion' started by laborspy, Sep 13, 2005.

  1. laborspy

    laborspy Well-Known Member

    Joined:
    Feb 7, 2004
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    simple .htaccess question

    Is there away to create a .htaccess file to block peopla from viewing the directory and it's contents .... but allow php files to write to the files inside it.
     
  2. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    err..that's directory indexing. You can enable/disable that using your cpanel screen.
     
  3. prof

    prof Member

    Joined:
    Jan 22, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Do you want to enable PHP files to write to the files inside the (( Protected Folder ))
    when that's files requstes from the Explorer throw the port 80 ?


    if so , it will not be work .... there will make aconflect because if you want file to write to onther the onther should have permession 777 .
     
  4. laborspy

    laborspy Well-Known Member

    Joined:
    Feb 7, 2004
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    I got my answer on a website. The above just needs to be placed in a .htaccess inside the protected folder. Now using the above method will also allow you allow a certain IP or IP range.
     
Loading...

Share This Page