Print all metadata available when doing an HTTP request https://meta.4.niv.re
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

9 lines
331 B

<?php
if ($_SERVER['REQUEST_URI'] === "/emoji")
echo file_get_contents("emoji.html");
else if ($_SERVER['REQUEST_URI'] === "/me")
header("Location: /" . htmlspecialchars($_SERVER['REMOTE_ADDR']));
else if (filter_var(substr($_SERVER['REQUEST_URI'], 1), FILTER_VALIDATE_IP))
require "geolite2.php";
else
require "meta.php";