Home  >  Article  >  Backend Development  >  How to monitor large-scale website domain name jumps?

How to monitor large-scale website domain name jumps?

WBOY
WBOYOriginal
2016-12-01 00:26:001481browse

I want to monitor many websites, record their domain name jumps, and run them 24 hours a day. For example, when your IP visits google.com, it may become google.cn
or when visiting thefacebook.com, the website will later be changed to facebook.com, it will automatically be redirected to the new URL
I only care about the main domain name of the website, such as xxxx.google.com/xxxxxxx. I only care about whether google.com has changed. The change of xxxx does not matter

Originally I wanted to use qt to check the 301 and 302 jump information that was exchanged. I found that even if the main domain name remained unchanged, there were many 301/302 jumps, such as jumping to https, jumping to www., etc. I found that this solution was not effective. Reliable

Is there any reliable, stable and long-term running plan?

Thank you everyone

Reply content:

I want to monitor many websites, record their domain name jumps, and run them 24 hours a day. For example, when your IP visits google.com, it may become google.cn

or when visiting thefacebook.com, the website will later be changed to facebook.com, it will automatically be redirected to the new URL
I only care about the main domain name of the website, such as xxxx.google.com/xxxxxxx. I only care about whether google.com has changed. The change of xxxx does not matter

Originally I wanted to use qt to check the 301 and 302 jump information that was exchanged. I found that even if the main domain name remained unchanged, there were many 301/302 jumps, such as jumping to https, jumping to www., etc. I found that this solution was not effective. Reliable

Is there any reliable, stable and long-term running plan?

Thank you everyone


301 and 302 are both jump responses. Even the jump from non-www to www can also be 301.

So you can only check whether the domain name has changed for such a response.

Specially, www is just a subdomain name of a domain name and can be treated like www2.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn