CN114401090A - Static page access method, system, device, equipment and storage medium - Google Patents

Static page access method, system, device, equipment and storage medium Download PDF

Info

Publication number
CN114401090A
CN114401090A CN202111493475.5A CN202111493475A CN114401090A CN 114401090 A CN114401090 A CN 114401090A CN 202111493475 A CN202111493475 A CN 202111493475A CN 114401090 A CN114401090 A CN 114401090A
Authority
CN
China
Prior art keywords
target
static page
block chain
current timestamp
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111493475.5A
Other languages
Chinese (zh)
Inventor
曾磊
詹士潇
李伟
邵羽
匡立中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202111493475.5A priority Critical patent/CN114401090A/en
Publication of CN114401090A publication Critical patent/CN114401090A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1458Denial of Service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Storage Device Security (AREA)

Abstract

The application relates to a static page access method, a system, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a current timestamp of a target block chain node to be accessed; acquiring the last target hash value of the target block chain node transacted before the preset duration of the current timestamp; generating a verification script based on the current timestamp and the target hash value; sending the verification script to the target blockchain node; and acquiring the static page after determining that the verification script passes the verification of the target block link point. The method and the device are used for solving the technical problem that in the prior art, the access safety cannot be guaranteed.

Description

Static page access method, system, device, equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, a system, an apparatus, a device, and a storage medium for accessing a static page.
Background
The block chain has the characteristic of being not tampered, and has good traceability and verification characteristics on the recording of words or media which are not changed or are not changed in a small amount.
The blockchain service cannot now directly provide content on the chain to the content recipient in a readable way, and therefore some mechanism is needed to reliably provide some conversion mechanism to make the content readable. Currently, one of the mainstream ways to provide content is the way of Web pages.
In the prior art, an application layer is added on a blockchain to provide an access page, but the application layer has tampering property, so that the load of a blockchain network is increased, and an access verification mechanism aiming at a client side is not provided, so that the access security cannot be ensured.
Disclosure of Invention
The application provides a static page access method, a system, a device, equipment and a storage medium, which are used for solving the technical problem that the access safety cannot be ensured in the prior art.
In a first aspect, an embodiment of the present application provides a method for accessing a static page, which is applicable to a client, and includes:
acquiring a current timestamp of a target block chain node to be accessed;
acquiring the last target hash value of the target block chain node transacted before the preset duration of the current timestamp;
generating a verification script based on the current timestamp and the target hash value;
sending the verification script to the target blockchain node;
and acquiring the static page after determining that the verification script passes the verification of the target block link point.
Optionally, the generating a verification script based on the current timestamp and the target hash value includes:
connecting the character string form of the current timestamp with the character string form of the target hash value to generate a target character string;
calculating the verification script based on the target character string; wherein the verification script satisfies the following condition:
in a character string result obtained by calculating the sum of the target character string and the verification script by using an encryption algorithm, the sum of a first number of times that a target character appears in the character string result and a second number of times that the target character appears in the target character string is greater than or equal to a preset number of times; and the length of the verification script is less than or equal to the preset length.
Optionally, the obtaining a current timestamp of a target block chain node to be accessed includes:
sending an access request for accessing the static page to the target block chain node;
and receiving the current timestamp fed back by the target block chain node point in response to the access request.
Optionally, the static page includes a transaction hash and a content hash of the target block chain node; after the static page is obtained, the method further includes:
obtaining the transaction hash and the content hash from the static page;
storing the transaction hash and the content hash under a target path of the client.
Optionally, after obtaining the transaction hash and the content hash from the static page, the method further includes:
and checking the static page based on the content hash.
In a second aspect, an embodiment of the present application provides a static page access method, which is applicable to a target block chain node, and the method includes:
acquiring an access request for accessing the static page, which is sent by a client;
responding to the access request, and sending the current timestamp of the target block chain node to the client; the current timestamp is used for the client to generate a verification script;
and acquiring the verification script, and sending the static page to the client after the verification of the verification script is passed.
In a third aspect, an embodiment of the present application provides a static page access system, including: a client and a target block chain node;
the client is used for sending an access request for accessing the static page to the target block chain node;
the target block chain node is used for acquiring the access request, responding to the access request and sending a current timestamp of the target block chain node to the client;
the client is used for acquiring the current timestamp; acquiring the last target hash value of the target block chain node transacted before the preset duration of the current timestamp; generating a verification script based on the current timestamp and the target hash value; sending the verification script to the target blockchain node;
the target block chain node is used for acquiring the verification script; and after the verification script passes the verification, sending the static page to the client.
In a fourth aspect, an embodiment of the present application provides a static page access apparatus, which is applicable to a client, and the apparatus includes:
the first acquisition module is used for acquiring the current timestamp of a target block chain node to be accessed;
the second acquisition module is used for acquiring the last target hash value of the transaction of the target block chain node before the preset duration of the current timestamp;
a generation module for generating a verification script based on the current timestamp and the target hash value;
a sending module, configured to send the verification script to the target blockchain node;
and the third obtaining module is used for obtaining the static page after the link points of the target block are confirmed to pass the verification of the verification script.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is configured to execute the program stored in the memory to implement the static page access method according to the first aspect or the second aspect.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the static page access method according to the first aspect or the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the method provided by the embodiment of the application, the last target hash value of the transaction before the preset duration of the current timestamp is obtained, the verification script is generated based on the current timestamp and the target hash value, and the static page is allowed to be accessed only after the verification of the verification script is passed. Namely, the generated verification script is dynamically changed based on each access, is not fixed and unchanged, and is not easy to crack. Moreover, the process of generating the verification script is completed in the client, an application layer is not needed, the load of the block chain is reduced, the access verification aiming at the client can be realized under the condition of not increasing the load of the block chain network, and the access safety can be ensured. Moreover, by acquiring the last target hash value of the transaction before the preset duration of the current timestamp and generating the verification script based on the current timestamp and the target hash value, an attacker can be prevented from calculating the verification script in advance, and malicious access or distributed denial of service attack (DDOS attack) can be prevented.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic system architecture diagram of a static page access system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a static page access method applicable to a client according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a static page access method applied to a target block chain node according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a static page access apparatus suitable for a client according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a static page access apparatus suitable for a target block chain node according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the technical problem that access security cannot be guaranteed in the prior art, an embodiment of the application provides a static page access method.
Before describing in detail a static page access method provided by an embodiment of the present application, first, a static page access system provided by the embodiment of the present application is described with reference to fig. 1, as shown in fig. 1, the static page access system includes:
the client 101 is configured to send an access request for accessing the static page to the target block chain node 102;
the target block chain node 102 is configured to obtain the access request, respond to the access request, and send a current timestamp of the target block chain node to the client 101;
the client 101 is configured to obtain the current timestamp; acquiring the last target hash value of the transaction of the target block chain node 102 before the preset duration of the current timestamp; generating a verification script based on the current timestamp and the target hash value; sending the verification script to the target blockchain node 102;
the target block chain node 102 is configured to obtain the verification script; and after the verification script passes the verification, sending the static page to the client 101.
Wherein the client 101 and the target tile node 102 may establish a communication connection through the network.
In the static page access system provided by the embodiment of the application, the last target hash value of the transaction before the preset duration of the current timestamp is obtained, a verification script is generated based on the current timestamp and the target hash value, and the static page is allowed to be accessed only after the verification of the verification script is passed. Namely, the generated verification script is dynamically changed based on each access and is not fixed and unchangeable, and the access verification aiming at the client is realized under the condition of not increasing the load of the block chain network, so that the access safety can be ensured. Moreover, by acquiring the last target hash value of the transaction before the preset duration of the current timestamp and generating the verification script based on the current timestamp and the target hash value, an attacker can be prevented from calculating the verification script in advance, and malicious access or distributed denial of service attack (DDOS attack) can be prevented.
A static page access method provided in the embodiment of the present application is described in detail below with reference to fig. 2. As shown in fig. 2, an embodiment of the present application provides a static page access method, which is applicable to a client, and the static page access method specifically includes:
step 201, obtaining a current timestamp of a target block chain node to be accessed;
when a client accesses a target block chain node, the client initiates an access request to the target block chain node, wherein the access request is used for acquiring a current timestamp of the target block chain node and subsequently generating a verification script for verification; specifically, an access request for accessing the static page is sent to the target block link node; and receiving the current timestamp fed back by the target block chain node point in response to the access request.
Step 202, acquiring the last target hash value of the target block chain node before the preset duration of the current timestamp;
for convenience of understanding, for example, if the current timestamp of the target block chain node to be accessed, which is obtained by the client, is T, on the basis of the current timestamp T, a preset time duration is set, for example: f seconds, the obtained corresponding timestamp is k-T-f, and the last hash value of the transaction before the timestamp k is H, which is the target hash value.
Step 203, generating a verification script based on the current timestamp and the target hash value;
specifically, the character string form of the current timestamp and the character string form of the target hash value are connected to generate a target character string; calculating the verification script based on the target character string;
for ease of understanding, the current timestamp T is illustrated here as a string of STThe string form of the target hash value H is SHA string form S of the current time stamp TTAnd a string form S of the target hash value HHAre concatenated together to generate a target string S, i.e. S ═ ST+SH. The authentication script that is desired to be computed should be one that is not quickly computed in relation to the target string S.
The embodiment of the present application provides a feasible scheme, and specifically, the verification script satisfies the following conditions:
in a character string result obtained by calculating the sum of the target character string and the verification script by using an encryption algorithm, the sum of a first number of times that a target character appears in the character string result and a second number of times that the target character appears in the target character string is greater than or equal to a preset number of times; and the length of the verification script is less than or equal to the preset length.
For example: and calculating a character string R & md5(S + S ') according to the character string result R and the target character string S, and obtaining a character string S' with the length not greater than a preset length L, namely the verification script. Wherein MD5 in the formula represents that MD5 Message Digest Algorithm (MD5 Message-Digest Algorithm) is performed on the basis of the sum of the target string and the verification script, wherein MD5 Message Digest Algorithm is a widely used cryptographic hash function. Wherein the computational difficulty becomes greater as Y increases. The preset length L and the preset times Y can be set according to actual conditions.
It should be noted that other cryptographic hash function algorithms may also be used, such as: SHA-2(Secure Hash Algorithm 2), but other cryptographic Hash function algorithms are of course possible.
Step 204, sending the verification script to the target block chain node;
and after generating a verification script based on the current timestamp and the target hash value, sending the verification script to a target block chain node for verification.
Step 205, after it is determined that the verification script passes through the target block link point, acquiring the static page.
The target block chain node communicates with the client in advance in a manner of calculating the verification script, for example: the calculation provided in step 203. And after the target block chain node receives the verification script, verifying according to the calculation mode, and if the conditions of the verification script are met, passing the verification. In practical application, the verification script can be verified quickly, and consumption of the target blockchain node is not large.
And if the target block link point is determined to pass the verification of the verification script, allowing the client to access a static page. Otherwise, access to the static page is not allowed.
When the target blockchain node communicates with the client in advance in a way of calculating the verification script, the target blockchain node can be distributed in a CDN (content delivery network) way instead of directly forwarding the way of calculating the verification script to the blockchain network, so that the load of the blockchain network can be effectively reduced.
In the embodiment of the application, the last target hash value of the transaction before the preset duration of the current timestamp is obtained, a verification script is generated based on the current timestamp and the target hash value, and the static page is allowed to be accessed only after the verification of the verification script is passed. Namely, the generated verification script is dynamically changed based on each access, is not fixed and unchanged, and is not easy to crack. Moreover, the process of generating the verification script is completed in the client, an application layer is not needed, the load of the block chain is reduced, the access verification aiming at the client can be realized under the condition of not increasing the load of the block chain network, and the access safety can be ensured.
Moreover, by acquiring the last target hash value of the transaction before the preset duration of the current timestamp and generating the verification script based on the current timestamp and the target hash value, an attacker can be prevented from calculating the verification script in advance, and malicious access or distributed denial of service attack (DDOS attack) can be prevented.
In one embodiment, the access records of the client accessing the static page may be recorded in transaction form on the block link points, either in full volume or in sample, for example: if the verification is passed, the access records of the static pages are linked up, so that the random degree on the block chain can be increased, the probability of too little change is reduced, more possibility is provided for obtaining the last target hash value of the target block chain node before the preset time length of the current timestamp, and the probability of starting an attack by calculating a relevant conclusion in advance by an attacker can be further reduced.
In a specific embodiment, the static page comprises a transaction hash and a content hash of the target blockchain node; after the static page is obtained, the method further includes:
obtaining the transaction hash and the content hash from the static page; storing the transaction hash and the content hash under a target path of the client.
When the static page is accessed, the stored content of the static page is obtained from the blockchain network through a path in an access request url (Uniform Resource Locator) of HTTP (hypertext transfer protocol), and the transaction hash and the content hash of the blockchain in which the content is located are attached to the page tail of the static page, so that the visitor checks.
The content storage is mainly completed by contracts and transactions, and the mapping relation between paths and contents is mainly recorded in the contracts and is specifically reflected as the relation between the contents and transaction hashes. Since the actual content is stored in the transaction itself. When storing content, it is necessary to record information within the contract, such as: path, content transaction hash, content, version number, etc., and then record information within the transaction hash, such as: content, content hash, version number, etc., wherein the version number is mainly used for recording the number of content updates of the same path, and differences can be recorded for comparison if necessary. The contract updates must be managed by a reliable content publisher. When the content is changed in the same path, the record needs to be updated except for the path.
When an access request actually occurs, whether the script is correct or not needs to be verified in advance, and the POW verification mode can be used. And then take the content hash from the contract according to the url. If acceleration is needed, a cache for accessing the url-content hash can be set in the target blockchain node, because the reading of the last content still needs to read the content of the content hash, and the user can check according to the content and the last displayed hash in the page without worrying about the distortion or forgery of the content due to the cache.
In a specific embodiment, after obtaining the transaction hash and the content hash from the static page, the method further includes: and checking the static page based on the content hash.
If the user has a question about the accessed content, the user can directly check the block chain, a credible reverse check contract can be used, namely, a contract for recording the content Hash to the content url in return can be established by a supervision department or an audit department, before the content is issued, the contract is firstly passed by the audit supervision and then issued and updated by the content contract, and the contract is not necessarily deployed on the same chain with the content contract.
In addition, the user can also check by directly accessing the original data of the blockchain, and mainly verify whether the transaction comes from the public key of the publisher and the content itself.
In the embodiment of the application, the static page content can be checked based on the content hash, the checking is convenient, and the stored content can be searched in a tracking manner.
In addition, as shown in fig. 3, an embodiment of the present application further provides a static page access method, which is applicable to a target block chain node, and the static page access method includes:
step 301, obtaining an access request for accessing the static page sent by a client;
when a user wants to access a static page through a client, the client initiates an access request to a target block chain node, and the access request is used for acquiring a current timestamp of the target block chain node and subsequently generating a verification script for verification.
Step 302, responding to the access request, and sending the current timestamp of the target block chain node to the client; the current timestamp is used for the client to generate a verification script;
for the method for generating the verification script by the client, reference may be made to the calculation method provided in step 203 of the above embodiment.
Step 303, obtaining the verification script, and sending the static page to the client after the verification of the verification script is passed.
And if the target block link point is determined to pass the verification of the verification script, allowing the client to access a static page. Otherwise, access to the static page is not allowed.
Based on the same concept, embodiments of the present application provide a static page access apparatus, and specific implementation of the apparatus may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 4, the apparatus is applicable to a client, and the apparatus mainly includes:
a first obtaining module 401, configured to obtain a current timestamp of a target block chain node to be accessed;
a second obtaining module 402, configured to obtain a last target hash value of a transaction of the target blockchain node before a preset duration of the current timestamp;
a generating module 403, configured to generate a verification script based on the current timestamp and the target hash value;
a sending module 404, configured to send the verification script to the target blockchain node;
a third obtaining module 405, configured to obtain the static page after determining that the verification script passes the verification of the target block link point.
In a specific embodiment, the generating module 403 is configured to connect a string format of the current timestamp with a string format of the target hash value to generate a target string; calculating the verification script based on the target character string; wherein the verification script satisfies the following condition: in a character string result obtained by calculating the sum of the target character string and the verification script by using an encryption algorithm, the sum of a first number of times that a target character appears in the character string result and a second number of times that the target character appears in the target character string is greater than or equal to a preset number of times; and the length of the verification script is less than or equal to the preset length.
In an embodiment, the first obtaining module 401 is configured to send an access request for accessing the static page to the target block link point; and receiving the current timestamp fed back by the target block chain node point in response to the access request.
In an embodiment, the static page access apparatus provided in the embodiment of the present application further includes: the storage module is used for acquiring the transaction hash and the content hash from the static page; storing the transaction hash and the content hash under a target path of the client.
In an embodiment, the static page access apparatus provided in the embodiment of the present application further includes: and the checking module is used for checking the static page based on the content hash after the transaction hash and the content hash are obtained from the static page.
In addition, based on the same concept, the present application provides a static page access apparatus, and the specific implementation of the apparatus may refer to the description of the method embodiment, and repeated details are not repeated, as shown in fig. 5, the apparatus is applicable to a target block chain node, and the apparatus mainly includes:
a fourth obtaining module 501, configured to obtain an access request for accessing the static page, where the access request is sent by a client;
a response module 502, configured to send, to the client, a current timestamp of the target blockchain node in response to the access request; the current timestamp is used for the client to generate a verification script;
the verification module 503 is configured to obtain the verification script, and send the static page to the client after the verification of the verification script is passed.
Based on the same concept, an embodiment of the present application further provides an electronic device, as shown in fig. 6, the electronic device mainly includes: a processor 601, a memory 602, and a communication bus 603, wherein the processor 601 and the memory 602 communicate with each other via the communication bus 603. The memory 602 stores a program executable by the processor 601, and the processor 601 executes the program stored in the memory 602 to implement the following steps:
acquiring a current timestamp of a target block chain node to be accessed;
acquiring the last target hash value of the target block chain node transacted before the preset duration of the current timestamp;
generating a verification script based on the current timestamp and the target hash value;
sending the verification script to the target blockchain node;
and acquiring the static page after determining that the verification script passes the verification of the target block link point.
The communication bus 603 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 603 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The Memory 602 may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Alternatively, the memory may be at least one storage device located remotely from the processor 601.
The Processor 601 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like, and may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components.
In yet another embodiment of the present application, there is also provided a computer-readable storage medium having stored therein a computer program which, when run on a computer, causes the computer to execute a static page access method described in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes, etc.), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A static page access method is applicable to a client and comprises the following steps:
acquiring a current timestamp of a target block chain node to be accessed;
acquiring the last target hash value of the target block chain node transacted before the preset duration of the current timestamp;
generating a verification script based on the current timestamp and the target hash value;
sending the verification script to the target blockchain node;
and acquiring the static page after determining that the verification script passes the verification of the target block link point.
2. The static page access method of claim 1, wherein generating a validation script based on the current timestamp and the target hash value comprises:
connecting the character string form of the current timestamp with the character string form of the target hash value to generate a target character string;
calculating the verification script based on the target character string; wherein the verification script satisfies the following condition:
in a character string result obtained by calculating the sum of the target character string and the verification script by using an encryption algorithm, the sum of a first number of times that a target character appears in the character string result and a second number of times that the target character appears in the target character string is greater than or equal to a preset number of times; and the length of the verification script is less than or equal to the preset length.
3. The method according to claim 1, wherein said obtaining a current timestamp of a target blockchain node to be accessed comprises:
sending an access request for accessing the static page to the target block chain node;
and receiving the current timestamp fed back by the target block chain node point in response to the access request.
4. The method for accessing the static page according to any one of the claims 1 to 3, wherein the static page comprises a transaction hash and a content hash of the target block chain node; after the static page is obtained, the method further includes:
obtaining the transaction hash and the content hash from the static page;
storing the transaction hash and the content hash under a target path of the client.
5. The method for accessing a static page according to claim 4, wherein said obtaining the transaction hash and the content hash from the static page further comprises:
and checking the static page based on the content hash.
6. A static page access method is applied to a target block chain node, and comprises the following steps:
acquiring an access request for accessing the static page, which is sent by a client;
responding to the access request, and sending the current timestamp of the target block chain node to the client; the current timestamp is used for the client to generate a verification script;
and acquiring the verification script, and sending the static page to the client after the verification of the verification script is passed.
7. A static page access system, comprising: a client and a target block chain node;
the client is used for sending an access request for accessing the static page to the target block chain node;
the target block chain node is used for acquiring the access request, responding to the access request and sending a current timestamp of the target block chain node to the client;
the client is used for acquiring the current timestamp; acquiring the last target hash value of the target block chain node transacted before the preset duration of the current timestamp; generating a verification script based on the current timestamp and the target hash value; sending the verification script to the target blockchain node;
the target block chain node is used for acquiring the verification script; and after the verification script passes the verification, sending the static page to the client.
8. A static page access apparatus, adapted for a client, the apparatus comprising:
the first acquisition module is used for acquiring the current timestamp of a target block chain node to be accessed;
the second acquisition module is used for acquiring the last target hash value of the transaction of the target block chain node before the preset duration of the current timestamp;
a generation module for generating a verification script based on the current timestamp and the target hash value;
a sending module, configured to send the verification script to the target blockchain node;
and the third obtaining module is used for obtaining the static page after the link points of the target block are confirmed to pass the verification of the verification script.
9. An electronic device, comprising: the system comprises a processor, a memory and a communication bus, wherein the processor and the memory are communicated with each other through the communication bus;
the memory for storing a computer program;
the processor is used for executing the program stored in the memory and realizing the static page access method of any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the static page access method of any of claims 1 to 6.
CN202111493475.5A 2021-12-08 2021-12-08 Static page access method, system, device, equipment and storage medium Pending CN114401090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111493475.5A CN114401090A (en) 2021-12-08 2021-12-08 Static page access method, system, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111493475.5A CN114401090A (en) 2021-12-08 2021-12-08 Static page access method, system, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114401090A true CN114401090A (en) 2022-04-26

