Last update at :2024-06-21,Edit by888u
We have encountered the problem of malicious resolution of the independent IP of our host or VPS before. It may be that our website has attracted the attention of our peers and they want to resolve a large number of domain names to our IP and cause problems for our IP or website. A large amount of duplicate content reduces the weight of our website in search engines. First of all, as search engines become more and more intelligent, such an approach may not be useful in the future, but it cannot be ruled out that it may have certain negative effects.
Just this morning, a netizen mentioned this problem to Snail. Since I was busy at work today, I didn’t have time to compile this tutorial. Before going to bed at night, I was still preparing to update this blog post, and it had not been updated for several days. Even if there are few updates, I will ensure that every article has a certain quality. If I need to do something like this, I will use the following 2 methods to solve it.
First, do not create a website in the root directory
I am mainly talking about VPS hosting here. No matter what environment we use to build the website, generally we do not build the website in the independent VPS independent IP root directory. In other words, the main domain name is written randomly when setting up the environment by default, and then The root directory is empty. It is best to place a 404 landing page, so that even if it is resolved to our IP, the page opened will still be a 404 page. You can use the 404 page to transfer the weight to other pages. Maybe you can elevate your rights to a certain extent.
Second, shield the root directory robots.txt
We place the robots.txt file in the root directory of the independent IP to prevent search engines from including it. Even if this IP is resolved, their website domain name will not be included.
User-agent: *Disallow: /
Reject any search engine crawling.
Of course, there are other methods. For example, you can create an index homepage file, and then set a timed jump in the meta part to transfer the traffic to our main site. My preferred method is to use the second and first methods at the same time. If your friends have a better method, you can leave a message to Snail.
Recommended site searches: IP address, free virtual host application for Shandong registration, forum registration, corporate virtual host, online generation of personal website, domain name space, how to register domain name, mainland China station group server, expired registered domain name,
p>
发表评论