Illegal websites should not initiate any form of manual service requests to our staff. It is strictly prohibited to use honmau Media's technical support services and products to engage in any illegal activities. If discovered, no technical support will be provided.×
Current location:home> news > help and support

How to deal with an official website being maliciously mirrored?

Some websites are better, and there will always be people who will maliciously mirror your website. What is a mirror website? The so-called mirror website means that the content is basically the same as your website. Except for the company name and changing it to his name, you will basically open the content of your website. In this way, if it is included by search engines, customers will mistakenly think it is the official website. If they are deceived, this will damage the company's credibility.

After discovering this situation, you can first ban the other party's IP, and then turn on the anti-theft link. If you useBaotaPanel, you can click the anti-theft link in site management, as shown in the following figure:

111111111111111

Allow empty HTTP_REFER requestsThis can be removed if there is no special requirement.

Generally, I tried using js methods to deal with it, but the effect was not obvious. Even if I banned it through referer judgment, I couldn't block it all. Later, I saw that a code processing method had a good effect.

<script type="text/javascript">

if(window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x6f\x73\x74"] != 'www.xxx.com' && window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x6f\x73\x74"] != 'xxx.com'){

alert(warning! It is detected that this website is a malicious mirror site, and we will immediately jump to the official website for you!&# 039;);

window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x72\x65\x66"] = 'https://'+'www.xxx.com/';

}

</script>

<div style="display:none;">

<script>nod9ynet = false;</script>

<img src=" " onerror='setTimeout(function(){if(typeof(nod9ynet)=="undefined"){window["\x6c\x6f\x63\x61\x74\x69\x6f\x6e"]["\x68\x6f\x73\x74"]="www.xxx.com";}},3000);'>

</div>

Copy the above paragraph and place it in the header file of your website, which is usually head.html or head.php, based on the actual design template, and then change xxx to your own domain name. If it is http, change https to http.

When your domain name is not open, a pop-up window will remind users and jump to their own website.

© Website copyright and disclaimer

1.[honmau Media] independently owns the copyright of all materials on relevant pages of this website;

2. No one is allowed to copy it without the express written permission of [honmau Media];

3. The articles that do not indicate "honmau Media" on this website are all from the Internet and are only for everyone to learn and refer;

4. If there is any infringement/violation/irregularity, please contact customer service QQ or email to delete it, please understand;

5.[honmau Media] reserves the right to correct, modify and update this statement at any time.legal notice

Message Board
* Contact customer service for urgent issues
submitted
submission
Working days: 8:30 - 22:00 Online QQ

customer service

Company Introduction
top