How to protect directory content from being viewed.

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have several subdirectories with .phps, pictures, etc that I'd like to
prevent users from getting a listing of.

I've been to sights that produce a "Directory Listing Denied" error when I
enter the URL and subdirectory. What permission levels must I set my
directory to for the same error message to be displayed?

John
 
You can set that permission through IIS. You could also take the easy way
out and put in a web page with the same name as your home page, which is the
default home page file name for that web site.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Sorry, what's IIS? :)

The reason I need to know what permission level to set my sub-directories is
because the shopping cart I purchased installed those directories and I'm
trying to keep that sensitive information private.

Thanks.
 
Your host must disallow directory browsing on the server. You'll need to
contact them.
--
===
Tom "Pepper" Willett
Microsoft MVP - FrontPage
---
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
FrontPage 2003 Product Information:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
Understanding FrontPage:
http://msdn.microsoft.com/office/understanding/frontpage/
===
| I have several subdirectories with .phps, pictures, etc that I'd like to
| prevent users from getting a listing of.
|
| I've been to sights that produce a "Directory Listing Denied" error when I
| enter the URL and subdirectory. What permission levels must I set my
| directory to for the same error message to be displayed?
|
| John
|
|
 
Thanks Tom,

I figured out how my hosting site allowed me to trun off directory browsing.
It works & I'm much more comfortble now.

John
 
IIS (Internet Information Services) is the Microsoft web server product. Of
course, you might be hosted on a non-Microsoft server. Sorry if that's the
case.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top