A solution to the malicious resolution of the domain name of independent IP site from shallow into deep

Source: Internet
Author: User

The advantages of the IP space must be familiar to everyone to smell detailed, stable and strong, conducive to SEO and so everyone chose the Peak network Hong Kong independent IP space. Then, the website exclusive access to the server IP address, independent IP space for Baidu included and weight accumulation, not be implicated, strong stability and many other advantages. However, these advantages are also attracting some criminals, through technical means, malicious resolution domain name to the independent IP space, given the specificity of the independent IP host, this malicious domain name parsing behavior makes people hate. So, how do we solve the class problem when we encounter such problems? The method is as follows:

Linux Environment of PHP space, the perfect support pseudo-static,. htaccess file Regular expression provides us with the technical reserve to solve the malicious resolution of such domain name, while combining with foreign independent IP space provider processing solutions, please check the following methods:

Method One: Point the malicious domain name to the 404 page

Point the malicious domain to a 404 page and let it go to hell.

Benefit: Remind the malicious resolver, stop parsing, otherwise always 404 error prompt page. Let the malicious resolution domain name accept punishment.

The htaccess regular expression rules are as follows:

Rewriteengine on

Rewritebase/

# Access to non-site domain names is prohibited

#请使用的时候把下面的域名更换您的域名.

Rewritecond%{http_host}!^www.kulengidc.com$ [NC]

Rewritecond%{http_host}!^kulengidc.com$ [NC]

Rewriterule ^.*$ [l,r=404]

Method Two: The malicious resolution of the domain name point to other places

The malicious resolution of the domain name through the following code you can be malicious domain names to Baidu, Sohu, localhost and any URL address. Or point to a gray service address, punish and warn the malicious resolver, stop, or you will be affected by this domain name.

The htaccess regular expression rules are as follows:

Point a domain name to another address

The rules are as follows

Rewriteengine on

Rewritecond%{http_host} ^ maliciously resolved domain name. com$ [OR]

Rewritecond%{http_host} ^www. A maliciously resolved domain name. com$

Rewriterule ^ (. *) $ http://www.baidu.com/$1 [r=301,l]//You can also fill out a non-existent URL.

If you find that the malicious resolution to your IP domain name is higher than your own domain name, then ding-feng network editor suggested that you, change to waste as a package, through the following regular expression, resolved to your own domain name, for your site to pass weights. Recommend this method.

Redirect Malicious domain 301 to your website domain name

The rules are as follows

Rewriteengine on

Rewritecond%{http_host} ^ maliciously resolved domain name. com$ [OR]

Rewritecond%{http_host} ^www. A maliciously resolved domain name. com$

Rewriterule ^ (. *) $ http://www. own domain name. com/$1 [R=301,l]

Multi-domain jump rules can be.

Ding-Feng network expert engineers in dealing with the site is a malicious resolution of the problem, but also heard some of the customer's questions, here answer.

Ask the customer--

1, Q: Through pseudo-static rules, the domain name to the HTTP 404 error page will affect my site?

Answer: No. The 404 Error prompt page is intended to tell spiders or visitors that the page visited does not exist. When a spider (or visitor) or this visit is 404, it stops crawling and accessing. Tip, do a high-quality 404 error access page, is very in line with the SEO optimization standards.

2, Q: The malicious resolution domain name to jump to my own site, will affect my site?

Answer: No. Rules involved in the jump, is 301 permanent jump to the public, 301 jump is a search engine recognition, but also the majority of the use and recognition of the technical means.

3. Q: Why are there malicious parsing?

A: The use of such inferior means, its purpose is to reap nothing, to foster the despicable behavior of the domain name. Through the scanner, scan the Internet to get this kind of resources, and then operate.

4, how to find their website has been maliciously resolved?

A: Can be found through the analysis of "view site Log", or through the Webmaster tools with IP domain name IP reverse query function can be discovered.

Source: http://blog.sina.com.cn/s/blog_65d553d10102vbov.html

A solution to the malicious resolution of the domain name of independent IP site from shallow into deep

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.