Solution one , under normal circumstances we will ignore it to deal with it.
In view of the current site about FQ content has not been prompted suspected violations (Ali, you are sure that the "wall" does not violate the rules!? ), it can be seen that this violation of the hint should be Ali Green net misjudged, so currently temporarily "ignore" treatment.
Workaround Two
Aliyun is through a number of servers to monitor our website, we only need to screen off the Aliyun monitor server IP can, according to the site's access log, fire-end network has been found Aliyun Green network monitoring server IP. At present, the discovery of Hangzhou's monitoring server IP is: 121.42.0.* and 42.120.145.*, we only need to screen out this IP segment access to our site, such as the discovery of other monitoring IP, the same shielding can be, the following is the PHP version of the shielding IP code:
The code is as follows |
Copy Code |
function Get_ip () { $unknown = ' unknown '; if (Isset ($_server[' http_x_forwarded_for ']) && $_server[' http_x_forwarded_for '] && strcasecmp ($_ server[' Http_x_forwarded_for '], $unknown)) { $ip = $_server[' http_x_forwarded_for ']; } ElseIf (Isset ($_server[' remote_addr ']) && $_server[' remote_addr '] && strcasecmp ($_server[' Remote_ ADDR '], $unknown)) { $ip = $_server[' remote_addr ']; } if (False!== Strpos ($ip, ', ')) $ip = Reset (Explode (', ', $ip)); return $IP; } $ip = Get_ip (); Get IP if (Strpos ($ip, ' 121.42.0. ') >-1 | | Strpos ($ip, ' 42.120.145. ') >-1) {//Judge IP Header (' http/1.1 404 Not Found '); Return 404 error Header ("status:404 not Found"); Exit } |
Of course, we can also use. htaccess to shield. Add the following code to the site root directory, prohibit the IP 121.42.0.* of Ali Green Net
Order Allow,deny
# Prohibit an IP segment
Deny from 121.42.0
Allow from all
Each place has a different, and shielding method, such as the tribe currently joins the code as follows:
Deny 121.42.0.0/24;
Deny 42.120.145.0/24;
is shielded from two IP segments.
You can also go to find other IP, preferably from the site log to find.