cancel
Showing results for 
Search instead for 
Did you mean: 

Webspace Directory Listing

engine987
Newbie
Posts: 2
Registered: ‎10-01-2011

Webspace Directory Listing

I recently found out that my Plusnet webspace has directory listing turned on, although the default is off.  I asked the support team to turn it off for me and they said that they cannot do it -  I would have to do it myself.
Does anyone know how to turn of directory listing in their webspace?
3 REPLIES 3
bobpullen
Community Gaffer
Community Gaffer
Posts: 15,023
Thanks: 2,667
Fixes: 170
Registered: ‎04-04-2007

Re: Webspace Directory Listing

You should be able to do it using htaccess.
Create a text file containing the following:
Options -Indexes

Upload it to the htdocs directory of your webspace and then rename it .htaccess (note the dot at the start of the filename).
That should probably do the trick.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

bobpullen
Community Gaffer
Community Gaffer
Posts: 15,023
Thanks: 2,667
Fixes: 170
Registered: ‎04-04-2007

Re: Webspace Directory Listing

Quote from: Bob
That should probably do the trick.

Tried it on my account and it broke access to my webspace Sad
IndexIgnore *

Tried the above instead though and that seems to have had the desired effect.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

engine987
Newbie
Posts: 2
Registered: ‎10-01-2011

Re: Webspace Directory Listing

Thanks very much - your last suggestion seems to work OK.