Browse Source

add timeout for whois

master
max.mehl 1 year ago
parent
commit
9ec952236f
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 2
      index.php

2
index.php

@ -95,7 +95,7 @@ function show_whois($target) {
preg_match('/[a-zA-Z\d\-]+\.[a-zA-Z\d]+$/', $target, $m);
$target = $m[0];
}
$whois = shell_exec("whois " . $target );
$whois = shell_exec("timeout 5 whois " . $target );
echo "<pre>"; print_r($whois); echo "</pre>";
echo "<br />\n";
}

Loading…
Cancel
Save