Using Apache’s .htaccess to restrict a site for maintenance

This is primarily a reminder for myself, since I have a hard time finding this when I need it.  Use this to restrict access to a site by IP address and display a friendly message to users when doing an upgrade or maintenance.

Order Deny,Allow

Deny from All

Allow from


ErrorDocument 403 "Site Upgrades, please check back later."