Changeset 1249478
- Timestamp:
- 09/20/2015 05:12:50 AM (11 years ago)
- Location:
- botnet-blocker/trunk
- Files:
-
- 2 added
- 4 edited
-
botnet-blocker.php (modified) (2 diffs)
-
class.bnblocker-admin.php (modified) (6 diffs)
-
class.bnblocker-config.php (modified) (1 diff)
-
languages/botnet-blocker-en_US.mo (added)
-
languages/botnet-blocker-en_US.po (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
botnet-blocker/trunk/botnet-blocker.php
r1249476 r1249478 5 5 Description: Free botnet IP blocker according to public DNSBL bases. Based on public DNSBL class. 6 6 Author: Dennis Wallace 7 Version: 1.0. 07 Version: 1.0.1 8 8 License: GPLv2 or later 9 9 */ … … 65 65 */ 66 66 public function handle_init() { 67 load_plugin_textdomain( 'b nblocker', false, 'botnet-blocker/languages' );67 load_plugin_textdomain( 'botnet-blocker', false, 'botnet-blocker/languages' ); 68 68 } 69 69 -
botnet-blocker/trunk/class.bnblocker-admin.php
r1249476 r1249478 37 37 38 38 function admin_menu() { 39 add_options_page( __('Botnet Blocker Settings', 'b nblocker'), __('Botnet Blocker', 'bnblocker'), 'delete_posts', 'bnblocker_settings', array($this, 'plugin_page') );39 add_options_page( __('Botnet Blocker Settings', 'botnet-blocker'), __('Botnet Blocker', 'botnet-blocker'), 'delete_posts', 'bnblocker_settings', array($this, 'plugin_page') ); 40 40 } 41 41 … … 44 44 array( 45 45 'id' => 'bnblocker_core', 46 'title' => __( 'Settings', 'b nblocker' )46 'title' => __( 'Settings', 'botnet-blocker' ) 47 47 ) 48 48 ); … … 61 61 array( 62 62 'name' => 'bnblocker_rbl', 63 'label' => __( 'Realtime Blacklist Service', 'b nblocker' ),64 'desc' => __( 'Which RBL service to use when checking for botnet addresses.', 'b nblocker' ),63 'label' => __( 'Realtime Blacklist Service', 'botnet-blocker' ), 64 'desc' => __( 'Which RBL service to use when checking for botnet addresses.', 'botnet-blocker' ), 65 65 'type' => 'select', 66 66 'options' => $this->config->get_rbl_list(), … … 69 69 array( 70 70 'name' => 'bnblocker_skiplist', 71 'label' => __( 'Skip List', 'b nblocker' ),72 'desc' => __( 'A list of IP addresses and/or network/mask combinations to skip checking. Network/mask entries must be in CIDR form ( e.g., 192.168.0.0/16 ).', 'b nblocker' ),71 'label' => __( 'Skip List', 'botnet-blocker' ), 72 'desc' => __( 'A list of IP addresses and/or network/mask combinations to skip checking. Network/mask entries must be in CIDR form ( e.g., 192.168.0.0/16 ).', 'botnet-blocker' ), 73 73 'type' => 'textarea', 74 74 'default' => '127.0.0.1' … … 76 76 array( 77 77 'name' => 'bnblocker_skipself', 78 'label' => __( 'Skip Self', 'b nblocker' ),79 'desc' => __( 'If checked, the local server address will be added to the skip list.', 'b nblocker' ),78 'label' => __( 'Skip Self', 'botnet-blocker' ), 79 'desc' => __( 'If checked, the local server address will be added to the skip list.', 'botnet-blocker' ), 80 80 'type' => 'checkbox', 81 81 'default' => 'on' … … 83 83 array( 84 84 'name' => 'bnblocker_whitelist', 85 'label' => __( 'Whitelist', 'b nblocker' ),86 'desc' => __( 'A list of IP addresses and/or network/mask combinations to never mark as a bot. The whitelist overrides the black list - if the same address is in both lists then it will be allowed. Network/mask entries must be in CIDR form ( e.g., 192.168.0.0/16 ).', 'b nblocker' ),85 'label' => __( 'Whitelist', 'botnet-blocker' ), 86 'desc' => __( 'A list of IP addresses and/or network/mask combinations to never mark as a bot. The whitelist overrides the black list - if the same address is in both lists then it will be allowed. Network/mask entries must be in CIDR form ( e.g., 192.168.0.0/16 ).', 'botnet-blocker' ), 87 87 'type' => 'textarea' 88 88 ), 89 89 array( 90 90 'name' => 'bnblocker_blacklist', 91 'label' => __( 'Blacklist', 'b nblocker' ),92 'desc' => __( 'A list of IP addresses and/or network/mask combinations to always mark as a bot (unless also present on the white list). Network/mask entries must be in CIDR form ( e.g., 192.168.0.0/16 ).', 'b nblocker' ),91 'label' => __( 'Blacklist', 'botnet-blocker' ), 92 'desc' => __( 'A list of IP addresses and/or network/mask combinations to always mark as a bot (unless also present on the white list). Network/mask entries must be in CIDR form ( e.g., 192.168.0.0/16 ).', 'botnet-blocker' ), 93 93 'type' => 'textarea' 94 94 ), -
botnet-blocker/trunk/class.bnblocker-config.php
r1249476 r1249478 130 130 */ 131 131 public function get_rbl_list() { 132 $array = array( 'all' => __( 'All valid blacklists', 'b nblocker' ) );132 $array = array( 'all' => __( 'All valid blacklists', 'botnet-blocker' ) ); 133 133 foreach ( $this->dnsbl->GetCheckers() as $b ) { 134 $array[$b] = __( $b, 'b nblocker' );134 $array[$b] = __( $b, 'botnet-blocker' ); 135 135 } 136 136 return $array; -
botnet-blocker/trunk/readme.txt
r1249476 r1249478 4 4 Requires at least: -.-.- 5 5 Tested up to: 4.3.1 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 8 8 Botnet IP checker using public DNSBL bases and a hardcoded whitelist/blacklist. … … 10 10 == Description == 11 11 12 This is an IP checker. It is free. It provides an object that will validate an incoming IP address against several DNSBLs. Uses .xbl.spamhaus.org by default. 13 Plugin is based on a slightly modified verison of the public DNSBL class. 12 This plugin provides a global object that will validate an incoming IP address against one or several DNSBLs, as well as internal white and black lists. Uses .xbl.spamhaus.org by default. This is based on a slightly modified version of the public DNSBL class, and was inspired by the spam-ip-blocker plugin by znaeff. 14 13 [Official page of DNSBL class on PHPClasses.org](http://www.phpclasses.org/package/6994-PHP-Check-spam-IP-address-in-DNS-black-lists.html "DNSBL class on PHPClasses.org") 15 14 … … 63 62 Now uses CIDR-formatted netmasks for better maintenance 64 63 BREAKING CHANGE: Global object has been renamed from $BOTNETBLOCKER_OBJ to $wp_plugin_bnblocker 64 65 = 1.0.1 = 66 Refactored to allow for support for language packs
Note: See TracChangeset
for help on using the changeset viewer.