Nothing Special   »   [go: up one dir, main page]

CN109284466B - Method, apparatus and storage medium for enabling web page access in blockchain - Google Patents

Method, apparatus and storage medium for enabling web page access in blockchain Download PDF

Info

Publication number
CN109284466B
CN109284466B CN201811060625.1A CN201811060625A CN109284466B CN 109284466 B CN109284466 B CN 109284466B CN 201811060625 A CN201811060625 A CN 201811060625A CN 109284466 B CN109284466 B CN 109284466B
Authority
CN
China
Prior art keywords
web page
code
client device
webpage
blockchain
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.)
Active
Application number
CN201811060625.1A
Other languages
Chinese (zh)
Other versions
CN109284466A (en
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.)
Shanghai Dianrong Information Technology Co ltd
Original Assignee
Shanghai Dianrong Information 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 Shanghai Dianrong Information Technology Co ltd filed Critical Shanghai Dianrong Information Technology Co ltd
Priority to CN201811060625.1A priority Critical patent/CN109284466B/en
Publication of CN109284466A publication Critical patent/CN109284466A/en
Application granted granted Critical
Publication of CN109284466B publication Critical patent/CN109284466B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present disclosure disclose methods, apparatuses, and storage media for enabling web page access in a blockchain. The method comprises the following steps: receiving an access request from a client device for a webpage stored in an ledger of the blockchain; in response to the access request, acquiring a webpage code associated with the webpage from the ledger, wherein the webpage code comprises a code type mark; determining, based on the code type indicator, whether the web page code is dynamic web page code or first static web page code that is capable of being parsed at the client device; and returning the first static webpage code to the client device under the condition that the webpage code is the first static webpage code.

Description

Method, apparatus and storage medium for enabling web page access in blockchain
Technical Field
Embodiments of the present disclosure relate generally to blockchain technology and, more particularly, relate to a method, apparatus, and storage medium for enabling web page access in a blockchain.
Background
Blockchains (Blockchain) are intelligent peer-to-peer networks that use distributed databases to identify, disseminate, and document information, also known as value internet. The value internet means that users can conveniently, quickly and inexpensively transmit values through a network. Blockchain techniques include utilizing blockchain data structures to authenticate and store data, utilizing distributed node consensus algorithms to generate and update data, cryptographically securing data transmission and access, utilizing intelligent contracts composed of automated script code to program and manipulate data, and the like.
An intelligent contract is a computer protocol intended to propagate, verify, or execute contracts in an informational manner, and may be a computer program in a blockchain node device that performs a particular function. Users carry out transactions, share data, establish trust by using intelligent contracts, and ensure that the data is transparently traceable and tamperproof in the whole process of storage, reading and execution by the characteristics of the blockchain technology.
Since the data stored in the blockchain cannot be tampered, the blockchain can be ensured in terms of data tamper resistance. Moreover, this may enable a reliable database to be managed collectively in a decentralized manner, since the blockchain may generate persistent non-modifiable records by overlaying encrypted data blocks in chronological order, and store the records in individual nodes of the blockchain network. In summary, blockchains have technical advantages in terms of data tamper resistance, transparency, and decentralization.
Disclosure of Invention
Embodiments of the present disclosure provide methods, apparatuses, and storage media for enabling web page access in a blockchain.
In a first aspect of the present disclosure, a method for enabling web page access in a blockchain is provided, including: receiving an access request from a client device for a webpage stored in an ledger of the blockchain; in response to the access request, acquiring a webpage code associated with the webpage from the ledger, wherein the webpage code comprises a code type mark; determining, based on the code type indicator, whether the web page code is dynamic web page code or first static web page code that is capable of being parsed at the client device; and returning the first static webpage code to the client device under the condition that the webpage code is the first static webpage code.
In a second aspect of the present disclosure, an apparatus for enabling web page access in a blockchain is provided, including: a processor; a memory coupled to the processor and storing instructions that, when executed, cause the processor to: receiving an access request from a client device for a webpage stored in an ledger of the blockchain; in response to the access request, acquiring a webpage code associated with the webpage from the ledger, wherein the webpage code comprises a code type mark; determining, based on the code type indicator, whether the web page code is dynamic web page code or first static web page code that is capable of being parsed at the client device; and returning the first static webpage code to the client device under the condition that the webpage code is the first static webpage code.
In a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer-executable instructions that, when run in a device, cause the device to perform the method according to the first aspect of the present disclosure.
Through the embodiments of the present disclosure, since access to a web page can be provided through a blockchain, security and reliability of web page access are improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a blockchain network 100 (hereinafter simply referred to as blockchain 100) that may be used to implement example embodiments of the present disclosure.
FIG. 2 illustrates a diagram of the general working principle of a Web services Intelligent contract according to an embodiment of the present disclosure.
FIG. 3 illustrates a flow diagram of a method 300 for enabling web page access in a blockchain in accordance with an embodiment of the present disclosure.
Fig. 4 illustrates a flow diagram of a method 400 for enabling web page access in a blockchain according to an example embodiment of the present disclosure.
Fig. 5 illustrates a schematic block diagram of an apparatus 500 for managing electronic data in a blockchain network according to an example embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the flow charts and diagrams in the drawings show some embodiments of the disclosure, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the disclosure. It should be understood that the drawings and examples of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
For convenience of description, some terms appearing in the present disclosure are explained below, and it is to be understood that the terms used in the present application should be interpreted as having a meaning that is consistent with their meaning in the context of the present specification and the relevant art. The terms "including," "comprising," and the like in this disclosure are to be construed as open-ended terms, i.e., "including, but not limited to," meaning that additional content can be included as well.
In embodiments of the present disclosure, the term "based on" is "based, at least in part, on".
In embodiments of the present disclosure, the term "one embodiment" means "at least one embodiment".
In an embodiment of the disclosure, the term "another embodiment" means "at least one further embodiment", and so on.
In an embodiment of the present disclosure, the code type flag is used to indicate a type of a corresponding web page code, i.e., to indicate whether the web page code belongs to a static web page code or a dynamic web page code.
In an embodiment of the disclosure, the static webpage code is a webpage code associated with a static webpage, wherein the static webpage does not contain any script for running in the WEB service intelligent contract, and each line of code on the webpage is placed in a book of a block chain after being pre-written by a webpage designer, and no change occurs after being sent to a browser of the client device.
In an embodiment of the present disclosure, the dynamic web page code is web page code associated with a dynamic web page that includes a package that can be used to generate corresponding static web page code. In an example of the present disclosure, a dynamic WEB page is a WEB page generated using dynamic website technology that needs to be executed in a WEB services intelligence contract to generate a corresponding static WEB page before it can be parsed for execution at a browser of a client device.
In the embodiment of the disclosure, the webpage codes to be assembled are webpage codes which are acquired from the ledger based on the dynamic webpage codes and can be used for assembling corresponding static webpage codes.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. For the connection between the units in the drawings, for convenience of description only, it means that at least the units at both ends of the connection are in communication with each other, and is not intended to limit the inability of communication between the units that are not connected.
It is understood that these exemplary embodiments are given solely to enable those skilled in the art to better understand and implement the disclosed embodiments, and are not intended to limit the scope of the invention in any way.
In a business system implemented entirely based on blockchains, critical user transaction information (e.g., for an insurance sales system implemented using blockchains, which may include detailed descriptions, premiums, terms, etc. regarding insurance for purchase by the user) will typically be stored in the blockchain, and often some ancillary user transaction information (e.g., also for an insurance sales system implemented using blockchains, which may include contact details of, for example, a worker, etc.) will also be stored on the blockchain. The client device may need to access such information, for example, to purchase insurance, etc., to view the purchased insurance, etc., and thus often needs to present relevant transaction information to the client device.
Currently, specialized web servers are typically implemented outside the blockchain network to provide users with access to business data generated in such systems via web pages. However, such web servers often suffer from various security vulnerabilities. For example, hacking, worms, and trojans are common security holes in the internet, and password attacks, denial of service attacks, and IP spoofing are common types of hacking. Therefore, with the continuous development of network technology, the web server faces more and more security threats, thereby directly affecting the security of the web server and further affecting the security and reliability of data provided by the web server.
Therefore, it is necessary to provide a technique that can realize web page access with high security and reliability.
Embodiments of the present disclosure provide a method, an apparatus, and a storage medium for implementing web page access in a blockchain, in which code related to a web page and data (e.g., business data) for rendering on the web page (more precisely, for rendering on the web page) are stored in advance in a ledger of the blockchain (e.g., such storage may be implemented by issuing the web page in advance in the ledger of the blockchain), and access to each web page is provided by an intelligent contract (e.g., a web service intelligent contract) running on the blockchain, thereby improving security and reliability of web page access.
Fig. 1 illustrates a schematic diagram of an architecture of a blockchain network 100 (hereinafter simply blockchain 100) that may be used to implement example embodiments of the present disclosure. Blockchain 100 includes a plurality of blockchain node devices (also referred to herein as blockchain nodes), such as blockchain nodes 102, 104, 106, 108, 110, 112, connected by a network. Although the blockchain network 100 shown in fig. 1 includes three blockchain nodes, it should be appreciated that in actual applications, the blockchain network 100 may include more or fewer blockchain nodes. In embodiments of the present disclosure, each of these blockchain nodes may be a computing device, which may be a server or a user device (e.g., a mobile device such as a smartphone, tablet, portable computer, etc., or a stationary device such as a desktop computer). The data can be synchronized among the block chain node devices through the network, so that potential safety hazards and safety risks brought by centralized nodes can be avoided. The network may be any wired and/or wireless network. Optionally, the network may include, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network, a wireless communication network, and so forth. In embodiments of the present disclosure, a client device 114 (e.g., a mobile device such as a smartphone, tablet, laptop, etc., or stationary device such as a desktop computer) may connect to blockchain nodes of the blockchain network 100 via a network (e.g., a wired network or a wireless network), for example, to send access requests to the nodes of the blockchain 100 to access web pages stored in the ledger of the blockchain, or to receive needed code or data from the nodes in the blockchain 100 for presentation in their browser.
FIG. 2 illustrates a diagram of the general working principle of a Web services Intelligent contract according to an embodiment of the present disclosure. As shown in fig. 2, a blockchain node 200 (which may be any one of the blockchain nodes in the blockchain network 100 mentioned above) includes an intelligent contract engine 201, WEB service intelligent contracts 202, and a communication interface 203. The communication interface 203 is capable of communicating with a client device to receive data from or transmit data to the client device. The communication interface 203 may also communicate with the intelligent contract engine 201 to receive data from the intelligent contract engine or to send data to the intelligent contract engine. For example, in embodiments of the present disclosure, the communication interface 203 may receive an access request from a client device to access a web page stored in the ledger of the blockchain and forward the access request to the intelligent contract engine 201. Upon receiving the access request forwarded by the communication interface 203, the intelligent contract engine 201 may invoke a WEB services intelligent contract to process the access request through the WEB services intelligent contract. Web service intelligence contracts 202 may be configured to retrieve WEB page code associated with a requested WEB page from the ledger in response to an access request, which may be dynamic WEB page code or static WEB page code. The WEB services intelligent contract 202 may also be configured to, in the event that the retrieved WEB page code is static WEB page code, send the static WEB page code to the intelligent contract engine 201 for the intelligent contract engine 201 to return the received static WEB page code to the client device via the communication interface 203. The WEB services intelligent contract 202 may also be configured to, in the event that the acquired WEB page code is dynamic WEB page code, trigger execution of the dynamic WEB page code to generate corresponding static WEB page code and send the generated static WEB page code to the intelligent contract engine 201 for the intelligent contract engine 201 to return the generated static WEB page code to the client device via the communication interface 203. In an embodiment of the present disclosure, the communication interface 203 may also receive a publication request from a client device to publish one or more web pages on a blockchain and forward the publication request to the smart contract engine 201. Upon receiving the publication request forwarded by the communication interface 203, the intelligent contract engine 201 may invoke a WEB services intelligent contract to process the publication request. Thus, at this point, the WEB services intelligent contract may also be configured to store one or more WEB pages in the ledger of the blockchain in response to the publication request.
In the present disclosure, to prevent malicious or erroneous intelligent contracts from damaging the block link points, the intelligent contract engine may place the WEB service intelligent contracts into a sandbox for operation, so that the WEB service intelligent contracts do not have access to resources and information outside the sandbox.
It should be appreciated that due to the peering of blockchains, in some cases, each blockchain node and the intelligent contracts running thereon actually have the same data and perform the same functions. However, for the purpose of simplifying the description, in the embodiment of the present disclosure, some actions and operations are performed with a certain blockchain node as an execution subject, but in reality, these actions and operations may also be performed by any other blockchain node on the blockchain without exceeding the protection scope of the present application.
FIG. 3 illustrates a flow diagram of a method 300 for enabling web page access in a blockchain in accordance with an embodiment of the present disclosure.
In step 301, the client device sends an access request to the blockchain link point to access a web page stored in the ledger of the blockchain. In this example, the access request may include a web page identification indicating an address of the requested web page in the ledger of the blockchain. For example, the web page access request for searching for insurance may include, for example, a web page identifier http:// origin.dianrong.com/id ═ xxxxxx, and based on the web page identifier, the associated web page code may be found in the ledger of the blockchain.
The communication interface of the blockchain node may receive the access request and forward the access request to the intelligent contract engine of the blockchain node. The intelligent contract engine automatically calls the WEB service intelligent contract after receiving the access request forwarded by the communication interface, so that the steps executed by the block chain nodes in the following process can be realized by using the WEB service intelligent contract unless explicitly indicated.
In step 302, the block link point obtains a web page code associated with the web page from the ledger, for example, based on the web page identification, the web page code including a code type flag indicating whether it belongs to static web page code or dynamic web page code.
In step 303, the chunk link point determines whether the web code is a dynamic web code or a first static web code that can be parsed at the client device. In an embodiment of the present disclosure, the static web page code is web page code associated with the static web page. In the present disclosure, such static WEB pages do not contain any scripts to be run in the WEB services intelligent contract, and each line of code on the WEB page is pre-written by the WEB page designer, placed in the ledger of the blockchain, and no longer changed after being sent to the browser (e.g., IE browser, google browser, firefox browser, etc.) of the client device. Dynamic web page code is web page code associated with a dynamic web page that includes a package that generates static web page code. In an example of the present disclosure, a dynamic WEB page is a WEB page generated using dynamic website technology that needs to be executed in a WEB services intelligence contract to generate a corresponding static WEB page before it can be parsed for execution at a browser of a client device. In embodiments of the present disclosure, the first web page static code may include, but is not limited to, HTML code, JavaScript code, CSS code associated with the web page.
In step 304, in the event that the web page code is a first static web page code, the first static web page code is returned directly to the client device.
In step 305, the client device, upon receiving the first static web page code, parses the first static web page code via a browser running thereon.
During the parsing of the first static web page code by the client device, one or more sub-access requests may be automatically generated. Each sub-access request is for requesting access to one or more data for presentation in the web page from a tile link point. In one example, each sub-access request may include identification information indicating an address of one or more data to be acquired in an ledger of a blockchain. Thus, in step 306, the client device sends the generated sub-access request to the blockchain node.
In step 307, in response to the sub-access request, the one or more data (e.g., based on the above-mentioned identification information) are obtained from the ledger of the blockchain, and the corresponding one or more data may include text data, list data, and the like, and may also include picture data, video data, audio data, and the like. In step 308, the one or more data are returned to the client device for presentation in the web page. In step 309, in the case that the webpage code is a dynamic webpage code, the block link node may obtain one or more webpage codes to be assembled associated with the webpage from the ledger by executing the dynamic webpage code. The web page code to be assembled may be web page code referenced in the dynamic web page code, such as JSP page code.
In step 310, the tile link node assembles the one or more web page codes to be assembled into a second static web page code that can be parsed at the client device. For example, the block link points may assemble these to-be-assembled web page codes into a second static web page code via HTTP smart contracts, e.g., using corresponding JSP codes.
In step 311, the chunk link point returns the second static webpage code to the client device. Similar to the first-mentioned web page static code, the second web page static code may include HTML code, JavaScript code, CSS code, or the like associated with the web page.
In step 312, the client device, upon receiving the second static web page code, may parse the second static web page code via the browser running thereon. One or more sub-access requests may also be automatically generated during the parsing of the second static web page code by the client device. Each sub-access request is for requesting access to one or more data for presentation in the web page from a tile link point. In one example, each sub-access request may include identification information indicating an address of one or more data to be acquired in an ledger of a blockchain. Thus, in step 313, the client device sends the generated sub-access request to the blockchain node.
In response to the sub-access request, one or more data is obtained from the ledger of the blockchain (e.g., based on the identification information mentioned above) in step 314.
At step 315, the one or more data are returned to the client device for presentation in the web page.
Although not shown in fig. 3, in order to access the required web pages on the blockchain, the corresponding web pages need to be published on the blockchain in advance, including: the client device sends a publication request to the blockchain link to publish one or more new web pages on the blockchain. And after receiving the issuing request, the communication interface of the blockchain node forwards the issuing request to the intelligent contract engine of the blockchain node. After receiving a publication request forwarded via the communication interface, the intelligent contract engine invokes a WEB services intelligent contract to respond to the publication request, storing one or more new WEB pages (including WEB page code for the WEB page and data for presentation on the WEB page) in the ledger of the blockchain. In an embodiment of the present disclosure, the web page code stored in the ledger of the blockchain includes a code type flag for indicating whether the web page code belongs to static web page code or dynamic web page code.
According to the method, the code related to the webpage and the data used for presenting on the webpage are stored in the ledger of the blockchain in advance, and the access to each webpage is provided through the intelligent contract (for example, the web service intelligent contract) running on the blockchain, so that the safety and the reliability of the webpage access are improved.
Fig. 4 illustrates a flow diagram of a method 400 for enabling web page access in a blockchain according to an example embodiment of the present disclosure. It should be appreciated that method 400 may be performed, for example, by any one blockchain node in a blockchain (e.g., by invoking a WEB services intelligence contract).
In step 401, an access request from a client device for a web page stored in an ledger of a blockchain is received. At step 402, in response to the access request, a web page code associated with the web page is obtained from the ledger, the web page code including a code type flag. At step 403, it is determined whether the web page code is dynamic web page code or first static web page code that can be parsed at the client device based on the code type flag. In step 404, in the event the web page code is a first static web page code, the first static web page code is returned to the client device.
Fig. 5 illustrates a schematic block diagram of an apparatus 500 for operating digital credentials in a blockchain network for implementing embodiments of the present disclosure, where the apparatus 500 may include a processor 510 and a memory 520, the memory 520 coupled to the processor 510 and having stored instructions that, when executed, cause the processor 610 to perform one or more of the acts or steps of the methods 300 and 400 described above.
In particular, the instructions stored in memory 520, when executed, cause processor 510 to perform the following acts: receiving an access request from a client device for a webpage stored in an ledger of the blockchain; in response to the access request, acquiring a webpage code associated with the webpage from the ledger, wherein the webpage code comprises a code type mark; determining, based on the code type indicator, whether the web page code is dynamic web page code or first static web page code that is capable of being parsed at the client device; and returning the first static webpage code to the client device under the condition that the webpage code is the first static webpage code. Wherein the first webpage static code comprises at least one of: HTML code, JavaScript code, CSS code associated with the web page.
In one embodiment, the instructions when executed further cause the processor to perform the following: receiving a sub-access request from the client device for one or more data for presentation in the web page, wherein the sub-access request is automatically generated by the client device in parsing the first static web page code; in response to the sub-access request, obtaining the one or more data from the ledger; returning the one or more data to the client device.
In one embodiment, the instructions when executed further cause the processor to perform the following: executing the dynamic webpage code under the condition that the webpage code is the dynamic webpage code; in the process of executing the dynamic webpage codes, acquiring additional webpage codes associated with the webpage from the book; generating, based on the additional web page code, a second static web page code that is parsable at the client device; and returning the second static web page code to the client device. Wherein the second webpage static code comprises at least one of: HTML code, JavaScript code, CSS code associated with the web page.
In one embodiment, the instructions when executed further cause the processor to perform the following: receiving a sub-access request from the client device for one or more data to be presented in the web page, wherein the sub-access request is automatically generated by the client device in parsing the second static web page code; in response to the sub-access request, obtaining the one or more data from the ledger; returning the one or more data to the client device.
In one embodiment, the instructions when executed further cause the processor to perform the following: receiving a publication request from the client device to publish one or more new web pages on the blockchain; and in response to the publication request, storing one or more new web pages in an ledger of the blockchain.
The present disclosure may be embodied as a method, apparatus, and/or computer program product for enabling web page access in a blockchain. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for carrying out various aspects of the present disclosure.
The methods and functions described in this disclosure may be performed, at least in part, by one or more hardware logic components. By way of example, and not limitation, illustrative types of hardware logic components that may be used include Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods, blockchain nodes, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or schematic diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures.
For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate implementations can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Many modifications and other embodiments of the disclosure set forth herein will come to mind to one skilled in the art to which this disclosure pertains having the benefit of the teachings presented in the foregoing descriptions and the associated drawings. Therefore, it is to be understood that the embodiments of the disclosure are not to be limited to the specific embodiments disclosed and that modifications and other embodiments are intended to be included within the scope of the disclosure. Moreover, while the above description and the related figures describe example embodiments in the context of certain example combinations of components and/or functions, it should be appreciated that different combinations of components and/or functions may be provided by alternative embodiments without departing from the scope of the present disclosure. In this regard, for example, other combinations of components and/or functions than those explicitly described above are also contemplated as within the scope of the present disclosure. Although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (13)

