このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/public/blacklist.php

24 行
872 B
PHP

<?php
$badbot = 0;
/* look for the IP address in the blacklist file */
$filename = "./blacklist.dat";
$fp = fopen($filename, "r") or die ("Error opening file ... <br>\n");
while ($line = fgets($fp,255)) {
$u = explode(" ",$line);
$u0 = $u[0];
if (preg_match("/$u0/",$_SERVER['REMOTE_ADDR'])) {$badbot++;}
}
fclose($fp);
if ($badbot > 0) { /* this is a bad bot, reject it */
sleep(12);
print ("<html><head>\n");
print ("<title>BOT、消えろ</title>\n");
print ("</head><body>\n");
print ("<center><h1>来たわねwwwwww</h1></center>\n");
print ("<p><center>残念けど、こちらは人間以外立入錦糸。</center></p>\n");
print ("<p><center>オメェーはきゃわいいロリ警察官に報告されたから、早速消えろ!!</p>\n");
print ("</body></html>\n");
exit;
}
?>