Ali Green net Cloud shield hint of suspected violation information processing method

Source: Internet
Author: User
Tags get ip aliyun

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.