Strict Standards: Declaration of action_plugin_jquery::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /membri/only4mods/lib/plugins/jquery/action.php on line 14

Strict Standards: Declaration of action_plugin_captcha::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /membri/only4mods/lib/plugins/captcha/action.php on line 137

Strict Standards: Declaration of action_plugin_wikistatistics::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /membri/only4mods/lib/plugins/wikistatistics/action.php on line 51

Strict Standards: Declaration of action_plugin_codehighlight::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /membri/only4mods/lib/plugins/codehighlight/action.php on line 225

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /membri/only4mods/lib/plugins/ipban/action.php on line 60
counterize_ii_mod:en:ipexcludelist - Ema's plugins (WP, DW)

Unfortunately, some of the pages are now read-only, this because in the last few months some spammers decided to “contribute” to the wiki…
I'm trying to lock only the interested pages.


Strict Standards: Declaration of Doku_Renderer_metadata::table_open() should be compatible with Doku_Renderer::table_open($maxcols = NULL, $numrows = NULL, $pos = NULL) in /membri/only4mods/inc/parser/metadata.php on line 24

Strict Standards: Declaration of Doku_Renderer_metadata::table_close() should be compatible with Doku_Renderer::table_close($pos = NULL) in /membri/only4mods/inc/parser/metadata.php on line 24

IP Range exclude list

It's not really a list, for now it's only a bunch of IPs that I “don't want to see” on my records (because full of spammers and bots).

Functions modified in counterize.php

IP Range Exclude list: counterize_add

The principle is: explode the IP address, compare the first piece if it's in our exclusion list compare the second part if it's one of that we want to exclude assign 1 to $checkval.

Original code:
        elseif (stristr($requesturl, ".gif"))
                $checkval = 1;
 
        # If not found anything unwanted yet, check to see if it's on the excludelist...
        if ($checkval == 0)
