Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 want to my site down for an hour and i was using

order Deny,Allow
Deny from all
Allow from my.ip.add.ress

but i dont like the default error page, is there a 301 redirct where i can redirect everyone whos not on my ip address to a nice and pretty page?

share|improve this question
+1 Nice question. – Dave Nov 3 '10 at 16:37
up vote 8 down vote accepted

Just specify a page that all 403 error messages should be shown:

order Deny,Allow
Deny from all
Allow from my.ip.add.ress

ErrorDocument 403 /forbidden.html

You can customize this page to look any way you wish.

share|improve this answer
+1 even better answer – Dave Nov 3 '10 at 16:37

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.