1. A method for enabling web page access in a blockchain, comprising:
receiving an access request from a client device for a webpage stored in an ledger of the blockchain;
in response to the access request, acquiring a webpage code associated with the webpage from the ledger, wherein the webpage code comprises a code type mark;
determining, based on the code type indicator, whether the web page code is dynamic web page code or first static web page code that is capable of being parsed at the client device; and
returning the first static webpage code to the client device if the webpage code is the first static webpage code, further comprising:
receiving a sub-access request from the client device for one or more data for presentation in the web page, wherein the sub-access request is automatically generated by the client device in parsing the first static web page code;
in response to the sub-access request, obtaining the one or more data from the ledger; and
returning the one or more data to the client device.
2. The method of claim 1, wherein the first static web page code comprises at least one of: HTML code, JavaScript code, CSS code associated with the web page.
3. The method of claim 1, further comprising:
under the condition that the webpage codes are dynamic webpage codes, one or more webpage codes to be assembled, which are associated with the webpage, are obtained from the book by executing the dynamic webpage codes;
assembling the one or more web page codes to be assembled into a second static web page code that can be parsed at the client device; and
returning the second static web page code to the client device.
4. The method of claim 3, wherein the second static web page code comprises at least one of: HTML code, JavaScript code, CSS code associated with the web page.
5. The method of claim 3, further comprising:
receiving a sub-access request from the client device for one or more data for presentation in the web page, wherein the sub-access request is automatically generated by the client device in parsing the second static web page code;
in response to the sub-access request, obtaining the one or more data from the ledger; and
returning the one or more data to the client device.
6. The method of claim 1, further comprising:
receiving a publication request from the client device to publish one or more new web pages on the blockchain; and
in response to the publication request, one or more new web pages are stored in an ledger of the blockchain.
7. An apparatus for enabling web page access in a blockchain, comprising:
a processor;
a memory coupled to the processor and storing instructions that, when executed, cause the processor to:
receiving an access request from a client device for a webpage stored in an ledger of the blockchain;
in response to the access request, acquiring a webpage code associated with the webpage from the ledger, wherein the webpage code comprises a code type mark;
determining, based on the code type indicator, whether the web page code is dynamic web page code or first static web page code that is capable of being parsed at the client device; and
returning the first static web page code to the client device if the web page code is the first static web page code, the instructions when executed further causing the processor to:
receiving a sub-access request from the client device for one or more data for presentation in the web page, wherein the sub-access request is automatically generated by the client device in parsing the first static web page code;
in response to the sub-access request, obtaining the one or more data from the ledger; and
returning the one or more data to the client device.
8. The apparatus of claim 7, wherein the first static web page code comprises at least one of: HTML code, JavaScript code, CSS code associated with the web page.
9. The apparatus of claim 7, wherein the instructions, when executed, further cause the processor to:
under the condition that the webpage codes are dynamic webpage codes, one or more webpage codes to be assembled, which are associated with the webpage, are obtained from the book by executing the dynamic webpage codes;
assembling the one or more web page codes to be assembled into a second static web page code that can be parsed at the client device; and
returning the second static web page code to the client device.
10. The apparatus of claim 9, wherein the second static web page code comprises at least one of: HTML code, JavaScript code, CSS code associated with the web page.
11. The apparatus of claim 9, wherein the instructions, when executed, further cause the processor to:
receiving a sub-access request from the client device for one or more data for presentation in the web page, wherein the sub-access request is automatically generated by the client device in parsing the second static web page code;
in response to the sub-access request, obtaining the one or more data from the ledger; and
returning the one or more data to the client device.
12. The apparatus of claim 7, wherein the instructions, when executed, further cause the processor to:
receiving a publication request from the client device to publish one or more new web pages on the blockchain; and
in response to the publication request, one or more new web pages are stored in an ledger of the blockchain.
13. A computer-readable storage medium having computer-executable instructions stored thereon that, when run in a device, cause the device to perform the method of any one of claims 1-6.
CN201811060625.1A 2018-09-12 2018-09-12 Method, apparatus and storage medium for enabling web page access in blockchain Active CN109284466B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811060625.1A CN109284466B (en) 2018-09-12 2018-09-12 Method, apparatus and storage medium for enabling web page access in blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811060625.1A CN109284466B (en) 2018-09-12 2018-09-12 Method, apparatus and storage medium for enabling web page access in blockchain

