Part of this answer references GPT, GPT_Pro to better solve the problem
First, if you find that the pagoda file has been changed, first determine why, It could be a bug in the pagoda itself or a bug in the server that needs to be checked. In addition, it may be an external intrusion. You need to find out what the cause is and take steps to solve the problem.
Secondly, Pagoda official provides anti-calculation modification service, but the price is relatively expensive, if you want a more economical method, you can use yourself to achieve. Specifically, you can wrap the index.html file in php code and then add characteristic strings to the code to prevent external intrusions.
Example:
$key="abcefghijklmn";//定义一个key值
if($_GET['key']!=$key){ //如果传过来的key不是我们设定好的那个key就不输出index.html
exit;
}
?>
<html>
<head>
...
head>
<body>
...
body>
html>
The code above wraps the index.html file in php code and adds a key to it. If someone wants to modify the index.html, they must pass the correct key to open the file. In this way, external intrusion can be effectively avoided.
In summary, if the pagoda file is constantly being modified, there are some measures that can be taken to solve the problem. You can choose the official services of the pagoda, or you can take a do-it-yourself approach to prevent outside intrusion.
If the answer is helpful, please accept it.