CN109274780A - Across domain name data transmission method, device, computer equipment and storage medium - Google Patents

Across domain name data transmission method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109274780A
CN109274780A CN201810870737.7A CN201810870737A CN109274780A CN 109274780 A CN109274780 A CN 109274780A CN 201810870737 A CN201810870737 A CN 201810870737A CN 109274780 A CN109274780 A CN 109274780A
Authority
CN
China
Prior art keywords
data
data transfer
transfer instructions
subpage frame
parent page
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
CN201810870737.7A
Other languages
Chinese (zh)
Other versions
CN109274780B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810870737.7A priority Critical patent/CN109274780B/en
Publication of CN109274780A publication Critical patent/CN109274780A/en
Application granted granted Critical
Publication of CN109274780B publication Critical patent/CN109274780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application involves data processing techniques, provide across the domain name data transmission method of one kind, device, computer equipment and storage medium.The described method includes: receiving data transfer instructions;The data transfer instructions are parsed, the address object of subpage frame specified by the data transfer instructions is obtained;The corresponding data of address object of the subpage frame are determined in the floating control of parent page;According to the address object of the subpage frame, corresponding cryptographic Hash is generated;The cryptographic Hash is transferred to the specified subpage frame of the data transfer instructions;The corresponding data of the cryptographic Hash are obtained in the subpage frame.It can be avoided using this method and be adapted to for each associated parent page and subpage frame, reduced the waste on time and manpower, and then improve efficiency.

Description

