Skip to content

Instantly share code, notes, and snippets.

@codexss
Created August 19, 2015 12:01
Show Gist options
  • Save codexss/2b26e8049aef0ffc5cd2 to your computer and use it in GitHub Desktop.
Save codexss/2b26e8049aef0ffc5cd2 to your computer and use it in GitHub Desktop.
<?php
if (isSet($_GET["host"]))
{
$host = $_GET["host"];
$ip = gethostbyname($host);
if ($ip != $host) die ($ip);
}
echo "0.0.0.0";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment