Skip to content

Instantly share code, notes, and snippets.

@Leo24
Created August 14, 2017 08:34
Show Gist options
  • Save Leo24/53cced58a178ec56d4596dba812479ee to your computer and use it in GitHub Desktop.
Save Leo24/53cced58a178ec56d4596dba812479ee to your computer and use it in GitHub Desktop.
<?php
if($_SERVER['REMOTE_ADDR'] == '<your_ip_address>'){
echo "<h1>TEST</h1>";
}else{
echo $_SERVER['REMOTE_ADDR'] . ' not <your_ip_address>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment