CN109284466A - For realizing the method, apparatus and storage medium of web page access in block chain - Google Patents

For realizing the method, apparatus and storage medium of web page access in block chain Download PDF

Info

Publication number
CN109284466A
CN109284466A CN201811060625.1A CN201811060625A CN109284466A CN 109284466 A CN109284466 A CN 109284466A CN 201811060625 A CN201811060625 A CN 201811060625A CN 109284466 A CN109284466 A CN 109284466A
Authority
CN
China
Prior art keywords
web page
code
page code
webpage
client device
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.)
Granted
Application number
CN201811060625.1A
Other languages
Chinese (zh)
Other versions
CN109284466B (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 Point Information Technology Co Ltd
Original Assignee
Shanghai Point 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 Point Information Technology Co Ltd filed Critical Shanghai Point 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

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

Embodiment of the disclosure discloses the method, apparatus and storage medium for realizing web page access in block chain.This method comprises: receiving the access request for the webpage being stored in the account book of the block chain from client device;In response to the access request, web page code associated with the webpage is obtained from the account book, the web page code includes type of code mark;Judge that the web page code is still able to the first static Web page code parsed at the client device for dynamic web page code based on the type of code mark;And in the case where the web page code is the first static Web page code, the first static Web page code is returned to the client device.

Description

For realizing the method, apparatus and storage medium of web page access in block chain
Technical field
Embodiment of the disclosure relates generally to block chain technology, and relates more specifically to realize webpage in block chain The method, apparatus and storage medium of access.
Background technique
Block chain (Blockchain) is the intelligent peer-to-peer network with distributed data base identification, propagation and information-recording Network, also referred to as value internet.So-called value internet, refer to allow users to it is convenient, fast by network, at low cost Transmitting value.Block chain technology is verified including the use of block linked data structure is known together with storing data, using distributed node Algorithm guarantees the safety of data transmission and access to generate, using by automation foot with more new data, in the way of cryptography The intelligent contract of this code composition is programmed with operation data etc..
Intelligent contract is a kind of computer protocol for being intended to propagate, verify or execute in a manner of information-based contract, and intelligence is closed It can be about the computer program of execution specific function in block chain node device.User carries out thing by using intelligent contract Business, shared data are established and are trusted, and the storage, reading and the entire mistake of execution of data are ensured by the characteristic of block chain technology Journey is transparent to be can be traced, can not distort.
Since the data in deposit block chain can not be tampered, thus block chain can also be obtained at the anti-tamper aspect of data Guarantee.Moreover, because block chain can be generated by the way that encrypted data chunk to be superimposed sequentially in time it is lasting not revisable Record, and by record storage in each node of block chain network, therefore can enable to decentralization in this way Mode comes one authentic data library of Collective stewardship.In short, block chain is data are anti-tamper, have in terms of transparent and decentralization There is technical advantage.
Summary of the invention
Embodiment of the disclosure provides the method, apparatus and storage medium for realizing web page access in block chain.
In the disclosure in a first aspect, providing a kind of method for realizing web page access in block chain, comprising: connect Receive the access request for the webpage being stored in the account book of the block chain from client device;In response to the access Request obtains web page code associated with the webpage from the account book, and the web page code includes type of code mark; Judge that the web page code is still able at the client device for dynamic web page code based on the type of code mark First static Web page code of parsing;And in the case where the web page code is the first static Web page code, to institute It states client device and returns to the first static Web page code.
In the second aspect of the disclosure, provide a kind of for realizing the device of web page access in block chain, comprising: place Manage device;Memory, the memory are coupled to the processor and are stored with instruction, make when described instruction executes described Processor executes following movement: receiving the visit for the webpage being stored in the account book of the block chain from client device Ask request;In response to the access request, web page code associated with the webpage, the webpage are obtained from the account book Code includes type of code mark;Judge that the web page code still can for dynamic web page code based on the type of code mark Enough the first static Web page codes parsed at the client device;And the web page code be first static network In the case where page code, the first static Web page code is returned to the client device.
In the third aspect of the disclosure, a kind of computer readable storage medium is provided, there is the meter being stored thereon Calculation machine executable instruction, the computer executable instructions execute the equipment according to the disclosure Method described in first aspect.
Net is improved since the access to webpage can be provided by block chain via embodiment of the disclosure The safety and reliability of access to web page.
Detailed description of the invention
Fig. 1 can be used for implementing the block chain network 100 (hereafter simply referred to as block chain 100) of the example embodiment of the disclosure The schematic diagram of framework.
Fig. 2 instantiates the diagram of the substantially working principle of WEB service intelligence contract according to an embodiment of the present disclosure.
Fig. 3 instantiates according to an embodiment of the present disclosure for realizing the stream of the method 300 of web page access in block chain Cheng Tu.
Fig. 4 instantiates the method 400 for the realization web page access in block chain according to an example embodiment of the present disclosure Flow chart.
Fig. 5 instantiates the device for being used to manage electronic data in block chain network according to an example embodiment of the present disclosure 500 schematic block diagram.
Specific embodiment
Each exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although in attached drawing flow chart and Schematic diagram shows some embodiments of the present disclosure, it should be understood that, the disclosure can be realized by various forms, and And should not be construed as limited to embodiments set forth here, providing these embodiments on the contrary is for more thorough and complete geography Solve the disclosure.It should be understood that the being merely to illustrate property of accompanying drawings and embodiments of the disclosure acts on, it is not intended to limit the disclosure Protection scope.
For ease of description, some terms occurred in the disclosure are illustrated below, it should be understood that the application is made Term, which should be interpreted that, to be had and it is in the context of present specification and in relation to the consistent meaning of meaning in field. The terms "include", "comprise" and similar terms in present disclosure should be understood as being open term, i.e., " including but It is not limited to ", expression can also include other content.
In embodiment of the disclosure, term "based" is " being based at least partially on ".
In embodiment of the disclosure, term " one embodiment " expression " at least one embodiment ".
In embodiment of the disclosure, term " another embodiment " expression " at least one other embodiment ", etc..
In embodiment of the disclosure, type of code mark is used to indicate the type of corresponding web page code, i.e., for referring to Show that the web page code belongs to static Web page code or dynamic web page code.
In embodiment of the disclosure, static Web page code is web page code associated with static Web page, wherein this Static Web page does not include any script for running in WEB service intelligence contract, every line code on webpage be all by After webpage design personnel write in advance, it is placed into the account book of block chain, on the browser for being sent to client device Any variation no longer occurs afterwards.
In embodiment of the disclosure, dynamic web page code is web page code associated with dynamic web page comprising can For generating the program bag of corresponding static Web page code.In the example of the disclosure, dynamic web page is using dynamic website skill The webpage that art generates, needing to execute in WEB service intelligence contract could be in client after corresponding static Web page to generate It parses and executes at the browser of end equipment.
In embodiment of the disclosure, web page code to be assembled be obtained from account book based on dynamic web page code, It can be used for being assembled into the web page code of corresponding static Web page code.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as part of specification.For between each unit in attached drawing Line, it is only for convenient for explanation, indicate that the unit at least line both ends is in communication with each other, it is not intended that limitation does not connect It can not be communicated between the unit of line.
It should be appreciated that providing these exemplary embodiments merely to making those skilled in the art can better understand that simultaneously It realizes the embodiment being disclosed, and does not in any way limit the scope of the invention.
Based entirely on block chain come in the operation system realized, it will usually by key user's Transaction Information (for example, for For the insurance sales system realized using block chain, may include the detailed description about the insurance bought for user, premium, Clause etc.) it is stored in block chain, and also frequently by some auxiliary customer transaction information (for example, similarly for area is used May include such as the contact method of staff for the insurance sales system that block chain is realized) it is stored on block chain. Client device may need to access these information, for example to buy insurance etc., check the insurance bought etc., therefore often need Relevant Transaction Information is presented to client device.
Currently, usually realize special web server outside block chain network, with provided a user via webpage to The access of the business datum generated in this system.However, often there are various security breaches in this web server.For example, Hacker attack, worm-type virus and wooden horse are the relatively common security breaches in internet, and password attack, Denial of Service attack with And IP spoofing is the relatively common type of hacker attack again.Therefore, with the continuous development of network technology, web server faces More and more security threats, to directly influence the safety of web server, and then influence through the web server Safety and reliability come the data provided.
Therefore, it is necessary to provide a kind of technology that can realize web page access with higher safety and reliability.
Embodiment of the disclosure provides a kind of for the method, apparatus of realization web page access in block chain and storage Jie Matter, wherein code relevant to webpage and for being presented on the webpage (more precisely, for being presented on webpage ) data (for example, business datum) are all previously stored in the account book of block chain (for example, can be by advance by Homepage Publishing Mode in the account book of block chain realizes this storage), and the intelligent contract by running on block chain is (for example, web Intelligent Service contract) access to each webpage is provided, to improve the safety and reliability of web page access.
Fig. 1 instantiates (the hereafter simply referred to as block chain of block chain network 100 for the example embodiment that can be used for implementing the disclosure 100) schematic diagram of framework.Block chain 100 include by multiple block chain node devices of network connection (herein also by Referred to as block chain node), such as block chain node 102,104,106,108,110,112.Although block link network shown in Fig. 1 Network 100 includes three block chain nodes, but it should be appreciated that in practical applications, block chain network 100 may include more or fewer Block chain node.In embodiment of the disclosure, each node in these block chain nodes can be to calculate equipment, and calculating is set Standby can be server or user equipment (for example, mobile device, such as smart phone, tablet device, portable computer Deng or fixed equipment, such as desktop computer).Between these block chain node devices can by network come synchrodata, because And it can be avoided security risk brought by centralization node and security risk.Network can be any wiredly and/or wirelessly net Network.Optionally, network can include but is not limited to, internet, wide area network, Metropolitan Area Network (MAN), local area network, Virtual Private Network, wireless Communication network etc..In embodiment of the disclosure, client device 114 is (for example, mobile device, such as smart phone, plate Equipment, portable computer etc. or fixed equipment, such as desktop computer) it can be via network (for example, cable network or wireless Network) it is connected to the block chain node of block chain network 100, for example to send to the node of block chain 100 to being stored in block The access request that webpage in the account book of chain accesses, or required code or data are received from the node in block chain 100 For being presented in its browser.
Fig. 2 instantiates the diagram of the substantially working principle of WEB service intelligence contract according to an embodiment of the present disclosure.Such as figure Shown in 2, (the block chain node can be any one of above-mentioned block chain network 100 block to block chain node 200 Chain node) it include intelligent contract engine 201, WEB service intelligence and about 202 and communication interface 203.Communication interface 203 can be with Client device is communicated, to receive data from client device or send data to client device.Communication interface 203 is also It can be communicated with intelligent contract engine 201, to receive data from intelligent contract engine or send data to intelligent contract engine. For example, in embodiment of the disclosure, communication interface 203 can be received from client device to being stored in the account book of block chain The access request that webpage accesses, and the access request is transmitted to intelligent contract engine 201.Intelligent contract engine 201 exists After receiving the access request forwarded by communication interface 203, WEB service intelligence contract can be called by WEB service intelligence Contract handles the access request.WEB service intelligence and about 202 can be configured to obtain from account book in response to access request Web page code associated with requested webpage, the web page code can be dynamic web page code or static Web page code.WEB Intelligent Service and about 202 may be additionally configured to, in the case where acquired web page code is static Web page code, by the static state Web page code is sent to intelligent contract engine 201, so that intelligent contract engine 201 is quiet by what is received via communication interface 203 State web page code returns to client device.WEB service intelligence and about 202 may be additionally configured to, in acquired web page code In the case where being dynamic web page code, the execution to the dynamic web page code is triggered, to generate corresponding static Web page code, and Static Web page code generated is sent to intelligent contract engine 201, so that intelligent contract engine 201 is via communication interface Static Web page code generated is returned to client device by 203.In embodiment of the disclosure, communication interface 203 may be used also The posting request by one or more Homepage Publishings on block chain from client device is received, and the posting request is turned Issue intelligent contract engine 201.Intelligent contract engine 201 is adjustable after receiving the posting request forwarded by communication interface 203 The posting request is handled with WEB service intelligence contract.Therefore, at this moment, WEB service intelligence contract may be additionally configured in response to The posting request, by one or more web storages in the account book of the block chain.
In the disclosure, the intelligent contract of malice or mistake generates destruction to block chain node in order to prevent, and intelligence is closed About WEB service intelligence contract can be placed in sandbox and run by engine, so that the WEB service intelligence contract does not have permission to access sand Resource and information outside box.
It should be appreciated that in some cases, each block chain node and being run thereon due to the equity of block chain Intelligent contract be of virtually identical data and execute identical function.But for simplicity of illustration, at this In disclosed embodiment, some movements and operation are executed as executing subject using some block chain node, but actually this A little movements and operation can also be executed by other any block chain nodes on the block chain, the protection without exceeding the application Range.
Fig. 3 instantiates according to an embodiment of the present disclosure for realizing the stream of the method 300 of web page access in block chain Cheng Tu.
In step 301, client device will access the net being stored in the account book of block chain to the transmission of block chain node The access request of page.In one example, which may include being used to indicate requested webpage in the account book of block chain In address banner.For example, as an example, in the web access requests of inquiry insurance, it may include such as webpage mark Http:// insurance.dianrong.com/id=xxxxxx is known, according to the banner, so that it may in the account of block chain Associated web page code is found in this.
The communication interface of block chain node can receive the access request, and the access request is transmitted to the block chain node Intelligent contract engine.Intelligent contract engine will call WEB service after receiving the access request by communication interface forwarding automatically Intelligent contract, therefore unless explicitly stated otherwise, the step of otherwise being executed in following procedure by block chain node, is using the WEB service Intelligent contract is realized.
In step 302, which is for example obtained from account book based on banner associated with the webpage Web page code, the web page code include being used to indicate its type of code mark for belonging to static Web page code or dynamic web page code Will.
In step 303, block chain node judges that the web page code is still able to for dynamic web page code in the client The the first static Web page code parsed at end equipment.In embodiment of the disclosure, static Web page code is and static Web page phase Associated web page code.In the disclosure, this static Web page does not include any foot to run in WEB service intelligence contract This, every line code on webpage is all after being write in advance by webpage design personnel, to be placed into the account book of block chain, No longer occur after being sent on the browser (for example, IE browser, Google's browser, red fox browser etc.) of client device Any variation.Dynamic web page code is web page code associated with dynamic web page comprising generates the journey of static Web page code Sequence packet.In the example of the disclosure, dynamic web page is the webpage generated using dynamic website technology, is needed in WEB service intelligence Can execute in contract could parse execution after corresponding static Web page to generate at the browser of client device.In this public affairs In the embodiment opened, the first webpage static code may include but be not limited to HTML code associated with the webpage, JavaScript code, CSS code.
In step 304, in the case where the web page code is the first static Web page code, directly to client device Return to the first static Web page code.
In step 305, client device is after receiving the first static Web page code, via the browser run thereon The first static Web page code is parsed.
During client device parses the first static Web page code, one or more can be automatically generated Sub- access request.Each sub- access request is all used to request access to one for presenting in the webpage to block chain node Or multiple data.In one example, each sub- access request may comprise the one or more data for being used to indicate and being obtained The identification information of address in the account book of block chain.Therefore, in step 306, client device is by the sub- access request of generation It is sent to block chain node.
In step 307, in response to the sub- access request, the one or more data are obtained from the account book of block chain (such as based on above-mentioned identification information), corresponding one or more data may include text data, table data etc., It may also comprise image data, video data and audio data etc..In step 308, this is returned to the client device Or multiple data, for being presented in webpage.In a step 309, in the case where web page code is dynamic web page code, block Chain node can obtain one or more associated with the webpage by executing the dynamic web page code from the account book Web page code to be assembled.These web page codes to be assembled can be the web page code quoted in the dynamic web page code, example Such as JSP page code.
In the step 310, be assembled into one or more web page code to be assembled can be in client for block chain node The the second static Web page code parsed at end equipment.For example, block chain node can be by HTTP intelligence contract for example using corresponding These web page codes to be assembled are assembled into the second static Web page code by JSP code.
In step 311, block chain node returns to the second static Web page code to client device.With it is mentioned above The first webpage static code it is similar, the second webpage static code may include HTML code associated with the webpage, JavaScript code, CSS code etc..
In step 312, client device, can be via the browsing run thereon after receiving the second static Web page code Device parses the second static Web page code.In the process that client device parses the second static Web page code In, one or more sub- access requests can also be automatically generated.Each sub- access request is all used to request access to block chain node One or more data for being presented in the webpage.In one example, each sub- access request, which may comprise, is used for Indicate the identification information of address of the one or more data to be obtained in the account book of block chain.Therefore, in step 313, visitor The sub- access request of generation is sent to block chain node by family end equipment.
In a step 314 in response to the sub- access request, obtained from the account book of block chain one or more data (such as Based on above-mentioned identification information).
In step 315, the one or more data are returned to the client device, for presenting in webpage.
It, being capable of access on block chain to required webpage in order to realize, it is also necessary to thing although not showed that in Fig. 3 First by corresponding Homepage Publishing on block chain, comprising: client device is sent to block chain node will be one or more new Posting request of the Homepage Publishing on block chain.After the communication interface of block chain node receives the posting request, by the publication Request is transmitted to the intelligent contract engine of the block chain node.Intelligent contract engine is receiving the hair forwarded via communication interface After cloth request, WEB service intelligence contract is called to make a response the posting request, by one or more new webpages (including The web page code of the webpage and data for being presented on the webpage) it is stored in the account book of block chain.In the reality of the disclosure It applies in example, the web page code being stored in the account book of block chain includes type of code mark, which is used to indicate The web page code belongs to static Web page code or dynamic web page code.
According to above method it is found that data due to code relevant to webpage and for being presented on the webpage all by It is previously stored in the account book of block chain, and the intelligent contract by being run on block chain (for example, web services intelligence contract) The access to each webpage is provided, to improve the safety and reliability of web page access.
Fig. 4 instantiates the method 400 for the realization web page access in block chain according to an example embodiment of the present disclosure Flow chart.It is to be appreciated that method 400 for example can by any one of block chain block chain node (such as pass through call WEB Intelligent Service contract) it executes.
In step 401, receives the access for the webpage being stored in the account book of block chain from client device and ask It asks.In step 402, in response to the access request, web page code associated with the webpage, the web page code are obtained from account book Including type of code mark.In step 403, based on the type of code mark judge the web page code for dynamic web page code still The the first static Web page code that can be parsed at client device.It was the first static Web page generation in web page code in step 404 In the case where code, the first static Web page code is returned to client device.
Fig. 5 instantiates the device for being used to operate digital certificate in block chain network for implementing embodiment of the disclosure 500 schematic block diagram, wherein device 500 may include processor 510 and memory 520, and memory 520 is coupled to processor 510 and it is stored with instruction, executes processor 610 in method as described above 300 and 400 One or more movement or step.
Specifically, processor 510 is made to execute following movement when the instruction execution stored in memory 520: receiving The access request for the webpage being stored in the account book of the block chain from client device;It is asked in response to the access It asks, web page code associated with the webpage is obtained from the account book, the web page code includes type of code mark;Base Judge that the web page code is still able to solve at the client device for dynamic web page code in the type of code mark First static Web page code of analysis;And in the case where the web page code is the first static Web page code, to described Client device returns to the first static Web page code.Wherein, the first webpage static code includes at least following one: HTML code associated with the webpage, JavaScript code, CSS code.
In one embodiment, also make the processor execute following movement when described instruction executes: receiving from institute State the sub- access request for one or more data for presenting in the webpage of client device, wherein described Sub- access request is automatically generated during parsing the first static Web page code by the client device;In response to institute Sub- access request is stated, one or more of data are obtained from the account book;It is returned to the client device one Or multiple data.
In one embodiment, the processor is also made to execute following movement when described instruction executes: in the net In the case that page code is dynamic web page code, the dynamic web page code is executed;In the mistake for executing the dynamic web page code Cheng Zhong obtains additional web pages code associated with the webpage from the account book;Based on the additional web pages code, generate The the second static Web page code that can be parsed at the client device;And described second is returned to the client device Static Web page code.Wherein, the second webpage static code includes at least following one: HTML associated with the webpage Code, JavaScript code, CSS code.
In one embodiment, also make the processor execute following movement when described instruction executes: reception comes from The sub- access request for the one or more data to be presented in the webpage of the client device, wherein described Sub- access request is automatically generated during parsing the second static Web page code by the client device;In response to institute Sub- access request is stated, one or more of data are obtained from the account book;It is returned to the client device one Or multiple data.
In one embodiment, also make the processor execute following movement when described instruction executes: reception comes from One or more new web pages are issued the posting request on the block chain by the client device;And in response to described One or more new web pages are stored in the account book of the block chain by posting request.
The disclosure can be embodied in methods that it is a kind of in block chain realize web page access method, apparatus and/or Computer program product.Computer program product may include computer readable storage medium, containing for executing this public affairs The computer-readable program instructions for the various aspects opened.
Method described in the disclosure and function can at least partly be held by one or more hardware logic components Row.Such as, but not limited to, the exemplary types for the hardware logic component that can be used include field programmable gate array (FPGA), Specific integrated circuit (ASIC), Application Specific Standard Product (ASSP), system on chip (SOC), Complex Programmable Logic Devices (CPLD) Deng.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, such as electromagnetic wave of radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing disclosure operation can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the disclosure Face.
The flow chart and block diagram in the drawings show method, block chain node and the meters according to multiple embodiments of the disclosure The architecture, function and operation in the cards of calculation machine program product.In this regard, each side in flow chart or schematic diagram Frame can represent a module, program segment or a part of instruction, and the module, program segment or a part of instruction include one Or multiple executable instructions for implementing the specified logical function.In some implementations as replacements, it is marked in box Function can also occur in a different order than that indicated in the drawings.
For example, two continuous boxes can actually be basically executed in parallel, they sometimes can also be by opposite suitable Sequence executes, and this depends on the function involved.It is also noted that each box and block diagram in block diagram and or flow chart And/or the combination of the box in flow chart, can function or movement as defined in executing dedicated hardware based system come It realizes, or can realize using a combination of dedicated hardware and computer instructions.
Although this should be understood as requiring operating in this way with shown in addition, depicting each operation using certain order Certain order out executes in sequential order, or requires the operation of all diagrams that should be performed to obtain desired result. Under certain environment, multitask and parallel processing be may be advantageous.Similarly, although containing several tools in being discussed above Body realizes details, but these are not construed as the limitation to the scope of the present disclosure.In the context individually realized Certain features of description can also be realized in combination in single realize.On the contrary, described in the context individually realized Various features can also be realized individually or in any suitable subcombination in multiple realizations.
Pass through the introduction gone out given in above description and relevant drawings, many modifications of the disclosure described herein It will be recognized by disclosure those skilled in the relevant art with other embodiment.Therefore, it should be understood that, the disclosure Embodiment is not limited to disclosed specific embodiment, and modification and other embodiment are intended to be included in this Within scope of disclosure.In addition, although above description and relevant drawings are in certain example combination forms of component and/or function Example embodiment is described under background, it will be appreciated that, component can be provided by alternate embodiment And/or the different combinations of function are without departing from the scope of the present disclosure.On this point, for example, with explicitly described above Other combining forms of different component and/or function be also expected within the scope of the present disclosure.Although here Using concrete term, but they are only used with general and descriptive meaning and are not intended to and are limited.

Claims (15)

1. a kind of method for realizing web page access in block chain, comprising:
Receive the access request for the webpage being stored in the account book of the block chain from client device;
In response to the access request, web page code associated with the webpage, the webpage generation are obtained from the account book Code includes type of code mark;
Judge that the web page code is still able to set in the client for dynamic web page code based on the type of code mark First static Web page code of standby place's parsing;And
In the case where the web page code is the first static Web page code, described first is returned to the client device Static Web page code.
2. the method according to claim 1, wherein the first webpage static code include at least it is following it One: HTML code associated with the webpage, JavaScript code, CSS code.
3. the method according to claim 1, wherein further include:
Receive the son access for one or more data for presenting in the webpage from the client device Request, wherein the sub- access request by the client device during parse the first static Web page code oneself It is dynamic to generate;
In response to the sub- access request, one or more of data are obtained from the account book;And
One or more of data are returned to the client device.
4. the method according to claim 1, wherein further include:
In the case where the web page code is dynamic web page code, by executing the dynamic web page code come from the account book It is middle to obtain one or more associated with webpage web page code to be assembled;
It is quiet that one or more of web page codes to be assembled are assembled into can parse at the client device second State web page code;And
The second static Web page code is returned to the client device.
5. according to the method described in claim 4, it is characterized in that, the second webpage static code include at least it is following it One: HTML code associated with the webpage, JavaScript code, CSS code.
6. according to the method described in claim 4, it is characterized by further comprising:
Receive the son access for one or more data for presenting in the webpage from the client device Request, wherein the sub- access request by the client device during parse the second static Web page code oneself It is dynamic to generate;
In response to the sub- access request, one or more of data are obtained from the account book;And
One or more of data are returned to the client device.
7. the method according to claim 1, wherein further include:
It receives and one or more new web pages is issued into the posting request on the block chain from the client device;With And
In response to the posting request, one or more new web pages are stored in the account book of the block chain.
8. a kind of for realizing the device of web page access in block chain, comprising:
Processor;
Memory, the memory are coupled to the processor and are stored with instruction, make when described instruction executes described Processor executes following movement:
Receive the access request for the webpage being stored in the account book of the block chain from client device;
In response to the access request, web page code associated with the webpage, the webpage generation are obtained from the account book Code includes type of code mark;
Judge that the web page code is still able to set in the client for dynamic web page code based on the type of code mark First static Web page code of standby place's parsing;And
In the case where the web page code is the first static Web page code, described first is returned to the client device Static Web page code.
9. device according to claim 8, which is characterized in that the first webpage static code include at least it is following it One: HTML code associated with the webpage, JavaScript code, CSS code.
10. device according to claim 8, which is characterized in that hold the processor when described instruction executes The following movement of row:
Receive the son access for one or more data for presenting in the webpage from the client device Request, wherein the sub- access request by the client device during parse the first static Web page code oneself It is dynamic to generate;
In response to the sub- access request, one or more of data are obtained from the account book;And
One or more of data are returned to the client device.
11. device according to claim 8, which is characterized in that hold the processor when described instruction executes The following movement of row:
In the case where the web page code is dynamic web page code, by executing the dynamic web page code come from the account book It is middle to obtain one or more associated with webpage web page code to be assembled;
It is quiet that one or more of web page codes to be assembled are assembled into can parse at the client device second State web page code;And
The second static Web page code is returned to the client device.
12. device according to claim 11, which is characterized in that the second webpage static code include at least it is following it One: HTML code associated with the webpage, JavaScript code, CSS code.
13. device according to claim 11, which is characterized in that hold the processor when described instruction executes The following movement of row:
Receive the son access for one or more data for presenting in the webpage from the client device Request, wherein the sub- access request by the client device during parse the second static Web page code oneself It is dynamic to generate;
In response to the sub- access request, one or more of data are obtained from the account book;And
One or more of data are returned to the client device.
14. device according to claim 8, which is characterized in that hold the processor when described instruction executes The following movement of row:
It receives and one or more new web pages is issued into the posting request on the block chain from the client device;With And
In response to the posting request, one or more new web pages are stored in the account book of the block chain.
15. a kind of computer readable storage medium has the computer executable instructions being stored thereon, the computer can The equipment is made to execute method described in any one of -7 according to claim 1 when executing instruction operation in a device.
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 true CN109284466A (en) 2019-01-29
CN109284466B 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)

Cited By (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
CN114401090A (en) * 2021-12-08 2022-04-26 杭州趣链科技有限公司 Static page access method, system, device, equipment and storage medium
CN115114557A (en) * 2022-08-30 2022-09-27 平安银行股份有限公司 Page data acquisition method and device based on block chain

Citations (6)

* 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
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.
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

Patent Citations (6)

* 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.
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

Cited By (9)

* 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
EP3769490A4 (en) * 2019-10-16 2021-02-17 Alipay (Hangzhou) Information Technology Co., Ltd. Implementing a blockchain-based web service
US10986162B2 (en) 2019-10-16 2021-04-20 Alipay (Hangzhou) Information Technology Co., Ltd. Implementing a blockchain-based web service
AU2019302940B2 (en) * 2019-10-16 2021-10-21 Alipay (Hangzhou) Information Technology Co., Ltd. Implementing a blockchain-based web service
CN114401090A (en) * 2021-12-08 2022-04-26 杭州趣链科技有限公司 Static page access method, system, device, equipment and storage medium
CN114401090B (en) * 2021-12-08 2024-07-12 杭州趣链科技有限公司 Static page access method, system, device, equipment and storage medium
CN115114557A (en) * 2022-08-30 2022-09-27 平安银行股份有限公司 Page data acquisition method and device based on block chain

Also Published As

Publication number Publication date
CN109284466B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN109284466A (en) For realizing the method, apparatus and storage medium of web page access in block chain
US11750681B2 (en) Mapping between user interface fields and protocol information
US10958538B2 (en) Symmetric coherent request/response policy enforcement
US20190116142A1 (en) Messaging balancing and control on blockchain
CN109118223A (en) For managing the method, apparatus and medium of electronic data in block chain
JP2004533179A (en) Apparatus and method for intelligent and secure data manipulation
CN105659520A (en) Secure proxy to protect private data
KR20150082235A (en) Method of processing requests for digital services
US10783128B2 (en) Rule based data processing
US10735370B1 (en) Name based internet of things (IoT) data discovery
Olurin et al. Platform for privacy preferences (P3P): Current status and future directions
CN106161178A (en) A kind of method and apparatus accessing instant messaging network
Padmaja et al. A real-time secure medical device authentication for personal E-Healthcare services on cloud computing
CN113129008A (en) Data processing method and device, computer readable medium and electronic equipment
US20140283080A1 (en) Identifying stored vulnerabilities in a web service
CN107733969B (en) Simulate login method, device, server-side and readable storage medium storing program for executing in website
Yeasmin et al. Performance evaluation of multi-cloud compared to the single-cloud under varying firewall conditions
RU2791824C1 (en) Method and computing device for detecting target malicious web resource
NL2031256B1 (en) Method and computing device for detection of target malicious web resource
US11785038B2 (en) Transfer learning platform for improved mobile enterprise security
ALRUWAILI et al. Software Defined Networking and Network Function Virtualization for improved data privacy using the emergent blockchain in banking systems
US10771414B2 (en) Authentication in messaging platforms for web content
US20190392405A1 (en) Correlating e-receipts to transaction entries
Monsalve Building an Open Source Platform for Forensic Medical Documentation of Human Rights Violations
KR20190098342A (en) Distributed Cloud Web Service Security System and Method

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