Family

ID=81226455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111493475.5A Pending CN114401090A (en) 2021-12-08 2021-12-08 Static page access method, system, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114401090A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257340A (en) * 2018-08-29 2019-01-22 北京中科锐链科技有限公司 A kind of website falsification-proof system and method based on block chain
CN109284466A (en) * 2018-09-12 2019-01-29 上海点融信息科技有限责任公司 For realizing the method, apparatus and storage medium of web page access in block chain
CN110149316A (en) * 2019-04-22 2019-08-20 众安信息技术服务有限公司 A kind of dissemination method and device of block chain
WO2020074456A1 (en) * 2018-10-08 2020-04-16 International Business Machines Corporation Blockchain timestamp agreement
CN111026950A (en) * 2019-11-19 2020-04-17 微民保险代理有限公司 Page access method and device, server and page access system
CN111127206A (en) * 2019-12-25 2020-05-08 中国银联股份有限公司 Block chain data access control method and device based on intelligent contract
CN112417518A (en) * 2020-11-24 2021-02-26 京东数科海益信息科技有限公司 File verification method and device, electronic equipment and computer readable medium
CN113206742A (en) * 2021-04-09 2021-08-03 中国电子科技集团公司第三十研究所 Block chain based timestamp marking method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109257340A (en) * 2018-08-29 2019-01-22 北京中科锐链科技有限公司 A kind of website falsification-proof system and method based on block chain
CN109284466A (en) * 2018-09-12 2019-01-29 上海点融信息科技有限责任公司 For realizing the method, apparatus and storage medium of web page access in block chain
WO2020074456A1 (en) * 2018-10-08 2020-04-16 International Business Machines Corporation Blockchain timestamp agreement
CN110149316A (en) * 2019-04-22 2019-08-20 众安信息技术服务有限公司 A kind of dissemination method and device of block chain
CN111026950A (en) * 2019-11-19 2020-04-17 微民保险代理有限公司 Page access method and device, server and page access system
CN111127206A (en) * 2019-12-25 2020-05-08 中国银联股份有限公司 Block chain data access control method and device based on intelligent contract
CN112417518A (en) * 2020-11-24 2021-02-26 京东数科海益信息科技有限公司 File verification method and device, electronic equipment and computer readable medium
CN113206742A (en) * 2021-04-09 2021-08-03 中国电子科技集团公司第三十研究所 Block chain based timestamp marking method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张国英;毛燕琴;: "一种基于区块链的去中心化数据溯源方法", 南京邮电大学学报(自然科学版), no. 02, 15 April 2019 (2019-04-15), pages 95 - 102 *
魏艳;毛燕琴;沈苏彬;: "一种基于区块链的数据完整性验证解决方案", 计算机技术与发展, no. 01, 25 September 2019 (2019-09-25), pages 82 - 87 *

Similar Documents

Publication Publication Date Title
US20240031155A1 (en) Decentralized data authentication
KR101954268B1 (en) Method for managing electronic document based on blockchain, and electronic document management server using the same
CN112333198B (en) Secure cross-domain login method, system and server
US7690035B2 (en) System and method for preventing fraud of certification information, and recording medium storing program for preventing fraud of certification information
US8850185B1 (en) Post attack man-in-the-middle detection
US8286225B2 (en) Method and apparatus for detecting cyber threats
EP2020798A2 (en) Method for detecting DNS redirects or fraudulent local certificates for SSL sites in pharming/phishing schemes by remote validation and using a credential manager and recorded certificate attributes
US11080691B2 (en) Fork-tolerant consensus protocol
JP2020517200A (en) Block chain-based document management method using UTXO-based protocol and document management server using this method
US8966621B1 (en) Out-of-band authentication of e-mail messages
JP6533236B2 (en) Digital certificate processing and verification
CN111444550A (en) Block chain-based service data verification method and device and readable storage medium
JP6880055B2 (en) Message anti-counterfeiting implementation method and device
US20150082440A1 (en) Detection of man in the browser style malware using namespace inspection
US10505736B1 (en) Remote cyber security validation system
KR101890584B1 (en) Method for providing certificate service based on m of n multiple signatures and server using the same
US11997210B2 (en) Protection of online applications and webpages using a blockchain
WO2019037415A1 (en) Page access method and apparatus, and computer device and storage medium
EP1430680B1 (en) Server with file verification
KR20200000576A (en) A Method For Detecting Counterfeit application in Mobile Device Based On Blockchain
KR100937020B1 (en) Integration security system and method by tracking web-database attack detection log data
JP2016170464A (en) Web system, web client device, and alteration inspection device
CN114401090A (en) Static page access method, system, device, equipment and storage medium
CN118202350A (en) Detecting and preventing different use of cross-site request forgery mitigation features
KR20180041052A (en) Method for providing certificate service based on m of n multiple signatures and server using the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination