Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-12 16:57:42

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

hide or disable "Index of /..." pages

Hi,

I have just noticed that a lot of my website content is exposed and end users can see the “Index of /…” directory listings e.g.

Index of /do…/…./…./….

I have trawled the www and this forum for a fix for this but I can’t seem to find one. Can somebody help me with this?

  • I have tried to change the file permissions to 644 on the server but these files then become inaccessible!
  • I could dump an index.xxx into each sub-directory, but this would be cumbersome.
  • I tried to download a tool called “Leech” which I thought might help, but alas the download URL was not correct.

Thanks,

Tobey

Last edited by wordgasm (2010-01-12 17:00:24)

Offline

#2 2010-01-12 17:00:29

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: hide or disable "Index of /..." pages

in .htaccess add Options -Indexes


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2010-01-12 17:08:39

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

Re: hide or disable "Index of /..." pages

Part of my .htaccess says #Options +FollowSymLinks#Options -Indexes<IfModule mod_rewrite.c> and threw that Options -Indexes in but it wouldn’t work. Is there any specific format/arrangement I should use?

Last edited by wordgasm (2010-01-12 17:09:27)

Offline

#4 2010-01-12 19:11:14

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: hide or disable "Index of /..." pages

wordgasm wrote:

Part of my .htaccess says

#Options -Indexes

Just remove the #.

Last edited by els (2010-01-12 19:11:53)

Offline

#5 2010-01-12 19:43:46

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: hide or disable "Index of /..." pages

# is a comment so it’s looks like it’s commented out. I’d just put on a seperate line

Options -Indexes

My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#6 2010-01-14 07:21:37

wordgasm
Member
Registered: 2006-05-17
Posts: 83
Website

Re: hide or disable "Index of /..." pages

Excellent! Thank you!

# is a comment so it’s looks like it’s commented out. I’d just put on a seperate line

Offline

Board footer

Powered by FluxBB