ZeroPaid.com

  (#1) Old
FrozenShadow23 Offline
Black Mage Power.
FrozenShadow23 Reputation is 0
 
FrozenShadow23's Avatar
 
Posts: 1,019
Join Date: Dec 2002
Location: WA, USA
Age: 24
Reputation Power: 135
Apache problems - September 10th, 2004, 02:58 AM

I don't know if any of you know much about Apache, but I recently started using it and had a question regarding user restrictions.

Okay, I get that I can use .htaccess to password protect a directory recursivly, but what I want to know, is if I can use it to restrict just the ability to display indexes. I don't mean a single file called "index.html or .php" or anything like that, I mean apache's indexing abilities that list files and folders in a directory and allow you to browse through them.

I have it setup now so that the directory is inaccessable unless you have a password. This goes for any links into it and actually visiting it. What I want, is for it to protected from being viewed, unless you have a password, but still accessable through external links. Basically, the files won't be protected, just the ability to index it.

Any suggestions?


How's about them apples?
  Send a message via AIM to FrozenShadow23 Send a message via Yahoo to FrozenShadow23  
Reply With Quote
  (#2) Old
method Offline
yeah, whatever...
method Reputation is 10
 
method's Avatar
 
Posts: 1,195
Join Date: May 2002
Location: New World Order HQ
Age: 30
Reputation Power: 151
September 10th, 2004, 04:50 AM

In your virtual server's settings.. in "Directory Indexing" options.. there's a textbox for you to list files for indexing to IGNORE...

Add *.* to that list and all files will be ignored in the directory indexing for that virtual server. (It'll look like all directories are empty to the end-user)

I'm sure there are better ways but this quick-fix worked for me.

Peace!!


||| = + |-|---------No longer lurking...
m e t h o d-----...Target aquired: BREIN
 Send a message via ICQ to method  
Reply With Quote
  (#3) Old
FrozenShadow23 Offline
Black Mage Power.
FrozenShadow23 Reputation is 0
 
FrozenShadow23's Avatar
 
Posts: 1,019
Join Date: Dec 2002
Location: WA, USA
Age: 24
Reputation Power: 135
September 10th, 2004, 11:17 AM

This effectivly turns indeing off though, if I wanted to do that, I could just delete the word "indexes" in the <directory> areas, I want to just restrict access to the capability, like, require a password using .htaccess before a user can view it.

Thanks for the input though, that's a much cleaner looking way of turning off indexes than just deleting "indexes," as it doesn't leave the Access Denied page, but a blank one instead.


How's about them apples?
  Send a message via AIM to FrozenShadow23 Send a message via Yahoo to FrozenShadow23  
Reply With Quote
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any problems using K-Lite v2.4.3 with SP2? binary General Discussion 6 October 8th, 2004 11:27 PM
problems playing dvd's WackoTacko Problems & Questions 7 September 8th, 2004 01:25 PM
New System New Problems. Omyn General Computing 5 August 25th, 2004 03:25 PM
Any Nero 6 Problems? Dizzle4 Problems & Questions 3 August 3rd, 2004 11:01 AM
Public Letter to 9/11 Commission Chairman from FBI Whistleblower sicknote The Lounge 3 August 3rd, 2004 10:34 AM




vBulletin Skin developed by: vBStyles.com