Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    95

    Question 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. #2
    Member
    Join Date
    Dec 2004
    Posts
    388

    Default

    Quote Originally Posted by laborspy
    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.
    err..that's directory indexing. You can enable/disable that using your cpanel screen.

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    14

    Default

    Quote Originally Posted by laborspy
    .... but allow php files to write to the files inside it.
    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 .
    cLeaR your Minde

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    95

    Default

    order deny,allow
    deny from all
    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.

Similar Threads & Tags
Similar threads

  1. a simple question
    By ljwhite in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-05-2006, 05:05 AM
  2. Form to htaccess [moved]
    By jumanji in forum New User Questions
    Replies: 1
    Last Post: 01-13-2006, 03:36 PM
  3. Unable to use custom .htaccess ?? [moved]
    By cpaneluser001 in forum Security
    Replies: 4
    Last Post: 07-12-2005, 10:25 PM
  4. Simple question MX Record question...
    By redlorry919 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-20-2005, 07:41 AM
  5. A simple question...
    By manokiss in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-29-2003, 08:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube