flash.moe/public/whois.php
2020-08-20 00:02:37 +00:00

6 lines
228 B
PHP

<?php
$domain = isset($_GET['domain']) && is_string($_GET['domain']) ? $_GET['domain'] : '';
$destination = empty($domain) ? '/whois' : '/whois/?domain=' . $domain;
http_response_code(301);
header('Location: ' . $destination);