Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: preventing directory browsing

by fsn (Friar)
on May 02, 2003 at 09:18 UTC ( [id://254942]=note: print w/replies, xml ) Need Help??


in reply to Re: preventing directory browsing
in thread preventing directory browsing

Yes, but....

Beware that you will only hide the directories on the same level. If you link to any object on any other level, the user doesn't have to guess directories any more, and he can browse at least a subtree. Put empty index.html-files (or even perhaps with redirects) everywhere.

If you're on an apache server, and it's configured to read .htaccess files, you can use it to turn off browsing for an entire subtree (if I remember correctly). However, what you can do with an .htacces-file depends on the server setup, so you have to ask the server administrators. Read all about .htaccess in this tutorial.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://254942]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found