A method of storing a web page by using a blockchain network, the method comprising:
- receiving, from a first user at a first time, a URL of a web page that the first user wants to store;
- downloading a first HTML file of the web page corresponding to the URL received from the first user, and generating a first image file by rendering the web page through a headless browser;
- temporarily storing the first HTML file and the first image file together with a first timestamp;
- hashing each of the first HTML file and the first image file, and generating a total hash value;
- storing the first HTML file and the first image file in an external file storage by using the total hash value;
- and
- storing, in the blockchain network, first transaction data including a hash value of the first HTML file, a hash value of the first image file, a file storage path, the first timestamp, the URL, and the total hash value;
- receiving the total hash value from a second user at a second time after the first time;
- after receiving the total hash value from the second user, querying first transaction data corresponding to the total hash value from the blockchain network and receiving the first transaction data from the blockchain network;
- in the case where the first transaction data is received from the blockchain network, downloading a second HTML file of a web page corresponding to a URL of the received first transaction data, and generating a second image file by rendering the web page through a headless browser;
- temporarily storing the second HTML file and the second image file together with a second timestamp;
- hashing each of the second HTML file and the second image file;
- comparing a hash value of the second HTML file and a hash value of the second image file, respectively, with the hash value of the first HTML file and the hash value of the first image file of the received first transaction data;
- and
- displaying a result of the comparison of the hash values to the second user, wherein
- the total hash value is generated by using a tree together with the hash value of the first HTML file, the hash value of the first image file, the file storage path, the first timestamp, the URL, and a verification status value;
- the first transaction data stored in the blockchain network further includes the verification status value;
- and
- before receiving the first transaction data from the blockchain network, the verification status value within the first transaction data is first received from the blockchain network, wherein
- in the case where the verification status value is TRUE, an operation of receiving the first transaction data from the blockchain network is performed, and
- in the case where the verification status value is FALSE, the operation of receiving the first transaction data from the blockchain network is not performed.