Apache | July 22, 2009

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]

Just remember to change the IP above with your IP so you can see what you’re doing! :)

Read More
   
View by Category
  • Apache
  • CakePHP
  • Flash AS3
  • Geocoding
  • JavaScript
  • MySQL
  • Uncategorized
Useful Links and Resources
  • Adobe BrowserLab
  • CakePHP Documentation
  • Dolbex on Facebook
  • Dolbex on Twitter
  • LogicBomb Media
  • The Ultimate PHP Reference
  • W3C HTML Validator
 
Archives
  • October 2009
  • September 2009
  • July 2009
  • June 2009
Marple: the body in the library download movie Sicko download movie Roanoke: the lost colony download movie Marple: the body in the library download movie Sicko download movie Roanoke: the lost colony download movie The burbs download movie The mummy s ghost download movie 10 items or less download movie Evil bong download movie Boot camp download movie Grind download movie Blur download movie Confessions of a pop performer download movie