The website suddenly appears the style completely invalid, hurriedly checks whether is hangs the black chain!

Source: Internet
Author: User
Keywords Website optimization

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

A few days ago received a friend for customers to maintain the enterprise website has asked for help, according to his description is early in the morning to find no strange site, and the owner of the site with him said the site appeared to be a problem, said it is difficult to see. My friend still doesn't believe it, and insists that it's the man's problem. As a result, the friend is still holding a problem must be for customers to solve the mentality of the customer asked some of the situation, found himself often with non IE kernel browser Google browser, and customers are using IE9 browser. The results of their own web site in IE open dumbfounded, found that the entire site's style completely ineffective, it will be the customer to see that very difficult to see.

My friend is a back-end developer on weekdays, although there is some understanding of some things on the front end, but not particularly proficient, he examined a lot of vulnerable areas, such as server configuration, style path, and so on, but he was aware of this before the inspection is futile, because this is a sudden problem. So I have to talk about this thing, although I am not much more proficient in this aspect of knowledge, but one more one head to think about it.

I started to check out what he thought was not likely to be the problem, and I suddenly came up with a browser compatibility issue in my head. I also realized that if a local style is not compatible with IE browser, that is not a complete mess, such as we often can find dislocation of what, may be one or more div block style is not compatible, but here is a complete mess, so obviously not some local fault, but the overall.

I thought of the HTML declaration tag, such as a document declaration tag with the following code in the public header of the well-known Open-source program DZ:

I was wondering if there was a reason why the HTML document was not recognized by IE, and it didn't work. Because the beginning of the reason does not take into account the label above the problem, but to see the main body, the results look at the top, found that this label is not normally located in the first line of the document, is found in the previous lines of documents have other unknown content. As shown in the following illustration:

Obviously, this site was maliciously linked to black chain. It is clear that all along, the gambling sites either hijacked the normal site's domain name to point to their illegal website, or to the normal website hanging black chain.

Therefore, if our site suddenly appears in some kernel or all browser access anomalies, we have to consider the site is not the hands of those who have been. and need to resolve as soon as possible, otherwise the user will cause a very poor user experience, for search engines would put the site down the right, but also by the security vendors labeled as a risk, and so on a series of issues.

Of course, here is a hint, even if we found these problems, not directly to the public head file Delete malicious inserted code on the line, I believe that people who hang black chain will not be so silly. It is common to modify other files and then use scripts to output the code to some files. For example, here he used DZ is source/function/function_portal.php this file injected, and then write to header_common.htm beginning.

It also has to be said that those who put the black chain in this position are indeed not too sensible, because hanging in this position will cause access to the policy, this will be quickly checked out, if placed in other locations, may be a long time webmaster will not find, know that the security software prompts their own site risk.

Of course this malicious black chain of behavior is certainly immoral, we also need to prevent the normal site of this behavior occurs. So when our site suddenly appears to be abnormal, malicious tampering of the site is also the scope we need to consider. The last warm tip many webmaster, daily good site backup is the best policy, such as the site was hacked and malicious code automatically generated itself will not be resolved when it can only let backup files to do the bench!

This article by the Kimberley Toilet paper http://www.jinbolizhiye.com/Original, reprint please indicate the source!

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.