<?php
/**
- * NP_Blacklist(JP) ($Revision: 1.13 $)
+ * NP_Blacklist(JP) ($Revision: 1.14 $)
* by hsur ( http://blog.cles.jp/np_cles )
- * $Id: NP_Blacklist.php,v 1.13 2008-05-04 00:41:54 hsur Exp $
+ * $Id: NP_Blacklist.php,v 1.14 2008-06-09 10:33:40 hsur Exp $
*
* Based on NP_Blacklist 0.98
* by xiffy
return 'http://blog.cles.jp/np_cles/category/31/subcatid/11';
}
function getVersion() {
- return '1.3';
+ return '1.3.1';
}
function getDescription() {
- return '[$Revision: 1.13 $]<br />'.NP_BLACKLIST_description;
+ return '[$Revision: 1.14 $]<br />'.NP_BLACKLIST_description;
}
function supportsFeature($what) {
switch ($what) {
//
// Modified by hsur
// http://blog.cles.jp
-// $Id: blacklist_lib.php,v 1.12 2008-05-04 00:41:54 hsur Exp $
+// $Id: blacklist_lib.php,v 1.13 2008-06-09 10:33:40 hsur Exp $
define('__WEBLOG_ROOT', dirname(dirname(realpath(__FILE__))));
define('__EXT', '/blacklist');
list ($a, $b, $c, $d) = explode('.', $spammer_ip);
foreach ($iprbl as $rbl) {
- if (strpos(gethostbyname("$d.$c.$b.$a.$rbl"), '127.') === 0) {
+ if ( gethostbynamel("$d.$c.$b.$a.$rbl") !== false ) {
return array ($rbl, $spammer_ip);
}
}
foreach ($domainrbl as $rbl) {
if (strlen($domain_to_test) > 3) {
//pbl_log('DNSBL Lookup: ' . $domain_to_test.'.'.$rbl);
- if (strpos(gethostbyname($domain_to_test.'.'.$rbl), '127.') === 0) {
+ if ( gethostbynamel("$domain_to_test.$rbl") !== false ) {
return array ($rbl, $domain_to_test);
}
}
<li> [Added] ログ消去時などに確認ダイアログが出るようにした。</li>
<li> [Added] 動作確認フォームを追加。</li>
<li> [Fixed] bulkfeedsが消滅したので関連機能を全て削除した。</li>
+ <li> [Fixed] 127.で始まるIPを誤判定をする問題に対応(2008/06/09)</li>
</ul>
<ul>