Get the App
SLTechnology News&Howtos  ›  Network Security  › 

What is JS hijacking? How to prevent and solve the problem?

Shulou Source: shulou.com Published: 2022-06-01 10:35:23 10月02日 Update

JS hijacking is when a search engine searches for keywords on your site, and if you enter a website, it jumps to another site, or sometimes you see that the domain name title of the site is yours, but you open a snapshot and find that it is not your site.

Iis7 website monitoring

Website opening speed query, DNS pollution, regional telecom hijacking and other problems detection.

For example, when we search for a certain content, we see the word "risk" behind the search results, which means your site has been hacked by someone else.

When you click in, you will find that he will not go directly to the site but will appear a risk prompt, if you click continue to visit, you will find that he will jump to another URL.

If you encounter this situation, don't worry, we enter the website first, if you can't, go to the source file behind the website, check it to find the relative code, and then delete it. The following picture is the JS hijacking code I found in the source file.

Of course, in addition to the JS hijacking code, other codes should also be deleted. If your snapshot is a hijacked snapshot, remember to give feedback.

To prevent JS hijacking, we must first do a good job in the security of our website. To buy a space server, it is best to choose a large platform such as Aliyun and Tencent Cloud. Remember to change all account passwords after modifying the website, and the website should be backed up frequently, so that your website can be overwritten and restored in a timely manner.

Tags: Website code search snapshot source file problem risk worry security following picture no two key keyword content background postscript region domain name backup Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker Shulou Information Huawei NVidia