It is OK to add the following code to the page where you want to disallow access or submit the form.
Note: The bottom is just a PHP restricted IP instance code, if you intend to apply to the CMS, please modify it yourself.
<?php/plus IP access limit if (getenv (' http_client_ip ') && strcasecmp (getenv (' http_client_ip '), ' unknown ')} {$userip =
getenv (' http_client_ip '); } elseif (getenv (' http_x_forwarded_for ') && strcasecmp (getenv (' http_x_forwarded_for '), ' unknown ')} {$userip =
getenv (' http_x_forwarded_for '); } elseif (getenv (' remote_addr ') && strcasecmp (getenv (' remote_addr '), ' unknown ')) {$userip = getenv (' Remote_
ADDR '); } elseif (Isset ($_server[' remote_addr ')) && $_server[' remote_addr '] && strcasecmp ($_server[' Remote_
ADDR '], ' unknown ') {$userip = $_server[' remote_addr '];
}//Restrict IP if ($userip = = ' 192.168.1.88 ') {header ("location:http://t.qq.com/wb631992791"), and/or be prohibited to jump to Weibo exit;
//Limit IP segment $ip _arr = Explode ('. ', $userip); #限制的ip段, suppose to be 192.168.*.* if (! ($ip _arr[0] = = ' 168 ' && $ip _arr[1]== '))
{Header ("location:http://t.qq.com/wb631992791");//is forbidden to jump to Weibo exit;
}else{header ("location:http://afish.cnblogs.com");/normal IP direct access to the small fish Pavilion home exit;
}?>