Across domain name data transmission method, device, computer equipment and storage medium
Technical field
This application involves web technologies fields, set more particularly to across the domain name data transmission method of one kind, device, computer Standby and storage medium.
Background technique
With the development of web technologies, there is webpage Nesting Technique, webpage Nesting Technique is widely used in various On the website of type, the data on many subpage frames can be got on a parent page by page Nesting Technique.
If will lead to subpage frame and parent page when the top-level domain of subpage frame and the not identical top-level domain of parent page It directly can not directly transmit data.In traditional web technologies, usually by the cross-domain mode such as crawler in subpage frame and father Data are transmitted between the page.However inventors have found that this traditional method is needed to each associated parent page and subpage Face is adapted to, and process is very cumbersome, is needed to spend a large amount of manpower and time, is caused efficiency very low.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of across domain name data transmission side that can be improved efficiency Method, device, computer equipment and storage medium.
Across the domain name data transmission method of one kind, this method comprises:
Receive data transfer instructions;
The data transfer instructions are parsed, the address object of subpage frame specified by the data transfer instructions is obtained;
The corresponding data of address object of the subpage frame are determined in the floating control of parent page;
According to the address object of the subpage frame, corresponding cryptographic Hash is generated;
The cryptographic Hash is transferred to the specified subpage frame of the data transfer instructions;
The corresponding data of the cryptographic Hash are obtained in the subpage frame.
In one of the embodiments, further include:
Data specified by the data transfer instructions are obtained in subpage frame;
Determine parent page specified by the data transfer instructions;
The parent page is chosen to float accordingly control;
The data that will acquire are transferred to the floating control.
In one of the embodiments, further include:
Function is called to monitor address properties by timing on subpage frame;
When receiving the data transfer instructions, and when listening to the address properties and changing, then
The address properties after function call variation are called by the timing;
The data being stored in the subpage frame are read according to the address properties after variation.
In one of the embodiments, further include:
When the firewall for detecting the parent page has intercepted the data transfer instructions, then
The intercepted data transfer instructions of capture are buried by the page;
Compare the page bury the address link that is carried in the address link and the data transfer instructions being pre-configured whether one It causes;If so,
The data transfer instructions are sent to the parent page.
In one of the embodiments, further include:
Receive the authentication request of parent page feedback;
The page, which is sent, to the parent page buries identity information a little;
In the identification information for receiving the parent page, then
The data transmission channels of the parent page and subpage frame are created, until being not detected in the data transmission channels there are data It is transmitted.
Across the domain name data transmitting device of one kind, the device include:
Command reception module, for receiving data transmitting instruction;
Command analysis module obtains subpage frame specified by the data transfer instructions for parsing the data transfer instructions Address object;
Data determining module, for determining that the address object of the subpage frame counts accordingly in the floating control of parent page According to;
Cryptographic Hash generation module generates corresponding cryptographic Hash for the address object according to the subpage frame;
Cryptographic Hash transfer module, for the cryptographic Hash to be transferred to the specified subpage frame of the data transfer instructions;
Data acquisition module, for obtaining the corresponding data of the cryptographic Hash in the subpage frame.
The device in one of the embodiments, further include:
Subpage frame data acquisition module, for obtaining data specified by the data transfer instructions in subpage frame;
Parent page determining module, for determining parent page specified by the data transfer instructions;
Control chooses module, floats accordingly control for choosing the parent page;
Data transfer module, the data for will acquire are transferred to the floating control.
The device in one of the embodiments, further include:
Trapping module is instructed, for when the firewall for detecting the parent page has intercepted the data transfer instructions, The intercepted data transfer instructions of capture are then buried by the page;
Address links contrast module, and for comparing, the page buries the address a being pre-configured link and data transmitting refers to Whether the address link carried in order is consistent;
Instruction sending module, for the data transfer instructions to be sent to the parent page.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, which holds The step of realizing any one of method as above when the row computer program.
A kind of computer readable storage medium, is stored thereon with computer program, which is executed by processor The step of any one of Shi Shixian method as above.
Above-mentioned across domain name data transmission method, device, computer equipment and storage medium are receiving data transfer instructions Afterwards, data specified by data transfer instructions are determined in the floating control of parent page, according to the address pair of specified data As generating cryptographic Hash.Since the address object of different data is not identical, the cryptographic Hash of generation is not also just identical, that is, different Data have corresponding and different cryptographic Hash.After cryptographic Hash is transferred to the specified subpage frame of data transfer instructions, Obtaining the corresponding data of cryptographic Hash in subpage frame can be straight by cryptographic Hash since cryptographic Hash and address object are corresponding The address object of determining data is connect, so that the top-level domain of the top-level domain of subpage frame and parent page is not it is also possible in son Data are transmitted between the page and parent page, are adapted to, are subtracted so as to avoid for each associated parent page and subpage frame Lack the waste on time and manpower, and then improves efficiency.
Detailed description of the invention
Fig. 1 is application scenario diagram and application interface figure across domain name data transmission method in one embodiment;
Fig. 2 is the flow diagram across domain name data transmission method in one embodiment;
Fig. 3 is the flow diagram across domain name data transmitting step in one embodiment;
Fig. 4 is the flow diagram across domain name data transmission method in another embodiment;
Fig. 5 is the structural block diagram across domain name data transmitting device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Across domain name data transmission method provided by the present application can be applied to application environment as shown in Figure 1 and using boundary In face.Wherein, subpage frame 120 is nested in parent page 110 by floating control 130, and parent page 110 passes through floating control 130 Associated with subpage frame 120, subpage frame 110, parent page 120 and the corresponding page file of floating control 130 may be stored in In server 140.Subpage frame 110, parent page 120 and floating control 130 can be shown in terminal 150.Specifically, service Device 140 receives the data transfer instructions of the transmission of terminal 150, and data transmitting is determined in the floating control 130 of parent page 110 The data of instruction generate corresponding cryptographic Hash according to the address object of specified data, which is transferred to The specified subpage frame 120 of the data transfer instructions, terminal 150 obtain the corresponding data of the cryptographic Hash in subpage frame 120.
Wherein, terminal 150 can be, but not limited to be various personal computers, laptop, smart phone, tablet computer With portable wearable device, server 140 can use the server set of the either multiple server compositions of independent server Group realizes.
In one embodiment, as shown in Fig. 2, providing a kind of across domain name data transmission method, it is applied in this way It is illustrated for server in Fig. 1, comprising the following steps:
S202 receives data transfer instructions.
Wherein, data transfer instructions are specifically to indicate that subpage frame transmits data or parent page to parent page and transmits to subpage frame The instruction of data.
In a specific embodiment, terminal triggers the floating control on parent page, carries according in floating control Subpage frame address link, generate corresponding data transfer instructions, and send data transmitting to the corresponding server of parent page Instruction.
S203 parses the data transfer instructions, obtains the address object of subpage frame specified by the data transfer instructions.
Wherein, the address object of parent page and the address object of subpage frame be may include in data transfer instructions.
S204 determines the corresponding data of address object of the subpage frame in the floating control of parent page.
Wherein, floating control is iframe element, and iframe element specifically can be used for comprising a document.Specifically, Determine that data can be in the floating control of parent page, the document stored in the floating control of server reading parent page, and Corresponding data are determined in the document of storage according to data transfer instructions.
In a specific embodiment, when server receives data transfer instructions, data transfer instructions are identified In address link, and read floating control in document after, by data addition document address link below.
S206 generates corresponding cryptographic Hash according to the address object of the subpage frame.
Wherein, address object is the address link of storing data.Address object specifically can be URL.Cryptographic Hash is specifically The numerical value obtained after Hash calculation is carried out according to address object.
In a specific embodiment, server, will be true after the specified corresponding address object of data has been determined Fixed address object imports in cryptographic Hash calculation formula and carries out Hash calculation, obtains the corresponding cryptographic Hash of address object.
The cryptographic Hash is transferred to the specified subpage frame of the data transfer instructions by S208.
Wherein, cryptographic Hash is transferred to subpage frame, specifically can be and is transmitted in such a way that data Hash transmits.Number According to Hash transmission particular by calculating the unique cryptographic Hash of data, after getting the corresponding cryptographic Hash of data, so that it may To pass through cryptographic Hash downloading data in the node of storing data.
S210 obtains the corresponding data of the cryptographic Hash in the subpage frame.
Wherein, the corresponding data of cryptographic Hash are specifically stored in the data in the corresponding address object of cryptographic Hash.
In a specific embodiment, server generates after cryptographic Hash is transferred to subpage frame according to the cryptographic Hash Data in the corresponding address object of cryptographic Hash are downloaded in subpage frame by data download instruction by data download instruction.
In above-mentioned across domain name data transmission method, after receiving data transfer instructions, in the floating control of parent page really Fixed number generates cryptographic Hash according to the address object of specified data according to the data of transmitting instruction.Due to different data Address object it is not identical, the cryptographic Hash of generation also just not identical that is, different data have it is corresponding and different Cryptographic Hash.After cryptographic Hash is transferred to the specified subpage frame of data transfer instructions, cryptographic Hash is obtained in subpage frame and is counted accordingly According to the address object of data can be directly determined by cryptographic Hash, so that sub since cryptographic Hash and address object are corresponding The top-level domain of the top-level domain of the page and parent page not it is also possible to transmit data between subpage frame and parent page, from And avoid and be adapted to for each associated parent page and subpage frame, reduce the waste on time and manpower, in turn Improve efficiency.
As shown in figure 3, in one of the embodiments, after step S202, further includes: S302 is obtained in subpage frame Data specified by the data transfer instructions;S304 determines parent page specified by the data transfer instructions;S306, choosing should Parent page floats control accordingly;S308, the data that will acquire are transferred to the floating control.
Wherein, parent page floats control accordingly, specifically can be the floating for being nested in subpage frame and being directed toward parent page Control.The data that will acquire are transferred to floating control, and the data that specifically can be server will acquire are added in floating control Document in.
In a specific embodiment, server is after getting data specified by data transfer instructions, in subpage The #data character string of specified data is added behind the src of face iframe element.It is downloaded accordingly in parent page according to cryptographic Hash When the data that src is added below, #data character string is transferred to parent page.Wherein, src is insertion current data to ought be above The position of shelves element definition.Data is data.
In a specific embodiment, when parent page downloads the data in appropriate address object according to cryptographic Hash, son The page is passed data in parent page in a manner of callback (data readjustment).
In the present embodiment, after data specified by the data transfer instructions are obtained in subpage frame, parent page phase is first determined The floating control answered, then by the way that the data for needing to be transferred to parent page are transferred in advance in floating control in subpage frame, it can More to pass data to fast and accurately parent page by floating control, so that it is cross-domain to parent page to realize subpage frame Transmit data.
In one of the embodiments, further include: call function to monitor address properties by timing on subpage frame;When connecing When receiving the data transfer instructions, and listening to the address properties and change, then passes through the timing and call function call variation Address properties afterwards;The data being stored in the subpage frame are read according to the address properties after variation.
Wherein, it is automatic according to the period (specifically can unit of account) according to millisecond as the period that function is called in timing The function being called.Timing calls function specifically to can be setinterval method.Address properties be include address object Page properties.Address properties specifically can be location.href.
In a specific embodiment, timer is arranged by setinterval method in subpage frame, in timer When reaching the predetermined time, setinterval method can constantly call function, until clearInterval is called or window It is closed.And can then be monitored location.href by the function of setinterval method call and whether change, When location.href changes, the data information in location.href can be got, i.e. it is new in location.href URL (Uniform Resource Locator, uniform resource locator).
It in the present embodiment, calls function to monitor address properties by timing, when address properties change, calls variation Address properties afterwards can enable the data real-time perfoming got to obtain the corresponding data of address properties after variation It updates.
In one of the embodiments, further include: refer to when the firewall for detecting the parent page has intercepted data transmitting When enabling, then the intercepted data transfer instructions of capture are buried by the page;Compare the page bury the address link being pre-configured and Whether the address link carried in the data transfer instructions is consistent;If so, the data transfer instructions are sent to the parent page.
Wherein, the firewall of parent page has intercepted the data transfer instructions, and the specifically firewall of parent page can intercept not The data transfer instructions sent with the subpage frame of domain name.The intercepted data transfer instructions of capture are buried by the page, specifically may be used It is buried a little with being server by the page pre-buried in parent page, when monitoring the transmitting instruction of firewall data interception, will be blocked The data transfer instructions cut capture and feed back to server.The comparison page buries the address a being pre-configured link and data transmitting instruction Whether the address link of middle carrying is consistent, specifically can be parsing data transfer instructions, obtains the ground of data transfer instructions carrying Location link, and the address link that data transfer instructions carry includes the ground of the address link and subpage frame of parent page under normal circumstances Location link links unanimously as long as whether the address link of comparison subpage frame buries the address being pre-configured with the page.
In a specific embodiment, the page buries the URL for being a little pre-equipped with the parent page being directed toward, and a little gets burying After data transfer instruction, and this data transfer instruction matches with preset URL, then generated according to data transfer instruction One data acquisition instruction.Then, the page, which buries, a little sends data acquisition instruction to subpage frame, after getting corresponding data, just The data got are sent to parent page.
In the present embodiment, the intercepted data transfer instructions of capture are buried by the page, then compare the page and bury a pre-configuration Address link and the address link that is carried in the data transfer instructions it is whether consistent, consistent address is linked into corresponding data Transmitting instruction be sent to parent page, it can be determined that go out the corresponding subpage frame of data transfer instructions whether between parent page there are embedding There is mistake to be screened before carrying out data transmitting in set relationship when avoiding out transmitting data, improve data transmitting Safety.
In one of the embodiments, further include: receive the authentication request of parent page feedback;It is sent out to the parent page The page is given to bury identity information a little;In the identification information for receiving the parent page, then the parent page and subpage are created The data transmission channels in face, until being not detected in the data transmission channels has data to be transmitted.
Wherein, the page buries identity information a little, specifically can be preconfigured key and buries a number.
In a specific embodiment, a little it is judged to endangering by parent page to the identity information that parent page is sent when the page buries When dangerous unit information, then to server feedback, the page buries a little instruction information for unit of risk to parent page.
In the present embodiment, by the way that when receiving the authentication request of parent page feedback, the verifying page buries identity a little Information, thereby may be ensured that the page buries is a little that safe burying a little ensure that the data transmission channels of parent page and subpage frame are also Safety, further improve the safety of data transmitting.
In a specific embodiment, server creates a subpage frame, fixed in the page demonstration code of subpage frame An adopted testChild method, this testChild method can be used for calling the js method of parent page data, then in son A key is added on the page, this key is triggered on subpage frame, so that it may the js method that triggering calls parent page to define.
In a specific embodiment, server creates a parent page, fixed in the page demonstration code of parent page An adopted testParent method, this testParent method can be used for calling the js method of subpage face data, in father A key is added on the page, this key is triggered on subpage frame, so that it may the js method that triggering calls parent page to define. Then corresponding subpage frame parameter is added on parent page, to introduce subpage frame in parent page.
In a specific embodiment, in parent page and subpage frame, can it is customized with screen look up by scrolling frame, it is quick Key and the components such as key are highlighted, by canonical matching content, accurate match keyword, and rapidly by page positioning and rolling to the One matched position, while customized highlight color and showing relevant information.
As shown in figure 4, in one embodiment, additionally providing a kind of across domain name data transmission method, this method is specifically wrapped Include following step:
S402 receives data transfer instructions.
S404 is then buried by the page and is a little caught when the firewall for detecting the parent page has intercepted the data transfer instructions Obtain intercepted data transfer instructions.
S406, comparing the page and burying the address carried in the address a being pre-configured link and the data transfer instructions and link is It is no consistent.
If so, S410 is thened follow the steps, if it is not, thening follow the steps S408.
S408, to server feedback address error prompting message.
The data transfer instructions are sent to the parent page by S410.
After step S408, also execution step S412.
S412 receives the authentication request of parent page feedback.
S414 sends the page to the parent page and buries identity information a little.
S416, in the identification information for receiving the parent page, then the data for creating the parent page and subpage frame pass Channel is passed, until being not detected in the data transmission channels there are data to be transmitted.
After step S402, also execution step S418.
S418 calls function to monitor address properties on subpage frame by timing.
S420 then passes through the timing when receiving the data transfer instructions, and when listening to the address properties and changing Address properties after calling function call variation.
S422 reads the data being stored in the subpage frame according to the address properties after variation.
S424 determines parent page specified by the data transfer instructions.
S426 chooses the parent page and floats accordingly control.
S428, the data that will acquire are transferred to the floating control.
S430 determines data specified by the data transfer instructions in the floating control of parent page.
S432 generates corresponding cryptographic Hash according to the address object of specified data.
The cryptographic Hash is transferred to the specified subpage frame of the data transfer instructions by S434.
S436 obtains the corresponding data of the cryptographic Hash in the subpage frame.
Above-mentioned across domain name data transmission method determines in the floating control of parent page after receiving data transfer instructions Data specified by data transfer instructions generate cryptographic Hash according to the address object of specified data.Due to different data Address object is not identical, and also just not identical that is, different data have corresponding and different Kazakhstan to the cryptographic Hash of generation Uncommon value.After cryptographic Hash is transferred to the specified subpage frame of data transfer instructions, the corresponding data of cryptographic Hash are obtained in subpage frame, Since cryptographic Hash and address object are corresponding, the address object of data can be directly determined by cryptographic Hash, so that subpage The top-level domain of the top-level domain in face and parent page not it is also possible to transmit data between subpage frame and parent page, thus It avoids and is adapted to for each associated parent page and subpage frame, reduce the waste on time and manpower, Jin Erti High efficiency.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 5, providing a kind of across domain name data transmitting device 500, comprising: instruction connects Receive module 502, command analysis module 503, data determining module 504, cryptographic Hash generation module 506, cryptographic Hash transfer module 508 With data acquisition module 510, in which: command reception module 502, for receiving data transmitting instruction;Command analysis module 503, For parsing the data transfer instructions, the address object of subpage frame specified by the data transfer instructions is obtained;Data determining module 504, for determining the corresponding data of address object of the subpage frame in the floating control of parent page;Cryptographic Hash generation module 506, for the address object according to the subpage frame, generate corresponding cryptographic Hash;Cryptographic Hash transfer module 508 is used for the Kazakhstan Uncommon value is transferred to the specified subpage frame of the data transfer instructions;Data acquisition module 510, for obtaining the Kazakhstan in the subpage frame The uncommon corresponding data of value.
Above-mentioned across domain name data transmitting device 500, after receiving data transfer instructions, in the floating control of parent page really Fixed number generates cryptographic Hash according to the address object of specified data according to the data of transmitting instruction.Due to different data Address object it is not identical, the cryptographic Hash of generation also just not identical that is, different data have it is corresponding and different Cryptographic Hash.After cryptographic Hash is transferred to the specified subpage frame of data transfer instructions, cryptographic Hash is obtained in subpage frame and is counted accordingly According to the address object of data can be directly determined by cryptographic Hash, so that sub since cryptographic Hash and address object are corresponding The top-level domain of the top-level domain of the page and parent page not it is also possible to transmit data between subpage frame and parent page, from And avoid and be adapted to for each associated parent page and subpage frame, reduce the waste on time and manpower, in turn Improve efficiency.
The device in one of the embodiments, further include: subpage frame data acquisition module, for being obtained in subpage frame Data specified by the data transfer instructions;Parent page determining module, for determining specified by the data transfer instructions Parent page;Control chooses module, floats accordingly control for choosing the parent page;Data transfer module, for will acquire Data be transferred to the floating control.
Device in one of the embodiments, further include: module is monitored in address, for being adjusted on subpage frame by timing Address properties are monitored with function;Call by location module receives the data transfer instructions for working as, and listens to the address properties When changing, then the address properties after function call variation are called by the timing;Data read module, for according to variation Address properties afterwards read the data being stored in the subpage frame.
Device in one of the embodiments, further include: instruction trapping module detects the parent page for working as When firewall has intercepted the data transfer instructions, then the intercepted data transfer instructions of capture are buried by the page;Address chain Contrast module is connect, buries the address carried in the address a being pre-configured link and the data transfer instructions for comparing the page It whether consistent links;Instruction sending module, for the data transfer instructions to be sent to the parent page.
The device in one of the embodiments, further include: request receiving module, for receiving the body of parent page feedback Part checking request;Identity information sending module buries identity information a little for sending the page to the parent page;Channel creates mould Block, in the identification information for receiving the parent page, then creating the data transmission channels of the parent page and subpage frame, Until being not detected in the data transmission channels has data to be transmitted.
It may refer to about the specific restriction across domain name data transmitting device above for across domain name data transmission method Restriction, details are not described herein.Modules in above-mentioned across domain name data transmitting device can be fully or partially through software, hard Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing Hash value and address object etc..The network interface of the computer equipment is used for and outside Terminal passes through network connection communication.To realize a kind of across domain name data transmission method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor perform the steps of reception data transfer instructions when executing computer program;Parse data biography Instruction is passed, the address object of subpage frame specified by the data transfer instructions is obtained;The son is determined in the floating control of parent page The corresponding data of the address object of the page;According to the address object of the subpage frame, corresponding cryptographic Hash is generated;The cryptographic Hash is passed It is handed to the specified subpage frame of the data transfer instructions;The corresponding data of the cryptographic Hash are obtained in the subpage frame.
Above-mentioned computer equipment determines data transmitting after receiving data transfer instructions in the floating control of parent page The data of instruction generate cryptographic Hash according to the address object of specified data.Due to the address object of different data Not identical, also just not identical that is, different data have corresponding and different cryptographic Hash to the cryptographic Hash of generation.It will After cryptographic Hash is transferred to the specified subpage frame of data transfer instructions, the corresponding data of cryptographic Hash are obtained in subpage frame, due to breathing out Uncommon value is corresponding with address object, therefore the address object of data can be directly determined by cryptographic Hash, so that the one of subpage frame The top-level domain of grade domain name and parent page not it is also possible to transmit data between subpage frame and parent page, so as to avoid It is adapted to for each associated parent page and subpage frame, reduces the waste on time and manpower, and then improve effect Rate.
In one embodiment, it also performs the steps of when computer program is executed by processor and is obtained in subpage frame Data specified by the data transfer instructions;Determine parent page specified by the data transfer instructions;It is corresponding to choose the parent page Floating control;The data that will acquire are transferred to the floating control.
In one embodiment, it also performs the steps of when computer program is executed by processor and passes through on subpage frame Timing calls function to monitor address properties;When receiving the data transfer instructions, and when listening to the address properties and changing, The address properties after function call variation are then called by the timing;The subpage is stored according to the address properties reading after variation Data in face.
In one embodiment, it also performs the steps of to work as when computer program is executed by processor and detects father page When the firewall in face has intercepted the data transfer instructions, then the intercepted data transfer instructions of capture are buried by the page;Comparison Whether the page buries the address a being pre-configured link consistent with the address link carried in the data transfer instructions;If so, will The data transfer instructions are sent to the parent page.
In one embodiment, when computer program is executed by processor also perform the steps of receive the parent page it is anti- The authentication request of feedback;The page, which is sent, to the parent page buries identity information a little;It is true in the identity for receiving the parent page When recognizing information, then the data transmission channels of the parent page and subpage frame are created, until being not detected in the data transmission channels has Data are transmitted.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of reception data transfer instructions when being executed by processor;The data transfer instructions are parsed, the number is obtained According to the address object of transmitting instruction subpage frame;The address object phase of the subpage frame is determined in the floating control of parent page The data answered;According to the address object of the subpage frame, corresponding cryptographic Hash is generated;The cryptographic Hash is transferred to data transmitting to refer to Enable specified subpage frame;The corresponding data of the cryptographic Hash are obtained in the subpage frame.
Above-mentioned computer readable storage medium determines in the floating control of parent page after receiving data transfer instructions Data specified by data transfer instructions generate cryptographic Hash according to the address object of specified data.Due to different data Address object is not identical, and also just not identical that is, different data have corresponding and different Kazakhstan to the cryptographic Hash of generation Uncommon value.After cryptographic Hash is transferred to the specified subpage frame of data transfer instructions, the corresponding data of cryptographic Hash are obtained in subpage frame, Since cryptographic Hash and address object are corresponding, the address object of data can be directly determined by cryptographic Hash, so that subpage The top-level domain of the top-level domain in face and parent page not it is also possible to transmit data between subpage frame and parent page, thus It avoids and is adapted to for each associated parent page and subpage frame, reduce the waste on time and manpower, Jin Erti High efficiency.
In one embodiment, it also performs the steps of when computer program is executed by processor and is obtained in subpage frame Data specified by the data transfer instructions;Determine parent page specified by the data transfer instructions;It is corresponding to choose the parent page Floating control;The data that will acquire are transferred to the floating control.
In one embodiment, it also performs the steps of when computer program is executed by processor and passes through on subpage frame Timing calls function to monitor address properties;When receiving the data transfer instructions, and when listening to the address properties and changing, The address properties after function call variation are then called by the timing;The subpage is stored according to the address properties reading after variation Data in face.
In one embodiment, it also performs the steps of to work as when computer program is executed by processor and detects father page When the firewall in face has intercepted the data transfer instructions, then the intercepted data transfer instructions of capture are buried by the page;Comparison Whether the page buries the address a being pre-configured link consistent with the address link carried in the data transfer instructions;If so, will The data transfer instructions are sent to the parent page.
In one embodiment, when computer program is executed by processor also perform the steps of receive the parent page it is anti- The authentication request of feedback;The page, which is sent, to the parent page buries identity information a little;It is true in the identity for receiving the parent page When recognizing information, then the data transmission channels of the parent page and subpage frame are created, until being not detected in the data transmission channels has Data are transmitted.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of across domain name data transmission method, which comprises
Receive data transfer instructions;
The data transfer instructions are parsed, the address object of subpage frame specified by the data transfer instructions is obtained;
The corresponding data of address object of the subpage frame are determined in the floating control of parent page;
According to the address object of the subpage frame, corresponding cryptographic Hash is generated;
The cryptographic Hash is transferred to the specified subpage frame of the data transfer instructions;
The corresponding data of the cryptographic Hash are obtained in the subpage frame.
2. the method according to claim 1, wherein the method is also after the reception data transfer instructions Include:
Data specified by the data transfer instructions are obtained in subpage frame;
Determine parent page specified by the data transfer instructions;
The parent page is chosen to float accordingly control;
The data that will acquire are transferred to the floating control.
3. according to the method described in claim 2, it is characterized in that, described obtain the data transfer instructions institute in subpage frame Specified data, comprising:
Function is called to monitor address properties by timing on subpage frame;
When receiving the data transfer instructions, and when listening to the address properties and changing, then
The address properties after function call variation are called by the timing;
The data being stored in the subpage frame are read according to the address properties after variation.
4. the method according to claim 1, wherein the reception data transfer instructions, comprising:
When the firewall for detecting the parent page has intercepted the data transfer instructions, then
The intercepted data transfer instructions of capture are buried by the page;
Compare the page bury the address link that is carried in the address link and the data transfer instructions being pre-configured whether one It causes;If so,
The data transfer instructions are sent to the parent page.
5. according to the method described in claim 4, it is characterized in that, described be sent to father's page for the data transfer instructions After face, which comprises
Receive the authentication request of the parent page feedback;
The page, which is sent, to the parent page buries identity information a little;
When receiving the identification information of the parent page, then
The data transmission channels of the parent page and subpage frame are created, until being not detected in the data transmission channels there are data It is transmitted.
6. a kind of across domain name data transmitting device, which is characterized in that described device includes:
Command reception module, for receiving data transmitting instruction;
Command analysis module obtains subpage frame specified by the data transfer instructions for parsing the data transfer instructions Address object;
Data determining module, for determining that the address object of the subpage frame counts accordingly in the floating control of parent page According to;
Cryptographic Hash generation module generates corresponding cryptographic Hash for the address object according to the subpage frame;
Cryptographic Hash transfer module, for the cryptographic Hash to be transferred to the specified subpage frame of the data transfer instructions;
Data acquisition module, for obtaining the corresponding data of the cryptographic Hash in the subpage frame.
7. according to the method described in claim 6, it is characterized in that, described device further include:
Subpage frame data acquisition module, for obtaining data specified by the data transfer instructions in subpage frame;
Parent page determining module, for determining parent page specified by the data transfer instructions;
Control chooses module, floats accordingly control for choosing the parent page;
Data transfer module, the data for will acquire are transferred to the floating control.
8. according to the method described in claim 6, it is characterized in that, described device further include:
Trapping module is instructed, for when the firewall for detecting the parent page has intercepted the data transfer instructions, then leading to It crosses the page and buries the intercepted data transfer instructions of capture;
Address links contrast module, buries in the address a being pre-configured link and the data transfer instructions for comparing the page Whether the address link of carrying is consistent;
Instruction sending module, for the data transfer instructions to be sent to the parent page.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201810870737.7A 2018-08-02 2018-08-02 Cross-domain name data transmission method and device, computer equipment and storage medium Active CN109274780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810870737.7A CN109274780B (en) 2018-08-02 2018-08-02 Cross-domain name data transmission method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810870737.7A CN109274780B (en) 2018-08-02 2018-08-02 Cross-domain name data transmission method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109274780A true CN109274780A (en) 2019-01-25
CN109274780B CN109274780B (en) 2023-01-10

