Webmasters Stack Exchange is a question and answer site for pro webmasters. 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

Is it possible to limit user access using a HTACCESS file? I'm not quite sure how to edit folder permissions with the host i'm with so I figure using an HTACCESS file might be easier.

share|improve this question

migrated from stackoverflow.com Aug 23 '11 at 22:43

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

up vote 1 down vote accepted

Assuming the host has support then you need this line.

deny from all

Related: http://httpd.apache.org/docs/2.0/mod/mod_access.html

share|improve this answer
thats cool, is there a deny from some? – Howdy_McGee Aug 23 '11 at 15:59

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.