View previous topic :: View next topic |
Author |
Message |
Josh -
Joined: 18 May 2003 Posts: 1
|
Posted: Sun May 18, 2003 9:26 pm Post subject: .htaccess to deny directory listing. |
|
|
Hi, I am aware of other posts, and the option in the Admin CP to turn off directory listing, but thats globally only. I want to know how to use a .htaccess file to stop the listing of a specific directory (one).
(Im using windows version).
Thanks, Josh. |
|
Back to top |
|
 |
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Sun May 18, 2003 11:17 pm Post subject: |
|
|
You can simply insert into that directory a blank "index.htm" document which should help in preventing the listing without affecting your other directories.
Good luck :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
 |
 |
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Mon May 19, 2003 8:54 pm Post subject: |
|
|
vbgunz wrote: | You can simply insert into that directory a blank "index.htm" document which should help in preventing the listing without affecting your other directories.
Good luck :) |
Humm.... I am not sure what you mean by using a blank "index.htm" to the document. When "Auto indexing" set to "No", it should be globel and will give spit out "403 Forbidden" unless you know the specific html or file. Unless I am mis-unstood your post :?: 8O :?:
The only other coming close is to use the "Access" to specify which user can have "access to" or "deny to" specific folder / directory. The latest Abyss X1 should have this feature and the older version should be missing (I think??).
CapFusion,... |
|
Back to top |
|
 |
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Mon May 19, 2003 10:54 pm Post subject: |
|
|
I thought you asked how to leave auto directory indexing on for every directory except one. A blank.htm document should make it easy...
Open a new note in notepad, immediately save the blank note as index.htm, drop that note into the directoy in which you wish to block the automatic listing. When someone tries to access that directory they will not get a listing but a blank index.htm document.
I really thought this is what you wanted. Sorry if I understood you wrong... Good luck :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
 |
 |
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Mon May 19, 2003 11:32 pm Post subject: |
|
|
Quote: |
I thought you asked how to leave auto directory indexing on for every directory except one. A blank.htm document should make it easy...
|
I did not know you can disable Auto Index except one? Humm.... according to his post, I believe Josh want certain directory to be "Index" and other not. I will try your method and see if it work. If I recall correctly, it should be On or Off which mean, the directory will be listing of it content or forbidden (403 forbidden). :D
CapFusion,... |
|
Back to top |
|
 |
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Mon May 19, 2003 11:51 pm Post subject: |
|
|
He wants auto directory indexing on "globally" *except* for one directory. He could simply drop a blank index.htm document into the directory he doesn't want listed and when someone tries accessing the directory Abyss will return the blank index file instead.
It would probably be a nice addon for Abyss to automatically do this but it shoudn't be a biggie if its just one directory. :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
 |
 |
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Tue May 20, 2003 12:17 am Post subject: |
|
|
Quote: |
Hi, I am aware of other posts, and the option in the Admin CP to turn off directory listing, but thats globally only. I want to know how to use a .htaccess file to stop the listing of a specific directory (one).
|
Ok. I got it now, vbgunz. I had it in reverse. :oops: You are correct. He just want one directory to be hidden and the rest will be directory listing of it content. Puting in a blank Index.htm, the server will send out the Index.htm instead of the all the listing of that directory content. :lol: I see the picture now. 8O
CapFusion,... |
|
Back to top |
|
 |
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Tue May 20, 2003 12:20 am Post subject: |
|
|
BTW, vbgunz what is up with your page >> http://www.vbgunz.com << I can not see it except page not found.
CapFusion,... |
|
Back to top |
|
 |
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Tue May 20, 2003 12:26 am Post subject: |
|
|
It redirects to php.net at the moment. I am currently working on a big project but without any help its proving to take longer than expected. Until my project is in the air vbgunz.com will stay in redirection.
Thanks for checking it out. Hopefully it'll be up soon enough :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
 |
 |
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Tue May 20, 2003 12:36 am Post subject: |
|
|
Quote: | It redirects to php.net at the moment. I am currently working on a big project but without any help its proving to take longer than expected. Until my project is in the air vbgunz.com will stay in redirection.
|
Since I / we are going Off-Topic :D
Since I am seeing Page Not Found, I thought you can redirect 404 Page Not Found to a something like "404 Page Not Found - UnderConstruction" or something from the Abyss 404 page redirect [local or globle].
CapFusion,... |
|
Back to top |
|
 |
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Tue May 20, 2003 12:49 am Post subject: |
|
|
Pretty wierd, I just cleared my cache on both IE6 Mozilla 1.3 and I can see the page. Also, it is not being hosted on my server but is being redirected using the services found at http://www.mydomain.com
I'll leave it as is at the moment but thank you very much for pointing it out. ;) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
 |
 |
CapFusion -
Joined: 18 May 2003 Posts: 617 Location: Lost in Abyss' Dungeon
|
Posted: Tue May 20, 2003 12:55 am Post subject: |
|
|
Quote: | I'll leave it as is at the moment but thank you very much for pointing it out. |
Yeap, just to make sure that my Firewall did not do some funny stuff. I try with my other PC out in the open and show the same result. 8)
CapFusion,... |
|
Back to top |
|
 |
|