Re: avoid server folder reading

From: Date: Sun, 20 Jan 2008 04:38:33 +0000
Subject: Re: avoid server folder reading
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-267697@lists.php.net to get a copy of this message
On Jan 19, 2008 6:36 PM, Nathan Nobbe <quickshiftin@gmail.com> wrote: > On Jan 19, 2008 7:50 PM, Jochem Maas <jochem@iamjochem.com> wrote: > > > my reply was to the OP, not you as such, given that your also answering > > his question, > > sorry for the misunderstanding. > > i think half the time i get confused myself; like this morning when you said > show us your > exact code, to the OP of the thread, and i was like; 'i just posted my exact > code' :) > > > > that said I have found it's often a worthy exercise to poke/prod the OP as > > to what they are really trying to achieve rather than blindly assume that > > what > > they are asking is what they really want - this is quite often not the > > case - I think > > you;ll agree :-) > > > such was the case w/ the thread where tedd asked about embedding &nbsp in > the name > attribute of a input tag of type submit. > everybody was going on about how to handle it on the server side and i was > like, just > end it w/ a little css. so yeah, i def agree. > > -nathan > Just add a simple index.php to every folder you want to hide, if you want a "PHP solution". index.php: header('Location: http://yoursite.com'); -Casey

« previous php.general (#267697) next »