Publications (2)

Publication Number Publication Date
CN109284466A CN109284466A (en) 2019-01-29
CN109284466B true CN109284466B (en) 2021-01-26

Family

ID=65181301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811060625.1A Active CN109284466B (en) 2018-09-12 2018-09-12 Method, apparatus and storage medium for enabling web page access in blockchain

Country Status (1)

Country Link
CN (1) CN109284466B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905468A (en) * 2019-02-02 2019-06-18 立旃(上海)科技有限公司 Website visiting device and method based on block chain
CN110598149A (en) * 2019-08-15 2019-12-20 平安普惠企业管理有限公司 Webpage access method, device and storage medium
WO2020011288A2 (en) 2019-10-16 2020-01-16 Alipay (Hangzhou) Information Technology Co., Ltd. Implementing a blockchain-based web service
CN114401090B (en) * 2021-12-08 2024-07-12 杭州趣链科技有限公司 Static page access method, system, device, equipment and storage medium
CN115114557B (en) * 2022-08-30 2023-03-31 平安银行股份有限公司 Page data acquisition method and device based on block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069132A (en) * 2015-08-17 2015-11-18 中国海洋大学 Webpage implementation method based on static shell
CN107666484A (en) * 2017-09-19 2018-02-06 上海交通大学 A kind of CDN sharing methods and system based on block chain
CN107786630A (en) * 2017-09-06 2018-03-09 阿里巴巴集团控股有限公司 A kind of web applications packet processing method, device and equipment
CN107992621A (en) * 2017-12-22 2018-05-04 杭州云象网络技术有限公司 A kind of intelligent cinematic industry service system based on block chain multichain technological incorporation
CN108154048A (en) * 2016-12-02 2018-06-12 北京金股链科技有限公司 Assets information treating method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150379510A1 (en) * 2012-07-10 2015-12-31 Stanley Benjamin Smith Method and system to use a block chain infrastructure and Smart Contracts to monetize data transactions involving changes to data included into a data supply chain.

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069132A (en) * 2015-08-17 2015-11-18 中国海洋大学 Webpage implementation method based on static shell
CN108154048A (en) * 2016-12-02 2018-06-12 北京金股链科技有限公司 Assets information treating method and apparatus
CN107786630A (en) * 2017-09-06 2018-03-09 阿里巴巴集团控股有限公司 A kind of web applications packet processing method, device and equipment
CN107666484A (en) * 2017-09-19 2018-02-06 上海交通大学 A kind of CDN sharing methods and system based on block chain
CN107992621A (en) * 2017-12-22 2018-05-04 杭州云象网络技术有限公司 A kind of intelligent cinematic industry service system based on block chain multichain technological incorporation

