TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
View Poll Results: Do you prefer "directory browsing" on or off?
On 2 33.33%
Off 4 66.67%
Dunno 0 0%
Voters: 6. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-21-2007, 12:17 AM   #1 (permalink)
The Visitor
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
dynaweb is on a distinguished road
Default [How To] Allow / Disallow Directory Browsing

Most servers are configured so that directory browsing is not allowed. This means that if a certain web directory does not contain an index (or default) file, then an error message will be displayed in the web browser.

If Directory Browsing is enabled, then the contents of the directory will be shown in the browser and you can click freely on files and folders therein.

Disllow Directory Browsing
If you want to Disallow Directory Browsing on a server that allows it, create an .htaccess file in the web root directory and add the following line:

Code:
IndexIgnore */*
Allow Directory Browsing
If you want to Allow Directory Browsing on a server that dies nto allow it by default, create an .htaccess file in the web root directory and add the following line:

Code:
Options +Indexes
Remember that .htaccess files do not work on Windows Servers, so you will have to have your web host set the configuration for you. Have fun with your server and htaccess!
dynaweb is offline  
Reply With Quote
Old 02-21-2007, 12:17 AM   #2 (permalink)
Super ModTastic
 
mike.fro's Avatar
 
Join Date: Apr 2005
Location: Apple Valley, MN
Posts: 89
Thanks: 1
mike.fro is on a distinguished road
Default

Very nice. Thanks for your contribution.
__________________
Michael.Froseth
www.michaelfroseth.com | Personal Portfolio/Blog *DOWN*
Send a message via AIM to mike.fro Send a message via MSN to mike.fro
mike.fro is offline  
Reply With Quote
Old 02-21-2007, 10:49 AM   #3 (permalink)
The Wanderer
 
Join Date: Feb 2007
Posts: 9
Thanks: 4
Killswitch is on a distinguished road
Default

Thanks, I've always just placed index pages in my directories with little messages in each. This could save me alot of time.
Killswitch is offline  
Reply With Quote
Old 02-21-2007, 08:36 PM   #4 (permalink)
Super ModTastic
 
mike.fro's Avatar
 
Join Date: Apr 2005
Location: Apple Valley, MN
Posts: 89
Thanks: 1
mike.fro is on a distinguished road
Default

Killswitch: A lot of people do that, in fact I used to do that.
__________________
Michael.Froseth
www.michaelfroseth.com | Personal Portfolio/Blog *DOWN*
Send a message via AIM to mike.fro Send a message via MSN to mike.fro
mike.fro is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 07:51 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0