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 a strange requirement. I want to access a page on my site through a link say but i also want that if anybody enters only it should not be accessible or it should display access denied. How can i do that???????

share|improve this question

migrated from May 21 '10 at 14:47

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

"accessibility" often refers to features intended for people with physical limitations such as vision impairment. – Dennis Williamson May 21 '10 at 15:40

Disable directory browsing on your webserver.

share|improve this answer

Why make it inaccesible? That would be a problem if you ever have a bad link.

You can better create a index.htm file in /downloads that redirects to some custom error page, or to another page (like /downloads/file.txt).

It would work the same with only one question mark, also.

share|improve this answer

Your Answer


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