flash.moe/public/whois.php

7 lines
228 B
PHP
Raw Normal View History

2020-08-20 00:02:37 +00:00
<?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);