Also Published As

Publication number Publication date
CN109284466A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109284466B (en) Method, apparatus and storage medium for enabling web page access in blockchain
US9361085B2 (en) Systems and methods for intercepting, processing, and protecting user data through web application pattern detection
US10958538B2 (en) Symmetric coherent request/response policy enforcement
US11563674B2 (en) Content based routing method and apparatus
US8869271B2 (en) System and method for risk rating and detecting redirection activities
US10360402B2 (en) Intercepting sensitive data using hashed candidates
US20160335353A1 (en) Infrastructure enabling intelligent execution and crawling of a web application
CN109218368B (en) Method, device, electronic equipment and readable medium for realizing Http reverse proxy
US10972507B2 (en) Content policy based notification of application users about malicious browser plugins
US20170118224A1 (en) Restricted content publishing with search engine registry
WO2021040833A1 (en) Connecting web publisher inventory to programmatic exchanges without third-party cookies
CN116158057A (en) System and method for enhancing user privacy
US20190014083A1 (en) Url filtering method and device
US9405933B2 (en) Secure access to running client application features from a browser application
US9948694B2 (en) Addressing application program interface format modifications to ensure client compatibility
US9398041B2 (en) Identifying stored vulnerabilities in a web service
CN112015383A (en) Login method and device
CN115699706A (en) Method and system for propagating data between different domains in a privacy-focused manner
US20170124139A1 (en) Privacy Enforcement of Data Query Results.
WO2023003699A1 (en) Publisher permissioned activation in cookieless authentication environment
CN110351222B (en) Data security processing method, device and system
EP3857857A1 (en) Content server for mapping a plurality of third-party entities and their interdependencies
CN114363324B (en) File sharing method and device, storage medium and electronic equipment
US20230128002A1 (en) Policy enforcement and visibility by open apis
US11086990B2 (en) Security module for mobile devices

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
GR01 Patent grant
GR01 Patent grant