Family

ID=65153049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810870737.7A Active CN109274780B (en) 2018-08-02 2018-08-02 Cross-domain name data transmission method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109274780B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299205A1 (en) * 2009-05-20 2010-11-25 David Erdmann Protected serving of electronic content
CN103546570A (en) * 2013-10-29 2014-01-29 小米科技有限责任公司 Method, device and terminal for achieving network client-side cross-domain data request
CN105183851A (en) * 2015-09-08 2015-12-23 上海上讯信息技术股份有限公司 Interaction method and device overcoming browser same-origin policy limit
WO2016101732A1 (en) * 2014-12-26 2016-06-30 北京奇虎科技有限公司 Cross-page information transmission method and page browsing apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100299205A1 (en) * 2009-05-20 2010-11-25 David Erdmann Protected serving of electronic content
CN103546570A (en) * 2013-10-29 2014-01-29 小米科技有限责任公司 Method, device and terminal for achieving network client-side cross-domain data request
WO2016101732A1 (en) * 2014-12-26 2016-06-30 北京奇虎科技有限公司 Cross-page information transmission method and page browsing apparatus
CN105183851A (en) * 2015-09-08 2015-12-23 上海上讯信息技术股份有限公司 Interaction method and device overcoming browser same-origin policy limit

Also Published As