Modified code:
        elseif (stristr($requesturl, ".gif"))
                $checkval = 1;
 
        if ($checkval == 0)
        {
                $IPExploded = explode(".", $remoteaddr);
	switch($IPExploded[0])
	{
		case 24:
			if ($IPExploded[1] == 44)
			{
				$checkval=1;
			}
			break;
        case 38:
			$checkval=1;
			break;
        case 41:
			if ($IPExploded[1] == 249)
			{
				$checkval=1;
			}
			break;
        case 62:
			if ($IPExploded[1] == 148 || $IPExploded[1] == 33)
			{
				$checkval=1;
			}
			break;
        case 63:
			if (208 <= $IPExploded[1] && $IPExploded[1] <= 215 )
			{
				$checkval=1;
			}
			break;
        case 64:
			if ($IPExploded[1] == 188 && 128 <= $IPExploded[2])
			{
				$checkval=1;
			}
			if ($IPExploded[1] == 41 && 128 <= $IPExploded[2])
			{
				$checkval=1;
			}
			if ($IPExploded[1] == 92)
			{
				$checkval=1;
			}
			if ($IPExploded[1] == 124)
			{
				$checkval=1;
			}
			if ($IPExploded[1] == 202)
			{
				$checkval=1;
			}
			break;
        case 65:
			if ($IPExploded[1] == 222)
			{
				$checkval=1;
			}
			if ($IPExploded[1] == 17 && 192 <= $IPExploded[2])
			{
				$checkval=1;
			}
			if ($IPExploded[1] >= 52 && $IPExploded[1] <= 55)
			{
				$checkval=1;
			}
			break;
        case 66:
			if ($IPExploded[1] == 122 || $IPExploded[1] == 125 || $IPExploded[1] == 228)
			{
				$checkval=1;
			}
			break;
        case 67:
			if ($IPExploded[1] == 19 || $IPExploded[1] == 102 || $IPExploded[1] == 202 || $IPExploded[1] == 225)
			{
				$checkval=1;
			}
			break;
        case 70:
			if ($IPExploded[1] == 84)
			{
				$checkval=1;
			}
			break;
        case 72:
			if ($IPExploded[1] == 36 || $IPExploded[1] == 55 || $IPExploded[1] == 167 || $IPExploded[1] >= 232)
			{
				$checkval=1;
			}
			break;
        case 74:
			if ($IPExploded[1] == 6 || $IPExploded[1] == 52 || $IPExploded[1] == 53 || $IPExploded[1] == 54 || $IPExploded[1] == 95 || $IPExploded[1] == 205)
			{
				$checkval=1;
			}
			break;
        case 81:
			if ($IPExploded[1] == 169)
			{
				$checkval=1;
			}
			break;
        case 82:
			if ($IPExploded[1] == 99 && $IPExploded[2] == 30 && $IPExploded[3] <=128 )
			{
				$checkval=1;
			}
			break;
        case 84:
 			if ($IPExploded[1] == 19)
			{
				$checkval=1;
			}
			if ($IPExploded[1] == 223 && $IPExploded[2] == 90)
			{
				$checkval=1;
			}
			break;
        case 85:
			if ($IPExploded[1] == 17)
			{
				$checkval=1;
			}
			break;
        case 86:
			if ($IPExploded[1] == 42 || $IPExploded[1] == 123)
			{
				$checkval=1;
			}
			break;
        case 87:
			if ($IPExploded[1] == 118)
			{
				$checkval=1;
			}
			break;
        case 89:
			if ($IPExploded[1] == 122 || $IPExploded[1] == 149)
			{
				$checkval=1;
			}
			break;
        case 90:
			if ($IPExploded[1] == 193)
			{
				$checkval=1;
			}
			break;
        case 91:
			if ($IPExploded[1] == 124)
			{
				$checkval=1;
			}
			break;
        case 91:
			if ($IPExploded[1] == 124)
			{
				$checkval=1;
			}
			break;
        case 128:
			if ($IPExploded[1] == 100 || $IPExploded[1] == 177 || $IPExploded[1] == 208)
			{
				$checkval=1;
			}
			break;
        case 142:
			if ($IPExploded[1] == 166)
			{
				$checkval=1;
			}
			break;
        case 190:
			if (65 <= $IPExploded[1] && $IPExploded[1] <= 69)
			{
				$checkval=1;
			}
			break;
        case 195:
			if ($IPExploded[1] == 56 || ($IPExploded[1] == 177 && 176 <= $IPExploded[2] && $IPExploded[2] <= 179))
			{
				$checkval=1;
			}
			break;
        case 198:
			if ($IPExploded[1] == 247)
			{
				$checkval=1;
			}
			break;
        case 200:
			if (226 == $IPExploded[1])
			{
				$checkval=1;
			}
			break;
        case 201:
			if ((1 <= $IPExploded[1] && $IPExploded[1] <= 7) || $IPExploded[1] == 10 || $IPExploded[1] == 12 || $IPExploded[1] == 14 || $IPExploded[1] == 15 || $IPExploded[1] == 18 || $IPExploded[1] == 35 || $IPExploded[1] == 42 || $IPExploded[1] == 43 || $IPExploded[1] == 45 || $IPExploded[1] == 67 || $IPExploded[1] == 68 || $IPExploded[1] == 74 || $IPExploded[1] == 75 || $IPExploded[1] == 79 || $IPExploded[1] == 80 || $IPExploded[1] == 82 || $IPExploded[1] == 88 || $IPExploded[1] == 91 || $IPExploded[1] == 250 || $IPExploded[1] == 255)
			{
				$checkval=1;
			}
			break;
        case 208:
			if ($IPExploded[1] == 71)
			{
				$checkval=1;
			}
			break;
        case 206:
			if ($IPExploded[1] == 188 && $IPExploded[2] <= 31)
			{
				$checkval=1;
			}
			break;
        case 216:
			if ($IPExploded[1] == 205 || $IPExploded[1] == 32 || $IPExploded[1] == 39 || $IPExploded[1] == 14)
			{
				$checkval=1;
			}
			break;
        case 218:
			if ($IPExploded[1] == 42 && $IPExploded[2] <= 148)
			{
				$checkval=1;
			}
			break;
	}
        }
 
        # If not found anything unwanted yet, check to see if it's on the excludelist...
        if ($checkval == 0)

Tools personali