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!

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:
    156
    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:
    402
    Likes Received:
    3
    Trophy Points:
    168
    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:
    151
    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 .
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. laborspy

    laborspy Well-Known Member

    Joined:
    Feb 7, 2004
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    156
    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

  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