Hi Mahmoud, just add this line to the .htaccess file inside the folder you'd like to protect
deny from all On Mon, Sep 28, 2009 at 5:44 PM, Mahmoud Alnaanah <[email protected]>wrote: > I can found the file .htaccess in the site but I don't know how to use it. > > How I can use to make certain directory unbrowsable and the files in it > accessible only by the php code > > 2009/9/28 Ibrahim Yakti <[email protected]> > > check if your hosting allow htaccess override, then set rules for that >> folder using htaccess. >> >> >> On Mon, Sep 28, 2009 at 2:00 PM, Mahmoud Alnaanah <[email protected]>wrote: >> >>> I am using a free web hosting acount in 000page.com . >>> >>> I tried to change the permission of the include folder to 700 but the >>> folder still browsable. >>> >>> I tried put the include folder in the root folder beside htdoc folder >>> (which is the root of the site) but the include does not work. >>> >>> any help >>> >>> >>> 2009/9/28 Al-Faisal El-Dajani <[email protected]> >>> >>> You can do what Ibrahim mentioned. Another way is to move all those php >>>> files outside of the Apache directory root, and include them >>>> programatically. >>>> >>>> On Mon, Sep 28, 2009 at 10:21 AM, Ibrahim Yakti <[email protected]>wrote: >>>> >>>>> you can configure your apache to disable directory listing >>>>> this link would help: >>>>> http://felipecruz.com/blog_disable-directory-listing-browsing-apache.php >>>>> >>>>> >>>>> >>>>> On Mon, Sep 28, 2009 at 10:04 AM, Mahmoud Alnaanah < >>>>> [email protected]> wrote: >>>>> >>>>>> how to protect a folder which contains included php code or setting >>>>>> for my database from being browsed by the user. >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Al-Faisal El-Dajani >>>> 10/6 >>>> >>> >>> >>> >>> >>> >> > > > > > -- Ahmad Fathi Saleh Cell-Phone: +962 78 82 0 82 63 --~--~---------~--~----~------------~-------~--~----~ ### Jordan Linux Users Group ### http://Jolug.org/ http://groups.google.com/group/Jolug ### Ubuntu Jordan LoCo Team ### https://wiki.ubuntu.com/JordanTeam http://lists.ubuntu.com/ubuntu-jo ### Ojuba Linux ### http://ojuba.org/ ### Jordan PHP ### http://groups.google.com/group/JoPHP -~----------~----~----~----~------~----~------~--~---

