Block Users During a Site Launch with .htaccess
Ever need to block everyone but you from seeing a site you’re working on.
RewriteEngine On
RewriteCond %{REMOTE_HOST} !^76.97.206.111
RewriteCond %{REQUEST_URI} !/maintenance\.html$
RewriteRule .* /maintenance.html [R=302,L]
RewriteCond %{REMOTE_HOST} !^76.97.206.111
RewriteCond %{REQUEST_URI} !/maintenance\.html$
RewriteRule .* /maintenance.html [R=302,L]
Just remember to change the IP above with your IP so you can see what you’re doing!