CN109905468A - Website visiting device and method based on block chain - Google Patents
Website visiting device and method based on block chain Download PDFInfo
- Publication number
- CN109905468A CN109905468A CN201910107899.XA CN201910107899A CN109905468A CN 109905468 A CN109905468 A CN 109905468A CN 201910107899 A CN201910107899 A CN 201910107899A CN 109905468 A CN109905468 A CN 109905468A
- Authority
- CN
- China
- Prior art keywords
- access request
- block chain
- node
- request
- website
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present embodiments relate to a kind of Website access methods based on block chain, comprising: receives the first access request that terminal is sent, first access request is used for access target website, and the targeted website operates on block chain meshed network;The processing node of first access request is determined in block chain meshed network according to preset rules;First access request is sent to the processing node, so that the processing node replys the terminal according to the first access request.The stability and safety of website can be proposed.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of website visiting device and methods based on block chain.
Background technique
With the continuous development of science and technology, the scale of data transmission and data storage constantly increases, the operation of computer
Also in the continuous improvement, hacker attack, trojan horse are flooded with network environment to ability, and the safety of website is by very big
Test.
In order to increase the safety and stability of website, it is common practice to pass through the works such as virus detecting and firewall
Tool is intercepted or is deleted to hacker attack or trojan horse part.Once but Website server is locked by hacker, is skipped virus and is detectd
Survey tool, cross firewall just be the time the problem of.So how to further increase website safety and stability at
For those skilled in the art's technical problem in the urgent need to address.
Summary of the invention
Based on the above issues, the embodiment of the invention provides a kind of Website access methods based on block chain.Net can be mentioned
The stability and safety stood.
In a first aspect, providing a kind of Website access method based on block chain.This method comprises:
The first access request that terminal is sent is received, first access request is used for access target website, the target
Website operates on block chain meshed network;
The processing node of first access request is determined in block chain meshed network according to preset rules;
First access request is sent to the processing node, so that the processing node is returned according to the first access request
The multiple terminal.
Optionally, first access request includes following any one:
For requesting the request of specified page;
For sending the request of data to specified resource;
For increasing or deleting the request of the page.
Optionally, the processing node includes one or more, described to send first access to the processing node
Request includes:
First access request is decomposed, one or more subtasks are obtained;
One or more of subtasks are respectively sent to one or more processing nodes.
Optionally, the block chain meshed network includes host node and from node, and the host node is for distributing task, institute
It states from node for handling task.
Optionally, further includes:
The second access request of other nodes transmission is received, second access request is for accessing the targeted website;
When second access request is legal, second access request is responded.
Second aspect provides a kind of website visiting device based on block chain.Include:
Receiving unit, for receiving the first access request of terminal transmission, first access request is used for access target
Website, the targeted website operate on block chain meshed network;
Determination unit, for determining the processing of first access request in block chain meshed network according to preset rules
Node;
Transmission unit, for processing node transmission first access request, so as to the processing node according to
First access request replys the terminal.
Optionally, first access request includes following any one:
For requesting the request of specified page;
For sending the request of data to specified resource;
For increasing or deleting the request of the page.
Optionally, the processing node includes one or more, and the transmission unit is specifically used for:
First access request is decomposed, one or more subtasks are obtained;
One or more of subtasks are respectively sent to one or more processing nodes.
Optionally, the block chain meshed network includes host node and from node, and the host node is for distributing task, institute
It states from node for handling task.
Optionally, further includes:
The receiving unit is also used to, and receives the second access request of other nodes transmission, and second access request is used
In the access targeted website;
Response unit, for responding second access request when second access request is legal.
The third aspect, this specification embodiment provide a kind of computer equipment, including memory, processor and are stored in
On memory and the computer program that can run on a processor, which is characterized in that the processor executes real when described program
The method and step of existing aforementioned first aspect.
Fourth aspect provides a kind of computer readable storage medium, and meter is stored on the computer readable storage medium
Calculation machine program, the computer program realize method described in above-mentioned first aspect when being executed by processor.
5th aspect, provides a kind of computer program product comprising instruction, when described instruction is run on computers
When, so that computer executes method described in above-mentioned first aspect.
Website visiting device and method provided by the embodiments of the present application based on block chain, can pass through block chain and block
Chain meshed network realizes the operation of website.When accessing website, communicated by unfixed node with client, so that net
It stands a possibility that being attacked reduction.Safety, the stability of website are improved, the user experience is improved.
Detailed description of the invention
Fig. 1 applies the exemplary architecture of embodiment provided by the present application;
Fig. 2 is flow chart provided in an embodiment of the present invention;
The position Fig. 3 apparatus structure schematic diagram provided in an embodiment of the present invention;
The position Fig. 4 device structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of website visiting device and methods based on block chain.Fig. 1 is shown using this
A kind of exemplary architecture of the embodiment provided is provided.
As shown in Figure 1, in the exemplary architecture can one or more block chain nodes 101, when block chain node 101 is
When multiple, block chain meshed network is formed.Block chain node 101 can connect one or more clients 102.Client 102
It can realize, can also realize in the form of hardware in a software form.When implemented in hardware, laptop can be used,
Desktop computer and mobile terminal etc..
Client 102 can be used for interacting with block chain node 101, such as client 102 can inquire block chain
In record, can also record the information in block chain.Block chain node 101 can store block chain, and client 102 can
To obtain block chain from block chain node 101, newly-generated block can also be sent to block chain node 101;It is wherein objective
Family end 102 can there are many clients by function, for example, inquiring client terminal, packing client etc., wherein be packaged client
It can be used for being packaged new block etc..Here, block is the element to form block chain.
In order to facilitate understanding of embodiments of the present invention, it is further explained below in conjunction with attached drawing with specific embodiment
Bright, embodiment does not constitute the restriction to the embodiment of the present invention.
Fig. 2 is a kind of Website access method based on block chain provided in an embodiment of the present invention.As shown in Fig. 2, this method
Include:
S210, receives the first access request that terminal is sent, and first access request is used for access target website.Its
In, targeted website operates on block chain meshed network.
Wherein, the first access request includes following any one:
For requesting the request of specified page;
For sending the request of data to specified resource;
For increasing or deleting the request of the page.
In embodiments of the present invention, website may operate on block chain node.For example, the data of website maintenance can be remembered
In block chain, which is equivalent to the database of each block chain nodes sharing of the website for record.Specifically, block chain link
The data, can be recorded in block chain by one data of every generation in spot net, and it is synchronous to carry out the whole network.
In an example, the block chain meshed network where the targeted website includes host node and from node, the main section
Point, should be from node for handling task for the task of distributing.For example, host node is in the access request for receiving client transmission
Afterwards, processing node can be determined at random, and the access request is transferred into the processing node processing.For another example receiving visitor from node
After the access request that family end is sent, the access request can first should be sent to host node from node, be allocated by host node.
In another embodiment, the node that the block chain meshed network where the targeted website includes can each be made
For host node, each also be all can serve as from node, and wherein host node should appoint for distributing task from node for handling
Business, the rule can it is prefabricated in node.For example, after block chain node receives the access request that client is sent, the node
Processing node can be determined according to preset rules.
S220 determines the processing node of first access request according to preset rules in block chain meshed network.
Wherein, preset rules can be to be randomly assigned, can also be according to the actual treatment ability and resource of each node
Idle condition is selected.
S230 sends first access request to the processing node, so that the processing node is according to the first access
The terminal is replied in request.
After determining the processing node of the first access request, need for first access request to be sent to the processing node.
Node is handled after receiving first access request, the legitimacy of first access request can be verified.When first
When access request is legal, first access request is responded.For example, sending specified net to client according to first access request
Page.For another example sending data to client uploads success response.
In another embodiment, processing node may include one or more, aforementioned to send institute to the processing node
It when stating the first access request, can specifically include: the first access request decomposed, obtain one or more subtasks;It will
One or more subtasks are respectively sent to one or more processing nodes.
For example, the first access request is used to request specified page, it, can be by one after determining multiple resources of the page
Or multiple resource is sent to client respectively by multiple processing nodes.For example, the first access request is used to request named web page,
The named web page includes video, audio and text, which can be sent by three nodes to client respectively.
In addition, further includes: receive the second access request of other nodes transmission, the second access request is used for access target net
It stands;When the second access request is legal, the second access request is responded.
Through the embodiment of the present invention, the operation of website can be realized by block chain and block chain meshed network.It is visiting
It when asking website, is communicated by unfixed node with client, so that a possibility that website is attacked reduction.Improve website
Safety, stability, the user experience is improved.
A kind of Website access method based on block chain provided in based on the above embodiment provides one kind in the present embodiment
Website visiting device based on block chain, specifically, Fig. 3 show the optional knot of the website visiting device based on block chain
Structure block diagram, the device are divided into one or more program modules, one or more program module is stored in storage medium
In, and as performed by one or more processors, to complete the present invention.The so-called program module of the present invention is to refer to complete spy
The series of computation machine program instruction section for determining function is more suitable for describing the entering device based on local area network storing than program itself
Implementation procedure in medium, the function of each program module of the present embodiment will specifically be introduced by being described below.The device specifically includes: should
Device includes:
Receiving unit 301, for receiving the first access request of terminal transmission, first access request is for accessing mesh
Website is marked, the targeted website operates on block chain meshed network;
Determination unit 302, for determining first access request in block chain meshed network according to preset rules
Handle node;
Transmission unit 303, for sending first access request to the processing node, so as to the processing node root
The terminal is replied according to the first access request.
Optionally, first access request includes following any one:
For requesting the request of specified page;
For sending the request of data to specified resource;
For increasing or deleting the request of the page.
Optionally, the processing node includes one or more, and the transmission unit is specifically used for:
First access request is decomposed, one or more subtasks are obtained;
One or more of subtasks are respectively sent to one or more processing nodes.
Optionally, the block chain meshed network includes host node and from node, and the host node is for distributing task, institute
It states from node for handling task.
Optionally, further includes:
The receiving unit is also used to, and receives the second access request of other nodes transmission, and second access request is used
In the access targeted website;
Response unit, for responding second access request when second access request is legal.
Through the embodiment of the present invention, the operation of website can be realized by block chain and block chain meshed network.It is visiting
It when asking website, is communicated by unfixed node with client, so that a possibility that website is attacked reduction.Improve website
Safety, stability, the user experience is improved.
Fig. 4 shows a kind of computer equipment structural schematic diagram, the computer equipment provided by this specification embodiment
It may include: processor 410, memory 420, input/output interface 430 and bus 440.Wherein processor 410, memory
420, input/output interface 430 and communication interface 440 pass through the communication connection between the realization of bus 440 inside equipment.
Processor 410 can use general CPU (Central Processing Unit, central processing unit), micro process
Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or
The modes such as multiple integrated circuits are realized, for executing relative program, to realize technical solution provided by this specification embodiment.
Memory 420 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 420 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 420, and execution is called by processor 410.
Input/output interface 430 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
It can also include that communication interface is used for connection communication module (not shown), to realize that this equipment is set with other
Standby communication interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, and can also be passed through
Wireless mode (such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 440 includes an access, in various components (such as processor 410, memory 420 and the input/output of equipment
Interface 430) between transmit information.
It should be noted that although above equipment illustrates only processor 410, memory 420, input/output interface 430
And bus 440, but in the specific implementation process, which can also include realizing to operate normally other necessary groups
Part.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising realizing this specification embodiment in above equipment
Component necessary to scheme, without including all components shown in figure.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.
These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor
The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all any modification, equivalent substitution, improvement and etc. within the scope of the present invention, done should be included in this hair
Within bright protection scope.
Claims (10)
1. a kind of Website access method based on block chain characterized by comprising
The first access request that terminal is sent is received, first access request is used for access target website, the targeted website
It operates on block chain meshed network;
The processing node of first access request is determined in block chain meshed network according to preset rules;
First access request is sent to the processing node, so that the processing node replys institute according to the first access request
State terminal.
2. the method according to claim 1, wherein first access request includes following any one:
For requesting the request of specified page;
For sending the request of data to specified resource;
For increasing or deleting the request of the page.
3. method according to claim 1 or 2, which is characterized in that the processing node include one or more, it is described to
The processing node sends first access request
First access request is decomposed, one or more subtasks are obtained;
One or more of subtasks are respectively sent to one or more processing nodes.
4. the method according to claim 1, wherein the block chain meshed network includes host node and from section
Point, the host node are described to be used to handle task from node for distributing task.
5. according to the method described in claim 4, it is characterized by further comprising:
The second access request of other nodes transmission is received, second access request is for accessing the targeted website;
When second access request is legal, second access request is responded.
6. a kind of website visiting device based on block chain characterized by comprising
Receiving unit, for receiving the first access request of terminal transmission, first access request is used for access target website,
The targeted website operates on block chain meshed network;
Determination unit, for determining the processing section of first access request in block chain meshed network according to preset rules
Point;
Transmission unit, for sending first access request to the processing node, so that the processing node is according to first
Access request replys the terminal.
7. device according to claim 6, which is characterized in that first access request includes following any one:
For requesting the request of specified page;
For sending the request of data to specified resource;
For increasing or deleting the request of the page.
8. device according to claim 6 or 7, which is characterized in that the processing node includes one or more, the hair
Unit is sent to be specifically used for:
First access request is decomposed, one or more subtasks are obtained;
One or more of subtasks are respectively sent to one or more processing nodes.
9. device according to claim 6, which is characterized in that the block chain meshed network includes host node and from section
Point, the host node are described to be used to handle task from node for distributing task.
10. a kind of computer readable storage medium, including computer-readable instruction, when computer is read and executes the computer
When readable instruction, so that computer executes the method as described in claim 1-5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107899.XA CN109905468A (en) | 2019-02-02 | 2019-02-02 | Website visiting device and method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910107899.XA CN109905468A (en) | 2019-02-02 | 2019-02-02 | Website visiting device and method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109905468A true CN109905468A (en) | 2019-06-18 |
Family
ID=66944538
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910107899.XA Pending CN109905468A (en) | 2019-02-02 | 2019-02-02 | Website visiting device and method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109905468A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108777698A (en) * | 2018-04-13 | 2018-11-09 | 深圳市元征科技股份有限公司 | Webpage storage method, system and block chain node device |
CN108924123A (en) * | 2018-06-29 | 2018-11-30 | 北京京东尚科信息技术有限公司 | Information processing method, device and system in block chain |
US20180365447A1 (en) * | 2018-08-27 | 2018-12-20 | bootstrap legal Inc. | System and Method for Signing and Authentication of Documents |
CN109218424A (en) * | 2018-09-14 | 2019-01-15 | 四川海纳仁东科技有限公司 | The method for allocating tasks of power is counted based on block chain link |
CN109284466A (en) * | 2018-09-12 | 2019-01-29 | 上海点融信息科技有限责任公司 | For realizing the method, apparatus and storage medium of web page access in block chain |
-
2019
- 2019-02-02 CN CN201910107899.XA patent/CN109905468A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108777698A (en) * | 2018-04-13 | 2018-11-09 | 深圳市元征科技股份有限公司 | Webpage storage method, system and block chain node device |
CN108924123A (en) * | 2018-06-29 | 2018-11-30 | 北京京东尚科信息技术有限公司 | Information processing method, device and system in block chain |
US20180365447A1 (en) * | 2018-08-27 | 2018-12-20 | bootstrap legal Inc. | System and Method for Signing and Authentication of Documents |
CN109284466A (en) * | 2018-09-12 | 2019-01-29 | 上海点融信息科技有限责任公司 | For realizing the method, apparatus and storage medium of web page access in block chain |
CN109218424A (en) * | 2018-09-14 | 2019-01-15 | 四川海纳仁东科技有限公司 | The method for allocating tasks of power is counted based on block chain link |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3817333B1 (en) | Method and system for processing requests in a consortium blockchain | |
US9207913B2 (en) | API publication on a gateway using a developer portal | |
EP3101965A1 (en) | Method and apparatus for adjacent node registration, and method and system for crossing node registration | |
CN115022106B (en) | Group information processing method, device, equipment and medium | |
CN111694639A (en) | Method and device for updating address of process container and electronic equipment | |
WO2018079162A1 (en) | Information processing system | |
CN109951487A (en) | A kind of portal authentication method and device | |
JP7090131B2 (en) | Methods and equipment for generating information | |
CN107395663B (en) | Data acquisition method and device | |
CN112152988B (en) | Method, system, computer device and medium for asynchronous NBMP request processing | |
JP6733490B2 (en) | Development support system, development support device, response control program, response control method, and response control device | |
US10616081B2 (en) | Application aware cluster monitoring | |
CN110377645A (en) | Be related to block chain thumbs up data sharing method and its system | |
CN109905468A (en) | Website visiting device and method based on block chain | |
CN113778850A (en) | Data processing method and device, electronic equipment and computer readable medium | |
CN110427379A (en) | The cochain method and device thereof of user's search associated data | |
CN114079624B (en) | Architecture data flow monitoring method and system based on multi-user access | |
CN110417806A (en) | Share the cochain method and device thereof of economic associated data in internet | |
Nawaz et al. | Rule-based multi-criteria framework for SaaS application architecture selection | |
CN110399427A (en) | By means of the ad click data sharing method and its system of block chain | |
US11403426B1 (en) | Single path prioritization for a communication system | |
CN110262756B (en) | Method and device for caching data | |
CN114185682B (en) | Log output method and device, electronic equipment and storage medium | |
US20240345934A1 (en) | Systems, apparatuses, methods, and computer program products for generating one or more monitoring operations | |
CN111314457B (en) | Method and device for setting virtual private cloud |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190618 |