February 2008

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. <LIMIT GET POST >Order Deny,AllowDeny from AllAllow from 192.168.0.1</LIMIT>ErrorDocument 403 "Site Upgrades,

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