What happens when the domain name redirects to someone else's website?
I believe that many people have this experience. It is obviously a domain name that is opened and entered, but after entering the website, it is found that it has entered another domain name. So why does the domain name jump to other people's websites? What's the matter with the domain name jumping to other people's websites?
Don't blame the search engine: find the problem of your own website, because this usually happens when the website is hung up. At this time, it can be solved by cleaning up the Trojan file.
The main purpose of hackers hanging a website is to increase traffic to other websites. The principle is very simple. Through the program or JS, determine the way to visit the website. If it is a search engine, it will jump to other specified URLs; if it is not a search engine, it will not jump (the website is opened normally).
The solution to website security maintenance is said to be very simple, just clean up the Trojan files, but it is more difficult to operate in practice. Here are some ways.
- A quick way to find Trojan files
Log in to the FTP of the website and check the modification date of the file. If there are recently modified files, the Trojan horse is usually in these files. If you check these files carefully, you can quickly find the Trojan horse file.
- The common way to find Trojan files
If Baidu search website URL opens the homepage of the website but jumps to other websites, but enter the URL on the browser but the homepage of the website can be opened normally. Then it means that the homepage of the website is hung with a Trojan horse.
Enter the URL in the browser to open the homepage of the website, right-click to view the source file, and see if there is any suspicious JS code in the source code. If there is, delete it and see if it is normal to access the website from Baidu. If it is normal, it means that the code is a Trojan horse file; if there is no suspicious JS code or if the suspicious JS code is deleted and the website still jumps from Baidu, then check the home page. All the JS files called, especially the common JS files of the website, detect whether there is suspicious JS code in it, delete it if there is, and detect whether there is still a jump when opening the website from Baidu.
If no Trojan file is found in all JS files, it means that the Trojan file is in the program script. Detect the homepage program file (such as index.php) and the files associated with the file to see if there is any suspicious code, delete it if there is, and detect whether there is still a jump when opening the website from Baidu.
The above is the introduction to the knowledge about the domain name jumping to someone else's website? How to solve it.