Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Apache Web server and my own CMS on this server. I don't want to show my directory listing to everybody, and I want set permission to hide my files like this alert:

403 Forbidden

You don't have permission to access /admin/ on this server.

I know how I can give permission to folder with security. But I don't know which permission is for this and which user must deny this permission.

share|improve this question

migrated from Sep 22 '12 at 17:46

This question came from our site for professional and enthusiast programmers.

You should do that with a .htaccess file.. make a .htaccess file with a unix based editor like Notepad++ and copy the following in it. and save tha file in any folder you want!

deny from all
share|improve this answer
thanks it realy works – Dest Sep 22 '12 at 16:23
You're welcome.. So please accept the answer so people will know that it has worked..! thx – Miro Markaravanes Sep 22 '12 at 16:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.