Publication number Publication date
CN109274780B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
CN109788032B (en) Method and device for acquiring mirror image file, computer equipment and storage medium
US9419803B2 (en) Flexible data authentication
CN111666514A (en) Data processing method and device for realizing cross-domain request at webpage end and related equipment
CN110177135A (en) Channel information processing method, device and the computer equipment of application program
CN108520059A (en) Loading method, system, computer equipment and the storage medium of the client H5 pages
CN110727949B (en) Data storage method and device, computer equipment and storage medium
CN108768960B (en) Virus detection method, device, storage medium and computer equipment
CN108259514B (en) Vulnerability detection method and device, computer equipment and storage medium
CN110209652A (en) Tables of data moving method, device, computer equipment and storage medium
KR20190032603A (en) Authentication methods, devices and authentication clients
CN110908778B (en) Task deployment method, system and storage medium
CN101631108A (en) Method and system for generating regular file for firewall of network server
CN108400978B (en) Vulnerability detection method and device, computer equipment and storage medium
CN110245505A (en) Tables of data access method, device, computer equipment and storage medium
CN105046150A (en) Method and system for preventing structured query language (SQL) implantation
CN103561040A (en) File downloading method and system
CN109857479A (en) Interface data processing method, device, computer equipment and storage medium
CN108011898B (en) Vulnerability detection method and device, computer equipment and storage medium
CN109391618A (en) A kind of method for building up and system of communication link
CN108897728A (en) Short message splicing processing method, device, computer equipment and storage medium
CN110995683A (en) Hardware information acquisition method and device based on Web page and computer equipment
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN114238978A (en) Vulnerability scanning system, vulnerability scanning method and computer equipment
CN108259416B (en) Method for detecting malicious webpage and related equipment
CN101257518B (en) Method and system for preventing lawless ordering without through charging gateway in WAP platform

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