Skip to content

Instantly share code, notes, and snippets.

@epson121
Last active August 29, 2015 14:05
Show Gist options
  • Save epson121/42e6206707a45d924a5b to your computer and use it in GitHub Desktop.
Save epson121/42e6206707a45d924a5b to your computer and use it in GitHub Desktop.
<?php
if(!in_array($_SERVER['REMOTE_ADDR'], array('212.92.214.170','74.97.45.98', '213.147.103.86'))){
echo "Maintenance mode.";
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment