CN105808587A - Method and system for embedding information into webpage and gateway device - Google Patents

Method and system for embedding information into webpage and gateway device Download PDF

Info

Publication number
CN105808587A
CN105808587A CN201410849919.8A CN201410849919A CN105808587A CN 105808587 A CN105808587 A CN 105808587A CN 201410849919 A CN201410849919 A CN 201410849919A CN 105808587 A CN105808587 A CN 105808587A
Authority
CN
China
Prior art keywords
page
information
webpage
response
script
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
CN201410849919.8A
Other languages
Chinese (zh)
Other versions
CN105808587B (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410849919.8A priority Critical patent/CN105808587B/en
Publication of CN105808587A publication Critical patent/CN105808587A/en
Application granted granted Critical
Publication of CN105808587B publication Critical patent/CN105808587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for embedding information into a webpage and a gateway device. The method comprises the steps of receiving a response webpage returned to a user terminal; analyzing the response webpage to obtain the webpage content and determining a content modification policy based on the webpage content; and according to the content modification policy, reformatting the response webpage to generate a new response webpage, and transmitting the new response webpage to the user terminal. According to the method and the system for embedding the information into the webpage and the gateway device, the new page embedded with the additional information is sent to the user terminal, so that the businesses such as auxiliary network browsing, flow management, business marketing, commercial advertising and the like can be developed; and the processing capability of a flow gateway of an operator can be fully utilized, the page space of the terminal can be efficiently utilized, the user experience is not influenced, the access costs of value-added services can be effectively reduced, and the difficulty in functional business and additional information embedding is lowered.

Description

Webpage embeds the method for information, gateway device and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of side embedding information in webpage
Method, gateway device and system.
Background technology
Along with the development of mobile communication technology, mobile phone terminal is used to browse the Internet increasingly widespread.In this context, all kinds of companies all pass through existing resource, move the mobile phone terminal function of browse upgrading of user, so can provide the user more abundant service, strengthen the brand value of self, such as, portal website, electricity business, SP provider etc. provide multiple Information Mobile Service, and user can be undertaken surfing the Net by mobile phone, does shopping, reads, see a film etc..
At present, the oriented user of many companies pushes the demand of advertisement information, is used for carrying out promoting service.In webpage embedded technology, existing web page modification technique main purpose is that additional information is implanted mostly, namely product placement, and content is fairly simple.Meanwhile, existing page treatment technology is to insert the pop-up page so that the time of background analysis and resource consumption are relatively big, have a strong impact on the viewing experience of user;And, the storage that the gateway device that mobile data provide is used only for mobile data by current operator forwards, such as, the page that user's request browses is sent to user terminal, the browser display page of user terminal, there is certain idle situation in gateway device disposal ability, there is the possibility that further ability is open.
Summary of the invention
In view of this, the technical problem that the invention solves the problems that is to provide a kind of method embedding information in webpage, it is possible to the page embedding additional information is sent to subscriber terminal equipment.
A kind of method embedding information in webpage, including: receive the response webpage returning to user terminal;Resolution response webpage obtains web page contents, determines content modification strategy based on web page contents;According to content modification strategy to response webpage typesetting again, generate new response webpage and be sent to user terminal by newly responding webpage.
According to one embodiment of present invention, further, web page contents includes: webpage sensitive words segment information, webpage blank position information, Web page picture information;Wherein, webpage sensitive words segment information includes: the request url of user, customer position information, user number information.
According to one embodiment of present invention, further, according to content modification strategy, response webpage typesetting again is included: embed additional information script at the blank position place of original web page, embed related information link after sensitive field, amendment original web page sensitivity literal field, picture to original web page recompile, insertion tool hurdle in original web page;Wherein, blank position comprises: be positioned at the blank of page head, afterbody, both sides, and in the page blank between text paragraph.
According to one embodiment of present invention, further, the original script that response page comprises is analyzed, according to the label comprised in original script, it is determined that the paragraph position in response page;Label includes: div, body, img, p, br, script;Wherein, image content region in response page is determined by label div and label img;Determine blank position by div tag or p label, and in conjunction with user terminal model and user terminal browser information, calculate size and the relative position of blank position;User terminal includes: smart mobile phone, panel computer.
According to one embodiment of present invention, further, from response page, content characteristic information is obtained;Content characteristic information is matched with the key feature information preset, if the match is successful, then triggers online embedding operation;Wherein, key feature information includes: search key word, directed network address, positional information;The original script of response page embeds the additional content corresponding with content characteristic information, the original response page again typesetting is generated new response page;New response page is returned to user terminal, and user terminal shows the additional content embedded when showing new response page;Wherein, additional content includes: text, picture, audio frequency, video, toolbar, operator's additional function;Operator's additional function includes: customer flow is inquired about, and supplements with money, experiences plan.
According to one embodiment of present invention, further, if content characteristic information is mated unsuccessful with the key feature information preset, then off-line embedding operation is triggered;The original script of response page embeds the URL corresponding with the appointment function guiding user to use or information, original response webpage again typesetting is generated new response page;New response page is returned to user terminal, and user terminal is obtained by URL when showing new response page and throws in function or information.
The technical problem that the invention solves the problems that is to provide a kind of device embedding information in webpage, it is possible to the page embedding additional information is sent to subscriber terminal equipment.
A kind of gateway device, including: webpage receives unit, for receiving the response webpage returning to user terminal;Web analysis unit, obtains web page contents for resolution response webpage, determines content modification strategy based on web page contents;Web page rearrangement unit, is used for according to content modification strategy response webpage typesetting again, generates and newly respond webpage;Webpage transmitting element, for being sent to user terminal by newly responding webpage.
According to one embodiment of present invention, further, web page contents includes: webpage sensitive words segment information, webpage blank position information, Web page picture information;Wherein, webpage sensitive words segment information includes: the request url of user, customer position information, user number information.
According to one embodiment of present invention, further, the response typesetting again that carries out of webpage is included by Web page rearrangement unit: embed additional information script at the blank position place of original web page, embed related information link after sensitive field, amendment original web page sensitivity literal field, picture to original web page recompile, insertion tool hurdle in original web page;Wherein, blank position comprises: be positioned at the blank of page head, afterbody, both sides, and in the page blank between text paragraph.
According to one embodiment of present invention, further, web analysis unit, including: page script analyzing sub-module, for analyzing the original script that response page comprises, according to the label comprised in original script, it is determined that the paragraph position in response page;Label includes: div, body, img, p, br, script;Wherein, page script analyzing sub-module determines image content region in response page by label div and label img;Page script analyzing sub-module determines blank position by div tag or p label, and in conjunction with user terminal model and user terminal browser information, calculates size and the relative position of blank position;User terminal includes: smart mobile phone, panel computer.
According to one embodiment of present invention, further, web analysis unit, including: key message extracts submodule, for obtaining content characteristic information from response page;Content characteristic information is matched with the key feature information preset, if the match is successful, then triggers online embedding operation;Wherein, key feature information includes: search key word, directed network address, positional information;Web page rearrangement unit, including: script embeds submodule, for embedding the additional content corresponding with content characteristic information in the original script of response page, the original response page again typesetting is generated new response page;Webpage transmitting element, for returning to user terminal by new response page;User terminal shows the additional content embedded when showing new response page;Wherein, additional content includes: text, picture, audio frequency, video, toolbar, operator's additional function;Operator's additional function includes: customer flow is inquired about, and supplements with money, experiences plan.
According to one embodiment of present invention, further, key message extracts submodule, if mating unsuccessful for content characteristic information with the key feature information preset, then triggers off-line embedding operation;Script embeds submodule, for embedding the URL corresponding with the appointment function guiding user to use or information in the original script of response page, original response webpage again typesetting is generated new response page;Webpage transmitting element, for returning to user terminal by new response page;User terminal is obtained by URL when showing new response page and throws in function or information.
A kind of system embedding information in webpage, including: user terminal, gateway device as above.
The method of the information that embeds in webpage of the present invention, gateway device and system, the new page script embedding additional information can be sent to the subscriber terminal equipment of requests for page, the content of pages additional content corresponding with additional information of display, it is possible to carry out business such as assisting network browsing, flow operation, business marketing, commercial advertisement;And the disposal ability of operator's flow gateway can be made full use of, it is achieved terminal page space-efficient utilizes, and does not affect Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of an embodiment of the method for the information that embeds in webpage according to the present invention;
The blank position that Fig. 2 is an embodiment of the method for the information that embeds in webpage according to the present invention embeds information schematic diagram;
Fig. 3 is the web page analysis schematic diagram of an embodiment of the method for the information that embeds in webpage according to the present invention;
Fig. 4 is the open schematic diagram of flow gateway capacity of an embodiment of the method for the information that embeds in webpage according to the present invention;
Fig. 5 is the online script embedding strategy flow process of an embodiment of the method for the information that embeds in webpage according to the present invention;
Fig. 6 is the off-line script embedding strategy flow chart of an embodiment of the method for the information that embeds in webpage according to the present invention;
Fig. 7 is the structural representation of an embodiment of the gateway device according to the present invention;
Fig. 8 is the structural representation of the web analysis unit of an embodiment of the gateway device according to the present invention.
Detailed description of the invention
With reference to the accompanying drawings the present invention is described more fully, the exemplary embodiment of the present invention is wherein described.Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.Below in conjunction with each figure and embodiment, technical scheme is carried out many-sided description.
Fig. 1 is the flow chart of an embodiment of the method for the information that embeds in webpage according to the present invention, as shown in Figure 1:
Step 101, receives the response webpage returning to user terminal.
Step 102, resolution response webpage obtains web page contents, determines content modification strategy based on web page contents.
Step 103, according to content modification strategy to response webpage typesetting again, generates and newly responds webpage.
Step 104, is sent to user terminal by newly responding webpage.
From the former page script obtained and user profile, analyze to obtain herein below: webpage sensitive words segment information, webpage blank position information, Web page picture information etc..Webpage sensitive words segment information is including but not limited to the request url of user, customer position information, user number information etc., space bit comprises but is not limited only to: page head, afterbody, both sides space bit, it is also possible to be that in the page, big section between text paragraph is blank.
Result according to above-mentioned page analysis, carries out typesetting again to the page, generates new page script.Again typesetting project includes: the blank position at former webpage embeds additional information script, embeds related information link, revises former webpage sensitivity literal field, former Web page picture is recompiled, embed the toolbar etc. with specific function after sensitive field.
The method of the above-mentioned information that embeds in webpage, by using webpage embedded technology, it is possible to do not destroy page raw information, pop-up advertisement, optimized user interface typesetting will not be produced, embed content-form various, such as light instrument hurdle, extension information etc., it is possible to abundant user's viewing experience.
Use http page script embedded technology, by sensitive Word message in the space bit of computational analysis page-out, picture size and position, text etc., gateway device is according to page analysis result, in conjunction with the incidental integrated information of Subscriber Number, former page script is embedded and specifies additional information, again typesetting, then the page after amendment script is returned to display in the browser of terminal use through flow gateway.
In one embodiment, analyze the input webpage S1 original script S2 comprised, it is determined that the free space in former script, and produce to analyze result S3.Utilize the attached label comprised in original script S2, analyze the position of the above-mentioned each paragraph of the http page.Label in the present invention refers in http original script, designs defined<labels>such as standard/javaseript according to the design of http webpage layout, CSS CCS.
Such as, label<body>represent auxiliary the Table Design label of typesetting, label<img>represent the label of embedded Web page picture, label<table>represent the auxiliary label of Table Design of typesetting, label<p>or label<br>represent the label of paragraph of word, label in text<href>represent the label of hyperlink, label<style>then for the CSS text importing color designed and the label of size, label<script>then represent that javascript provides and use interactive label etc..
As in figure 2 it is shown, webpage original script comprises many different labels.Web page analysis can capture out each paragraph and the meaning involved by position in original web page by defined label.For example, it is possible to pass through label<div>with label<img>jointly determining the former webpage S1 image content region of input, these contents mostly are advertisement, because<div>label can width in assigned picture and height, and most advertisement typesetting is all positioned over the left and right sides of web page contents, and additional advertisement is mostly picture, necessarily contains label<img>use.
Owing to article is when the row's of paragraphing form, substantial amounts of label can be applied to<p>, due to reading needs, region divides or article segmentation will necessarily come interval with space bit, so web page analysis can be accordingly by<div>label or<p>label finds either large or small space bit.By the user terminal model extracted in user terminal information and user terminal browser information, just can calculate size and the relative position of space bit more accurately, embedding additional information and be referred to this data, left and right two parts that the script of the select row in Fig. 2 then corresponds in the page are blank.
In one embodiment, as it is shown on figure 3, gateway device, for instance flow gateway, it is possible to analyze result S3 produced by web page analysis, use the webpage layout algorithm amendment input webpage S1 original script S2 comprised to produce to revise original script S4.
Page script embeds for according to subscriber terminal equipment viewing area size and in the way of showing picture configuration, above-mentioned original script S1 is revised to produce amendment original script S4 by webpage layout algorithm, if Web browsing system is a handheld terminal, the mode of display picture configuration refers to that the placing direction of hand-held device is for horizontally or vertically.
Such as, according to the result S3 that page script is analyzed, when implementing page script amendment, stratum's layout algorithm is used to select above-mentioned parent page script can rewrite and may be inserted into the part of javascript function, for instance at two pairs<p>blank parts between label, or<head>blank parts before label, or<img>picture section between label.The position prime information embedded as required determines script amending method, obtains the information with embedding or URL from flow gateway.
Generate the javascript function part of the information needing insertion, produce script amendment code, it is embedded into page script and analyzes the blank position that can embed in result S3, or substitute original information, add additional floating toolbar, and page script is carried out typesetting again, it is sent to corresponding flow gateway and is transferred to terminal unit browser.
In one embodiment, the opening for gateway device ability can adopt two ways: the flow gateway management ability that 1, online script embeds is open, 2, the flow gateway management ability that embeds of off-line script open.
Online script embedded model relies on flow gateway and obtains and analyze the page info of user, extracts critical data therein, including: user search key word, directed network address, specific location information (BSID) etc..When determining that user has above characteristic information, take online script mode to user's embedding data.
Online script embedded model step is as follows:
1. flow gateway receives and specifies internet SP to return to the respone page data bag specifying user, is not directly returned to specify user, is directly judged by flow gateway advanced person's row strategy.First flow gateway judges whether to page script according to information such as user UA, URL, MDN of initial data and embeds.
2. flow gateway device finds special key words in user's original web page information, triggers online script embedded model.
Flow gateway is by analyzing the special key words specified data in label, find in former webpage of original web page: the information such as particular web site, ad-hoc location or search key.Finding this category information it may be said that this terminal use's bright is motivated, have concrete function demand, flow gateway can be clicked to obtain user to the additional given content of User Page according to this desired content.
Such as, the http web data of flow gateway processes terminal use, it is judged that there is search content in User Page data, search key is certain recent film.Film review that flow gateway synchronizes in advance from backstage before directly invoking, cinemas information, embed in user's script.
3. flow gateway is according to online script strategy, adopts webpage space bit embedded technology to embed additional information in parent page script.
In one embodiment, from response page, content characteristic information is obtained.Content characteristic information is matched with the key feature information preset, if the match is successful, then triggers online embedding operation;Wherein, key feature information includes: search key word, directed network address, positional information etc..
The original script of response page embeds the additional content corresponding with content characteristic information, the original response page again typesetting is generated new response page, new response page is returned to user terminal.
User terminal shows the additional content embedded when showing new response page, and additional content includes: text, picture, audio frequency, video, toolbar, operator's additional function etc..Operator's additional function includes: customer flow is inquired about, and supplements with money, experiences plan.
As shown in Figure 4, embedding information carries out on gateway device, and flow gateway device is analyzed result by page script space bit and embedded additional information typesetting again, after again the page after typesetting being sent to terminal unit, the browser of terminal unit can show the page after embedding.
In the Internet pipeline, the data content type of transmission is a lot, including text, picture, audio frequency, video etc., the page (WEB/WAP) is the main form of internet information carrying, when user is by the browser access content server on terminal unit, what browser returned to user is the content of pages multiple data content type being integrated together.Except comprising business tine information in the page, for instance news, amusement, outside study etc., it is also possible to comprise additional information, such as commercial information and possible auxiliary information, for instance toolbar etc..
Such as, page request is transmitted to page script analyzer by gateway device, and corresponding parent page information analysis result can be returned to gateway device by page script analyzer.Gateway device embeds operator's additional function in the parent page received, and as customer flow is inquired about, quickly supplements with money, experience plan etc., in order to can also browse to this operator's additional information during the page of its request of end-user browses.
Fig. 5 is the online script embedding strategy flow process of an embodiment of the method for the information that embeds in webpage according to the present invention, as shown in Figure 5:
Step 201,202, gateway device, for instance WAP gateway, obtain additional-content servers synchronize embedding condition and code.
Step 203, when the browser of terminal unit sends page request to gateway device, gateway device forwards it to services sites SP, and WAP gateway receives the services sites SP response page returned.
Step 205, flow gateway receives specifies internet SP to return to the respone page data bag specifying user, is not directly returned to specify user, is directly judged by flow gateway advanced person's row strategy.First flow gateway judges whether to page script according to information such as user UA, URL, MDN of initial data and embeds.
Step 206, gateway device, according to web page analysis result, embeds additional content code in corresponding page response body, converts former script format to.The false code of flow process is as follows:
Attachment content implants function (input: response traffic, output: the response traffic after embedding)
{
Response data object=decoding functions (response traffic);
If (response data object. content type==" html " support browser check function (response data object. browser UA)==" ture " target URL check function (response data object. target URL)==" true " user open this functional check function (response data object. ID)==" true " other functions, it is possible to by demand add)
{
Response data object. message text. imbedding function (additional content address);
}
Response traffic=coding function (response data object) after embedding
}。
Step 207, generates new response page to the original response page again typesetting, new response page is returned to user terminal.
In one embodiment, if content characteristic information is mated unsuccessful with the key feature information preset, then trigger off-line embedding operation.The original script of response page embeds the URL corresponding with the appointment function guiding user to use or information, original response webpage again typesetting is generated new response page.New response page is returned to user terminal, and user terminal is obtained by URL when showing new response page and throws in function or information.
Off-line script embedded model: for not meeting the user of online script requirement, flow gateway directly can be embedded into URL high for default dependency in the response page that targeted website returns (not embedding specifying information).When user browses next time, user can be triggered and obtain complete toolbar script to third party SP and be shown in User Page.
Off-line script embedded mode is owing to requiring low suitable in real-time and control ability, and requirement on flexibility is high, process the scene that logic is complicated, and is adapted for introduction into third party content provider.For not meeting the terminal page script of online script mode keyword requirement, flow gateway adopts off-line script mode to embed additional information in former webpage.
Fig. 6 is the off-line script embedding strategy flow chart of an embodiment of the method for the information that embeds in webpage according to the present invention, as shown in Figure 6:
Step 301,302, gateway device, for instance WAP gateway, obtain additional-content servers synchronize embedding condition and code.
Step 303,304,305, when terminal unit browser send page request to gateway device time, gateway device forwards it to services sites SP, WAP gateway receive services sites SP return response page.
Step 306: flow gateway device does not find special key words in user's original web page information, triggers off-line script embedded model.For not finding the page info of certain well user's request, flow gateway carries out information combination only by analyzing the passing behavior of user.
Such as, the http web data of flow gateway processes terminal use, it has been found that page request belong to reading page turning, do not comprise clear and definite demand, directly cannot embed the concrete additional information specified in the page, URL can only be embedded and guide user to use appointment function or information.
Step 307: flow gateway, according to off-line script strategy, utilizes webpage space bit embedded technology to embed additional information in parent page script.Owing to cannot resolve concrete additional information combination, this step embeds third party URL but not specifying information in space bit and toolbar toolbar.
Step 308-313, flow gateway device is sent to terminal unit by embedding the page info after additional information, so that terminal unit shows, according to page info, the additional content that the additional information of embedding is corresponding on the corresponding page of parent page information.
Step 314-317, terminal use obtains, from third party SP, function or the information of specifically throwing in by the URL of page additional information.
The off-line script embedded model not Real-time embedding of flow gateway has the additional information of particular content, but embeds third party URL, these URL the third party SP pointed to and provide the various additional functions clothes including big data analysis.In off-line script embedded model, flow network closes the effect of the backward entrance serving third party SP.
The method of the information that embeds in webpage in above-described embodiment, after additional information is embedded parent page script by gateway device, new page script is sent to the subscriber terminal equipment of requests for page, the browser of subscriber terminal equipment shows thus can carry out the page according to the page script accepted, the content of pages of display is except the parent page content that content service provides, also include the additional content that the additional information of gateway device embedding is corresponding, these additional informations are introduced directly into by the flow gateway device editor module of operator, operator can provide the user direct service by this module, carry out auxiliary network browsing, flow is managed, business marketing, the business such as commercial advertisement, create more commercial value.
The method of the information that embeds in webpage in above-described embodiment, has the advantage that
1, make full use of the disposal ability of operator's flow gateway, while storage forwards mobile data, carry out data acquisition, analysis, embedding, utilize operator's existing gateway equipment to greatest extent.
2, contents diversification, differentiated are embedded.What gateway embedded does not terminate in advertising message, it is possible to is light instrument hurdle, extension information, redirects link etc..And by the embedding strategy of flow gateway, each user can be embedded different contents.
3, webpage embeds based on space bit analytical technology, neither changes and revises the former page, does not also pop up new web page, it is achieved terminal page space-efficient utilizes, and does not affect Consumer's Experience.And introduce off-line and online script embedding strategy, make content embed more flexible.
Flow gateway after introducing ability is open can effectively reduce the cost of access of value-added service, reduces the difficulty of function service, additional information embedding.If operator builds the marketing support based on flow gateway user entry on one's own account and big data and advertisement delivery system, will be that operator attempts transition, cuts the Internet value chain, attempts the most practicable case of big market demand.
As it is shown in fig. 7, the present invention provides a kind of gateway device 4.Webpage receives unit 41 and receives the response webpage returning to user terminal.Web analysis unit 42 resolution response webpage obtains web page contents, determines content modification strategy based on web page contents.Web page rearrangement unit 43 to response webpage typesetting again according to content modification strategy, generates and newly responds webpage.Webpage transmitting element 44 is sent to user terminal by newly responding webpage.
The response typesetting again that carries out of webpage is included by Web page rearrangement unit 43: embed additional information script at the blank position place of original web page, embed related information link after sensitive field, amendment original web page sensitivity literal field, picture to original web page recompile, insertion tool hurdle in original web page.Blank position comprises: be positioned at the blank of page head, afterbody, both sides, and in the page blank between text paragraph.
As shown in Figure 8, page script analyzing sub-module 421 analyzes the original script that response page comprises, according to the label comprised in original script, it is determined that the paragraph position in response page.Label includes: div, body, img, p, br, script;Page script analyzing sub-module 421 determines image content region in response page by label div and label img.Page script analyzing sub-module 421 determines blank position by div tag or p label, and in conjunction with user terminal model and user terminal browser information, calculates size and the relative position of blank position;User terminal includes: smart mobile phone, panel computer.
Key message extracts submodule 422 and obtains content characteristic information from response page.Content characteristic information is matched with the key feature information preset, if the match is successful, then triggers online embedding operation.Wherein, key feature information includes: search key word, directed network address, positional information.
Web page rearrangement unit 43 includes: script embeds submodule.Script embeds submodule and embeds the additional content corresponding with content characteristic information in the original script of response page, and the original response page again typesetting is generated new response page.New response page is returned to user terminal by webpage transmitting element 44.
User terminal shows the additional content embedded when showing new response page;Additional content includes: text, picture, audio frequency, video, toolbar, operator's additional function etc.;Operator's additional function includes: customer flow is inquired about, and supplements with money, experience plan etc..
If content characteristic information is mated unsuccessful with the key feature information preset, key message extracts submodule 422 and triggers off-line embedding operation.Script embeds submodule and embeds the URL corresponding with the appointment function guiding user to use or information in the original script of response page, and original response webpage again typesetting is generated new response page.New response page is returned to user terminal by webpage transmitting element 44, and user terminal is obtained by URL when showing new response page and throws in function or information.
In one embodiment, the present invention provides a kind of system embedding information in webpage, including: user terminal, gateway device as above.
The method of the information that embeds in webpage in above-described embodiment, gateway device and system, the new page script embedding additional information is sent to the subscriber terminal equipment of requests for page, the additional content that display content of pages is corresponding with additional information, it is possible to carry out the business such as auxiliary network browsing, flow operation, business marketing, commercial advertisement;And the disposal ability of operator's flow gateway can be made full use of, it is achieved terminal page space-efficient utilizes, and does not affect Consumer's Experience, introduce off-line and online script embedding strategy, make content embed more flexible.Flow gateway after introducing ability is open can effectively reduce the cost of access of value-added service, reduces the difficulty of function service, additional information embedding.If operator builds the marketing support based on flow gateway user entry on one's own account and big data and advertisement delivery system, will be that operator attempts transition, incision the Internet value chain, attempts the most realistic plan of big market demand.
It is likely to be achieved in many ways the method and system of the present invention.Such as, can by software, hardware, firmware or software, hardware, firmware any combination realize the method and system of the present invention.For the said sequence of step of method merely to illustrate, the step of the method for the present invention is not limited to order described in detail above, unless specifically stated otherwise.Additionally, in certain embodiments, can being also record program in the recording medium by the invention process, these programs include the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covers the record medium of the storage program for performing the method according to the invention.
Description of the invention provides for example with for the purpose of describing, and is not exhaustively or limit the invention to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Selecting and describing embodiment is in order to principles of the invention and practical application are better described, and makes those of ordinary skill in the art it will be appreciated that the present invention is thus design is suitable to the various embodiments with various amendments of special-purpose.

Claims (13)

1. the method embedding information in webpage, it is characterised in that including:
Receive the response webpage returning to user terminal;
Analyze the response to webpage and obtain web page contents, determine content modification strategy based on described web page contents;
According to described content modification strategy to described response webpage typesetting again, generate new response webpage and described new response webpage is sent to described user terminal.
2. method as claimed in claim, it is characterised in that:
Described web page contents includes: webpage sensitive words segment information, webpage blank position information, Web page picture information;
Wherein, webpage sensitive words segment information includes: the request url of user, customer position information, user number information.
3. as claimed in claim 1 or 2 method, it is characterised in that described according to described content modification strategy, described response webpage typesetting again is included:
Embed additional information script at the blank position place of described original web page, embed related information link after sensitive field, amendment original web page sensitivity literal field, picture to original web page recompile, insertion tool hurdle in original web page;
Wherein, blank position comprises: be positioned at the blank of page head, afterbody, both sides, and in the page blank between text paragraph.
4. method as claimed in claim 3, it is characterised in that:
Analyze the original script that described response page comprises, according to the label comprised in described original script, it is determined that the paragraph position in described response page;Described label includes: div, body, img, p, br, script;
Wherein, image content region in described response page is determined by label div and label img;Determine blank position by div tag or p label, and in conjunction with user terminal model and user terminal browser information, calculate size and the relative position of blank position;
Described user terminal includes: smart mobile phone, panel computer.
5. method as claimed in claim 4, it is characterised in that:
Content characteristic information is obtained from described response page;
Described content characteristic information is matched with the key feature information preset, if the match is successful, then triggers online embedding operation;Wherein, described key feature information includes: search key word, directed network address, positional information;
The original script of described response page embeds the additional content corresponding with described content characteristic information, the original response page again typesetting is generated new response page;
Described new response page is returned to user terminal, and user terminal shows the described additional content embedded when showing described new response page;
Wherein, described additional content includes: text, picture, audio frequency, video, toolbar, operator's additional function;Described operator additional function includes: customer flow is inquired about, and supplements with money, experiences plan.
6. method as claimed in claim 5, it is characterised in that:
If described content characteristic information is mated unsuccessful with the key feature information preset, then trigger off-line embedding operation;
The original script of described response page embeds the URL corresponding with the appointment function guiding user to use or information, original response webpage again typesetting is generated new response page;
New response page is returned to user terminal, and user terminal is obtained by described URL when showing new response page and throws in function or information.
7. a gateway device, it is characterised in that including:
Webpage receives unit, for receiving the response webpage returning to user terminal;
Web analysis unit, is used for analyzing the response to webpage and obtains web page contents, determine content modification strategy based on described web page contents;
Web page rearrangement unit, is used for according to described content modification strategy described response webpage typesetting again, generates and newly responds webpage;
Webpage transmitting element, for being sent to described user terminal by described new response webpage.
8. gateway device as claimed in claim 7, it is characterised in that:
Described web page contents includes: webpage sensitive words segment information, webpage blank position information, Web page picture information;Wherein, webpage sensitive words segment information includes: the request url of user, customer position information, user number information.
9. gateway device as claimed in claim 7 or 8, it is characterised in that:
The typesetting again that described response webpage is carried out by described Web page rearrangement unit includes: embed additional information script at the blank position place of described original web page, embed related information link after sensitive field, amendment original web page sensitivity literal field, picture to original web page recompile, insertion tool hurdle in original web page;Wherein, blank position comprises: be positioned at the blank of page head, afterbody, both sides, and in the page blank between text paragraph.
10. gateway device as claimed in claim 9, it is characterised in that:
Described web analysis unit, including:
Page script analyzing sub-module, for analyzing the original script that described response page comprises, according to the label comprised in described original script, it is determined that the paragraph position in described response page;Described label includes: div, body, img, p, br, script;
Wherein, described page script analyzing sub-module determines image content region in described response page by label div and label img;Described page script analyzing sub-module determines blank position by div tag or p label, and in conjunction with user terminal model and user terminal browser information, calculates size and the relative position of blank position;
Described user terminal includes: smart mobile phone, panel computer.
11. gateway device as claimed in claim 10, it is characterised in that:
Described web analysis unit, including:
Key message extracts submodule, for obtaining content characteristic information from described response page;Described content characteristic information is matched with the key feature information preset, if the match is successful, then triggers online embedding operation;Wherein, described key feature information includes: search key word, directed network address, positional information;
Described Web page rearrangement unit, including:
Script embeds submodule, for embedding the additional content corresponding with described content characteristic information in the original script of described response page, the original response page again typesetting is generated new response page;
Described webpage transmitting element, for returning to user terminal by described new response page;
User terminal shows the described additional content embedded when showing described new response page;
Wherein, described additional content includes: text, picture, audio frequency, video, toolbar, operator's additional function;Described operator additional function includes: customer flow is inquired about, and supplements with money, experiences plan.
12. gateway device as claimed in claim 11, it is characterised in that:
Described key message extracts submodule, if mating unsuccessful for described content characteristic information with the key feature information preset, then triggers off-line embedding operation;
Described script embeds submodule, for embedding the URL corresponding with the appointment function guiding user to use or information in the original script of described response page, original response webpage again typesetting is generated new response page;
Described webpage transmitting element, for returning to user terminal by new response page;
User terminal is obtained by described URL when showing new response page and throws in function or information.
13. the system embedding information in webpage, it is characterised in that including:
User terminal, gateway device as described in claim 7 to 12 any one.
CN201410849919.8A 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage Active CN105808587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849919.8A CN105808587B (en) 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849919.8A CN105808587B (en) 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage

Publications (2)

Publication Number Publication Date
CN105808587A true CN105808587A (en) 2016-07-27
CN105808587B CN105808587B (en) 2019-12-06

Family

ID=56421094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849919.8A Active CN105808587B (en) 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage

Country Status (1)

Country Link
CN (1) CN105808587B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526757A (en) * 2016-10-13 2017-12-29 腾讯科技(北京)有限公司 The methods of exhibiting and device of page graphic file
CN107943869A (en) * 2017-11-10 2018-04-20 深圳市华阅文化传媒有限公司 The method and apparatus for reading third party's webpage
CN110147478A (en) * 2017-10-20 2019-08-20 中国电信股份有限公司 Web page subject word acquisition methods and system, server and user terminal
CN110334304A (en) * 2019-06-05 2019-10-15 上海易点时空网络有限公司 Configuration method and system based on layout disaster tolerance
CN113347276A (en) * 2021-07-07 2021-09-03 南京大学城市规划设计研究院有限公司深圳分公司 Mobile access system based on GIS
CN113973111A (en) * 2021-10-29 2022-01-25 北京天融信网络安全技术有限公司 Data forwarding method and device, gateway equipment and computer readable storage medium
US11682148B2 (en) 2018-08-16 2023-06-20 Huawei Technologies Co., Ltd. Method for displaying advertisement picture, method for uploading advertisement picture, and apparatus
CN117150484A (en) * 2023-10-30 2023-12-01 信智慧通科技(北京)有限公司 Page information processing method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020111967A1 (en) * 2001-02-11 2002-08-15 Fujitsu Limited Server for providing user with information and service, relay device, information providing method, and program
CN101539934A (en) * 2009-03-30 2009-09-23 北京跳网无限科技发展有限公司 Method for inserting advertisements in WAP web page
CN102402580A (en) * 2010-09-30 2012-04-04 微软公司 Securely rendering online ads in a host page
CN103118082A (en) * 2013-01-21 2013-05-22 华为技术有限公司 Method, device and system for embedding additional information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020111967A1 (en) * 2001-02-11 2002-08-15 Fujitsu Limited Server for providing user with information and service, relay device, information providing method, and program
CN101539934A (en) * 2009-03-30 2009-09-23 北京跳网无限科技发展有限公司 Method for inserting advertisements in WAP web page
CN102402580A (en) * 2010-09-30 2012-04-04 微软公司 Securely rendering online ads in a host page
CN103118082A (en) * 2013-01-21 2013-05-22 华为技术有限公司 Method, device and system for embedding additional information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李海燕: ""标签语义化"", 《DIV+CSS布局与样式之网站设计精粹》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526757A (en) * 2016-10-13 2017-12-29 腾讯科技(北京)有限公司 The methods of exhibiting and device of page graphic file
CN107526757B (en) * 2016-10-13 2020-04-07 腾讯科技(北京)有限公司 Page graphic file display method and device
CN110147478A (en) * 2017-10-20 2019-08-20 中国电信股份有限公司 Web page subject word acquisition methods and system, server and user terminal
CN107943869A (en) * 2017-11-10 2018-04-20 深圳市华阅文化传媒有限公司 The method and apparatus for reading third party's webpage
US11682148B2 (en) 2018-08-16 2023-06-20 Huawei Technologies Co., Ltd. Method for displaying advertisement picture, method for uploading advertisement picture, and apparatus
CN110334304A (en) * 2019-06-05 2019-10-15 上海易点时空网络有限公司 Configuration method and system based on layout disaster tolerance
CN113347276A (en) * 2021-07-07 2021-09-03 南京大学城市规划设计研究院有限公司深圳分公司 Mobile access system based on GIS
CN113347276B (en) * 2021-07-07 2022-07-12 南京大学城市规划设计研究院有限公司深圳分公司 Mobile access system based on GIS
CN113973111A (en) * 2021-10-29 2022-01-25 北京天融信网络安全技术有限公司 Data forwarding method and device, gateway equipment and computer readable storage medium
CN113973111B (en) * 2021-10-29 2023-12-22 珠海天融信网络安全技术有限公司 Data forwarding method, device, gateway equipment and computer readable storage medium
CN117150484A (en) * 2023-10-30 2023-12-01 信智慧通科技(北京)有限公司 Page information processing method, device and equipment
CN117150484B (en) * 2023-10-30 2024-02-13 信智慧通科技(北京)有限公司 Page information processing method, device and equipment

Also Published As

Publication number Publication date
CN105808587B (en) 2019-12-06

Similar Documents

Publication Publication Date Title
US11907360B2 (en) Systems and methods for deploying countermeasures against unauthorized scripts interfering with the rendering of content elements on information resources
CN105808587A (en) Method and system for embedding information into webpage and gateway device
US9529780B2 (en) Displaying content on a mobile device
CA2695819C (en) Method and system to selectively secure the display of advertisements on web browsers
US8869025B2 (en) Method and system for identifying advertisement in web page
CN104866512A (en) Method, device and system for extracting webpage content
US20090158141A1 (en) Method and system to secure the display of a particular element of a markup file
US20130080868A1 (en) System and method thereof for dynamically associating a link to an information resource with a multimedia content displayed in a web-page
CN104766014A (en) Method and system used for detecting malicious website
CN104951961A (en) Method, terminal, server and system for pushing contents
CN109145078A (en) The application page of the machine application is indexed
CN102004756A (en) Traffic visualization across web maps
CN104239298A (en) Text message recommendation method, server, browser and system
CN105426759A (en) URL legality determining method and apparatus
US20200084231A1 (en) Systems and methods for dynamically restricting the rendering of unauthorized content included in information resources
CN112417338B (en) Page adaptation method, system and equipment
CN103544150A (en) Method and system for providing recommendation information for mobile terminal browser
CN104602119A (en) Video transcoding and decoding method and device and related information release control method and system
CN103530389A (en) Method and device for improving stopword searching effectiveness
CN103530385A (en) Method and device for searching for information based on vertical searching channels
CN104881452A (en) Resource locator sniffing method, device and system
CN111143722A (en) Method, device, equipment and medium for detecting webpage hidden link
US20210326929A1 (en) Methods, systems, and media for dynamically detecting mobile environment information
CN102289479A (en) Method, device and equipment for determining image showing mode and showing image
KR101692482B1 (en) Advertising Method of Mobile Device, the Mobile Device and Program Distributing Server therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant