web log control / configaration

hi friends ,

I have registered a web site recently and publist my site usind dreamvewer 4 , after publishing i just browse my site its working perfect. my problem is : i don't want to give access to any Directary i have created under my site

eg: www.siva.com assume my site i created a directary called "script" where my all js files stored.

if i type www.siva.com/script then i can see all the files in that directary

how can i stop this

please help me
thanks
siva

siva17671Asked:
Who is Participating?
 
humeniukConnect With a Mentor Commented:
If you're not familiar with .htaccess files, here's a general overview - www.webhostgear.com/63.html.  If you have questions, please feel free to ask.
0
 
humeniukCommented:
I see you're using Apache as your web server platform.  The easiest way to block directory browsing in Apache would be to add the following line to your .htaccess file:

Options -Indexes

If this is not your own server, ie if you are using a hosting company, they may or may not allow .htaccess files.  You can either call and ask them or you can test out the above solution and see what happens.  If you get a 500 error message, you will have to speak to the hosting company to see if they will allow it.
0
 
COBOLdinosaurConnect With a Mentor Commented:
And if you are limited as to what you can do on the server then create an heml page and save it as index.html.  Then copy it to each folder.
do the page this way:
<html><head><title>permission denied !</title></head>
<body>
<p style="font-size:72pt;text-align:center;">
PERMISSION DENIED! <br>
YOU DO NOT HAVE PERMISSION FOR THIS FOLDER
</p>
</body>
</html>

Cd&
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.