Home Backend Development PHP Tutorial How to monitor large-scale website domain name jumps?

How to monitor large-scale website domain name jumps?

Dec 01, 2016 am 12:26 AM
c php

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 of this Website
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

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

CakePHP Date and Time

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

CakePHP File upload

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

Discuss CakePHP

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

How To Set Up Visual Studio Code (VS Code) for PHP Development

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP Quick Guide

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

CakePHP Creating Validators

How do you parse and process HTML/XML in PHP? How do you parse and process HTML/XML in PHP? Feb 07, 2025 am 11:57 AM

How do you parse and process HTML/XML in PHP?

See all articles