Reply
block access to a folders directory?
Old 01-23-2008, 09:53 AM block access to a folders directory?
Experienced Talker

Posts: 42
I have a linux server and was wondering how to block access to the directory of the folder. such as now lets say my page is domain/services/service1.php now if someone erases service1.php to make it domain/services/ and hits enter - then a directory will come up and show all contents in that folder - how can I block this from happening?
Boar is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-23-2008, 12:08 PM Re: block access to a folders directory?
Novice Talker

Posts: 7
yes , you can do it from DA
travelguide is offline
Reply With Quote
View Public Profile
 
Old 01-23-2008, 12:54 PM Re: block access to a folders directory?
Experienced Talker

Posts: 42
Quote:
Originally Posted by travelguide View Post
yes , you can do it from DA
Whats that?
Boar is offline
Reply With Quote
View Public Profile
 
Old 01-23-2008, 03:14 PM Re: block access to a folders directory?
tripy's Avatar
Fetchez la vache!

Posts: 1,818
Name: Thierry
Location: In the void
If you use apache, you can use it's "options" directive.
You can put this in a .htaccess file at the place you want it active:
http://httpd.apache.org/docs/2.0/mod/core.html#options
Code:
<Directory /var/www/domain/htdocs/services>
  Options -indexes
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 04:18 PM Re: block access to a folders directory?
Extreme Talker

Posts: 207
Name: Simon
Location: United Kingdom
well done tripy good tip, i also needed that help thanks!!
__________________
Regards Watts,
Razor Hosting | Professional Web Hosting
www.razor-hosting.co.uk | Shared the love share TP
Watts is offline
Reply With Quote
View Public Profile Visit Watts's homepage!
 
Reply     « Reply to block access to a folders directory?
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11797 seconds with 13 queries