PDA

View Full Version : Denying Directory Browsing


SonOfPoverty
08-14-2004, 02:01 AM
Hey everyone. I need some help.

I have a new site coming up, and I'll be hosting some stuff that i'm not using on the site. How do I deny access to the directory listings without making my site completely unaccessable to people?

In other words, if someone types in www.mysite.com/images, how do i make it so that stupid page pops up where it says "Directory Listing Denied.
This Virtual Directory does not allow contents to be listed."?

thanks for the help everyone.

afireinside4848
08-14-2004, 03:08 AM
try askin the administrator

fo0hzy
08-16-2004, 10:07 PM
Copy & paste this code into notepad, save as "index.html", then put it into your directory.

<html>
<head>
<title>Oops.</title>
</head>

<body bgcolor="#FFFFFF" text="#000000">
Directory listing denied.
</body>
</html>

korte
08-16-2004, 10:31 PM
Brilliant!