Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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

Posts: 78
Trades: 0
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
 
 
Register now for full access!
Old 01-23-2008, 01:08 PM Re: block access to a folders directory?
Novice Talker

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

Posts: 78
Trades: 0
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, 04:14 PM Re: block access to a folders directory?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
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>
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-31-2008, 05:18 PM Re: block access to a folders directory?
Extreme Talker

Posts: 240
Name: Simon
Location: United Kingdom
Trades: 0
well done tripy good tip, i also needed that help thanks!!
__________________
Razor Hosting : Professional Web Services
Shared Hosting, Reseller Hosting, VPS Hosting, Web Design starting from £2.95 /m

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Watts is offline
Reply With Quote
View Public Profile Visit Watts's homepage!
 
Reply     « Reply to block access to a folders directory?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.53544 seconds with 12 queries