CN104462398A - Device and method for loading share function of webpage - Google Patents

Device and method for loading share function of webpage Download PDF

Info

Publication number
CN104462398A
CN104462398A CN201410758651.7A CN201410758651A CN104462398A CN 104462398 A CN104462398 A CN 104462398A CN 201410758651 A CN201410758651 A CN 201410758651A CN 104462398 A CN104462398 A CN 104462398A
Authority
CN
China
Prior art keywords
webpage
sharing function
matched rule
matching parameter
loading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410758651.7A
Other languages
Chinese (zh)
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410758651.7A priority Critical patent/CN104462398A/en
Publication of CN104462398A publication Critical patent/CN104462398A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a device and a method for loading a share function of a webpage. The method for loading the share function of the webpage includes: acquiring matching parameters of the webpage, wherein the webpage is a content page with the share function; judging whether the matching parameters of the webpage accords with a preset matching rule or not, wherein the preset matching rule is used for appointing a page with no need for loading the share function; if a judgment result shows that the matching parameters of the webpage are not accordant with the preset matching rule, loading the share function for a webpage corresponding to the matching parameters. By the device and the method for loading the share function of the webpage, the problem that all loaded web pages are provided with the share function when the webpage with the share function is loaded in relevant techniques is solved.

Description

The loading method of the sharing function of webpage and device
Technical field
The present invention relates to internet arena, in particular to a kind of loading method and device of sharing function of webpage.
Background technology
At present, all sharing websites (namely, sharing function provides website) be all come for the webpage of user website embeds sharing function by the mode of interpolation one section of front-end code on user website, and user website is all adopt each content pages of template generation, therefore, in the related, sharing function is loaded in order to give each webpage, the general front-end code all only adding sharing function in page template, cause adding all webpages of setting out all with sharing function according to page template, and in fact not all webpage all needs this function.
In addition, all webpages all can cause following problem again with sharing function:
(1) when webpage loads, be delayed the loading velocity of the webpage do not needed with sharing function, and then have impact on the mutual impression that netizen uses website.Because during Web page loading, if load sharing function, then the code needing additional downloads relevant, to client, affects the loading velocity of webpage.
(2) part does not wish the webpage (e.g., some sensitive web pages) that netizen shares, if load sharing function, then can bring certain hidden danger.
Therefore, if all the elements page all passes through template generation, then can be defaulted as them all with sharing function, at this moment, for the webpage that some do not need sharing function, especially for some sensitive web pages, extend the time of Web page loading on the one hand, then easily mislead netizen on the other hand and improper operation is performed to it.
For the website in correlation technique with sharing function when Web page loading, cause all webpages loaded all with the problem of sharing function, not yet propose effective solution at present.
Summary of the invention
Fundamental purpose of the present invention is loading method and the device of the sharing function providing a kind of webpage, to solve in correlation technique the website with sharing function when Web page loading, causes all webpages loaded all with the problem of sharing function.
To achieve these goals, according to an aspect of the present invention, a kind of loading method of sharing function of webpage is provided.The method comprises: the matching parameter obtaining webpage, and above-mentioned webpage is the content pages with sharing function; Judge whether the matching parameter of above-mentioned webpage meets the matched rule preset, and the above-mentioned matched rule preset is used to specify the page not needing to load sharing function; And if judge that the matching parameter of above-mentioned webpage does not meet the above-mentioned matched rule preset, be then that the webpage corresponding with the matching parameter of above-mentioned webpage loads sharing function.
Further, after judging whether the matching parameter of above-mentioned webpage meets the matched rule preset, above-mentioned loading method also comprises: if judge that the matching parameter of above-mentioned webpage meets the above-mentioned matched rule preset, then forbid for the webpage corresponding with the matching parameter of above-mentioned webpage loads sharing function.
Further, the above-mentioned matched rule preset comprises one or more of coupling entry, judges whether the matching parameter of above-mentioned webpage meets the matched rule preset and comprise: the matching parameter of above-mentioned webpage mated one by one with above-mentioned one or more of entry of mating; And judge whether the matching parameter of above-mentioned webpage matches with above-mentioned one or more of arbitrary coupling entry of mating in entry, wherein, if judge that the matching parameter of above-mentioned webpage matches with above-mentioned one or more of arbitrary coupling entry of mating in entry, then perform and forbid for the webpage corresponding with the matching parameter of above-mentioned webpage loads the step of sharing function.
Further, the above-mentioned matched rule preset is determined in the following manner: obtain the above-mentioned path not needing the page loading sharing function; And determine the above-mentioned matched rule preset according to the above-mentioned path of the page loading sharing function that do not need.
Further, not needing after the path of the page loading sharing function determines the above-mentioned matched rule preset according to above-mentioned, determine that the mode of the above-mentioned matched rule preset also comprises: under the above-mentioned matched rule preset is kept at the root directory of user website, above-mentioned user website is the website with sharing function, and the webpage corresponding with the matching parameter of above-mentioned webpage is the webpage on above-mentioned user website.
To achieve these goals, according to a further aspect in the invention, a kind of charger of sharing function of webpage is provided.This device comprises: acquiring unit, and for obtaining the matching parameter of webpage, above-mentioned webpage is the content pages with sharing function; Judging unit, for judging whether the matching parameter of above-mentioned webpage meets the matched rule preset, and the above-mentioned matched rule preset is used to specify the page not needing to load sharing function; And loading unit, for when judging that the matching parameter of above-mentioned webpage does not meet the above-mentioned matched rule preset, for the webpage corresponding with the matching parameter of above-mentioned webpage loads sharing function.
Further, above-mentioned charger also comprises: forbid loading unit, for after judging whether the matching parameter of above-mentioned webpage meets the matched rule preset, and when judging that the matching parameter of above-mentioned webpage meets the above-mentioned matched rule preset, forbid for the webpage corresponding with the matching parameter of above-mentioned webpage loads sharing function.
Further, the above-mentioned matched rule preset comprises one or more of coupling entry, and above-mentioned judging unit comprises: matching module, for the matching parameter of above-mentioned webpage being mated one by one with above-mentioned one or more of entry of mating; And judge module, for judging whether the matching parameter of above-mentioned webpage matches with above-mentioned one or more of arbitrary coupling entry of mating in entry, wherein, if judge that the matching parameter of above-mentioned webpage matches with above-mentioned one or more of arbitrary coupling entry of mating in entry, then perform above-mentioned function of forbidding loading unit.
Further, above-mentioned charger also comprises: determining unit, for determining the above-mentioned matched rule preset, and has: acquisition module, for obtaining the above-mentioned path not needing the page loading sharing function; And determination module, for determining the above-mentioned matched rule preset according to the above-mentioned path of the page loading sharing function that do not need.
Further, above-mentioned determining unit also has: preserve module, for not needing after the path of the page loading sharing function determines the above-mentioned matched rule preset according to above-mentioned, under the above-mentioned matched rule preset is kept at the root directory of user website, above-mentioned user website is the website with sharing function, and the webpage corresponding with the matching parameter of above-mentioned webpage is the webpage on above-mentioned user website.
By the present invention, adopt the matching parameter obtaining webpage, webpage is the content pages with sharing function; Judge whether the matching parameter of webpage meets the matched rule preset, and the matched rule preset is used to specify the page not needing to load sharing function; And if the matching parameter judging webpage does not meet the matched rule preset, be then that the webpage corresponding with the matching parameter of webpage loads sharing function, solve in correlation technique there is sharing function website when Web page loading, cause all webpages loaded all with the problem of sharing function, and then reach and filter out by matching condition the page that do not need to load sharing function and only for needing the page loading sharing function to load the effect of sharing function.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the loading method of the sharing function of webpage according to the embodiment of the present invention; And
Fig. 2 is the schematic diagram of the charger of the sharing function of webpage according to the embodiment of the present invention.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
The application's scheme is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only the embodiment of the application's part, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
It should be noted that, term " first ", " second " etc. in the instructions of the application and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged, in the appropriate case so that the embodiment of the application described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, such as, contain those steps or unit that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly list, but can comprise clearly do not list or for intrinsic other step of these processes, method, product or equipment or unit.
According to embodiments of the invention, provide a kind of loading method of sharing function of webpage.The loading method of the sharing function of this webpage may operate on computer-processing equipment.
Fig. 1 is the process flow diagram of the loading method of the sharing function of webpage according to the embodiment of the present invention.As shown in Figure 1, the method comprises following step S102 to step S106:
Step S102, obtains the matching parameter of webpage.
Webpage is the content pages with sharing function, and for being provided with the webpage on sharing function user website, this is because webpage is here by with the addition of one section of content pages generated for the page template describing the front-end code of sharing function.Whether include in the matching parameter of webpage is the information that this webpage loads sharing function.
During enforcement, before the matching parameter obtaining webpage, can first generate this webpage.Particularly, can first obtain the page template comprising sharing function, generate the content pages comprising sharing function, that is, this page according to the page template comprising sharing function.
Step S104, judges whether the matching parameter of webpage meets the matched rule preset.
The matched rule preset may be used for specifying the page not needing to load sharing function, under it can be kept at the root directory file of user website, such as, is kept at the configuration file in this root directory file.During enforcement, after generating each content pages according to page template, and when starting the sharing function in loading content page, first can read the above-mentioned matched rule preset from configuration file, then judge whether the matching parameter of webpage meets the matched rule preset.
Step S106 if judge that the matching parameter of webpage does not meet the matched rule preset, is then that the webpage corresponding with the matching parameter of webpage loads sharing function.
Also namely, if it fails to match, then sharing function is loaded.After having loaded sharing function, the other guide loading this webpage can be continued.Like this, the new web page of all generations, when loading sharing function, all can carry out dynamic filtration to determine whether by the matched rule preset loading sharing function.
Further, after the webpage corresponding with the matching parameter of webpage load sharing function, this loading method can also comprise: first judge whether the matching parameter of webpage meets another matched rule preset, and this another matched rule that presets is used to specify the relevant information that sharing function needs the sharing platform of the social media comprised; If judge the matched rule that the matching parameter of webpage meets another and presets, then load the relevant information of the sharing platform of social media specified by this another matched rule of presetting for the webpage corresponding with the matching parameter of webpage.
Pass through the embodiment of the present invention, because the matched rule that can preset carries out dynamic filtration to determine whether loading sharing function, therefore reach and filter out by matching condition the page that do not need to load sharing function and only for needing the page loading sharing function to load the effect of sharing function.
Preferably, in embodiments of the present invention, after step S104 judges whether the matching parameter of webpage meets the matched rule preset, this loading method can also comprise:
S2, if judge that the matching parameter of webpage meets the matched rule preset, then forbids for the webpage corresponding with the matching parameter of webpage loads sharing function.
Also namely, if the match is successful, then forbid loading sharing function, and directly return the other guide continuing to load this webpage.Like this, the new web page of all generations, when loading sharing function, all can carry out dynamic filtration to determine whether by the matched rule preset loading sharing function.
Further preferably, in embodiments of the present invention, the matched rule preset can comprise: one or more of coupling entry, and step S104 judges whether the matching parameter of webpage meets the matched rule preset and can comprise:
S4, mates with one or more of entry of mating one by one by the matching parameter of webpage; And
S6, judges whether the matching parameter of webpage matches with one or more of arbitrary coupling entry of mating in entry.
Wherein, if judge that the matching parameter of webpage matches with one or more of arbitrary coupling entry of mating in entry, then perform S2 and forbid for the webpage corresponding with the matching parameter of webpage loads the step of sharing function.
Pass through the embodiment of the present invention, because matched rule can comprise one or more of coupling entry, therefore reach and filter out by one or more matching conditions the page that do not need to load sharing function and only for needing the page loading sharing function to load the effect of sharing function.
Preferably, in embodiments of the present invention, the matched rule preset can be determined in the following manner:
S8, obtains the path not needing the page loading sharing function; And
S10, determines according to not needing the path of the page loading sharing function the matched rule preset.
First, determine the URL not needing the webpage loading sharing function in user website, such as, from url list, in inquiring user website, can not need the URL of the webpage loading sharing function accordingly; Then, formulate the matched rule preset according to URL, and in a configuration file under the matched rule preset being kept at the root directory of user website.Wherein, the data layout in this configuration file can be: numeral adds padding string again.Numeral matched rule, such as, 0 represents " comprising "; 1 represents " to start "; 2 represent " to terminate "; 3 represent " canonical coupling ".The occurrence of string representation matched rule, such as, 1@http://www.gov.cn/guowuyuan, represent coupling " starting with http://www.gov.cn/guowuyuan " URL, this part can according to user website need arrange.
During enforcement, the newly-generated webpage of user website is when loading the sharing function described by JS file that sharing website shares, first the complete URL of current web page is obtained by window.location, read JS file again (namely, configuration file) in the matched rule that presets, and use these matched rules to mate one by one to the complete URL of current web page.Each mates entry actual is a character string, like this, first character string is intercepted as two parts with@character, the numeral matched rule before@, the regular expression that@string representation is below concrete or the character string that will mate.If there is the URL that mates entry and can mate current web page, then forbids loading sharing function, directly exit JS file, continue to load current web page other guide.If the URL of current web page can be mated without any a coupling entry, then for current web page loads sharing function.
By the present invention, can be configured the need of loading sharing function webpage neatly.
Further preferably, in embodiments of the present invention, after determining according to the path of the page not needing loading sharing function the matched rule preset, determine that the mode of the matched rule preset can also comprise:
S12, under the matched rule preset being kept at the root directory of user website, user website can for having the website of sharing function, and the webpage corresponding with the matching parameter of webpage is the webpage on user website.
By the invention process, by under the root directory that the matched rule preset is saved to user website, achieve the object of the corresponding relation determined between both, and then reach the matched rule preset according to this carries out mating filtration effect to all pages on user website.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the process flow diagram of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
According to embodiments of the invention, provide a kind of charger of sharing function of webpage.It should be noted that, the loading method of the sharing function of the webpage that the embodiment of the present invention provides can be performed by the charger of the sharing function of the webpage of the embodiment of the present invention, and the charger of the sharing function of the webpage of the embodiment of the present invention also may be used for the loading method of the sharing function of the webpage performing the embodiment of the present invention.
Fig. 2 is the schematic diagram of the charger of the sharing function of webpage according to the embodiment of the present invention.As shown in Figure 2, this device comprises: acquiring unit 10, judging unit 20 and loading unit 30.
Acquiring unit 10 is for obtaining the matching parameter of webpage.
Webpage is the content pages with sharing function, and for being provided with the webpage on sharing function user website, this is because webpage is here by with the addition of one section of content pages generated for the page template describing the front-end code of sharing function.Whether include in the matching parameter of webpage is the information that this webpage loads sharing function.
During enforcement, before the matching parameter obtaining webpage, can first generate this webpage.Particularly, can first obtain the page template comprising sharing function, generate the content pages comprising sharing function, that is, this page according to the page template comprising sharing function.
Judging unit 20 is for judging whether the matching parameter of webpage meets the matched rule preset.
The matched rule preset may be used for specifying the page not needing to load sharing function, under it can be kept at the root directory file of user website, such as, is kept at the configuration file in this root directory file.During enforcement, after generating each content pages according to page template, and when starting the sharing function in loading content page, first can read the above-mentioned matched rule preset from configuration file, then judge whether the matching parameter of webpage meets the matched rule preset.
Loading unit 30 for when the matching parameter judging webpage does not meet the matched rule preset, for the webpage corresponding with the matching parameter of webpage loads sharing function.
Also namely, if it fails to match, then sharing function is loaded.After having loaded sharing function, the other guide loading this webpage can be continued.Like this, the new web page of all generations, when loading sharing function, all can carry out dynamic filtration to determine whether by the matched rule preset loading sharing function.
Further, after the webpage corresponding with the matching parameter of webpage load sharing function, this loading method can also comprise: first judge whether the matching parameter of webpage meets another matched rule preset, and this another matched rule that presets is used to specify the relevant information that sharing function needs the sharing platform of the social media comprised; If judge the matched rule that the matching parameter of webpage meets another and presets, then load the relevant information of the sharing platform of social media specified by this another matched rule of presetting for the webpage corresponding with the matching parameter of webpage.
Pass through the embodiment of the present invention, because the matched rule that can preset carries out dynamic filtration to determine whether loading sharing function, therefore reach and filter out by matching condition the page that do not need to load sharing function and only for needing the page loading sharing function to load the effect of sharing function.
Preferably, in embodiments of the present invention, this charger can also comprise: forbid loading unit.Forbid that loading unit is for after judging whether the matching parameter of webpage meets the matched rule preset, and when judging that the matching parameter of webpage meets the matched rule preset, forbid for the webpage corresponding with the matching parameter of webpage loads sharing function.
Also namely, if the match is successful, then forbid loading sharing function, and directly return the other guide continuing to load this webpage.Like this, the new web page of all generations, when loading sharing function, all can carry out dynamic filtration to determine whether by the matched rule preset loading sharing function.
Further preferably, in embodiments of the present invention, the matched rule preset comprises one or more of coupling entry, and judging unit can comprise: matching module and judge module.Matching module is used for the matching parameter of webpage to mate one by one with one or more of entry of mating; And judge module is for judging whether the matching parameter of webpage matches with one or more of arbitrary coupling entry of mating in entry, wherein, if judge that the matching parameter of webpage matches with one or more of arbitrary coupling entry of mating in entry, then perform the function of forbidding loading unit.
Pass through the embodiment of the present invention, because matched rule can comprise one or more of coupling entry, therefore reach and filter out by one or more matching conditions the page that do not need to load sharing function and only for needing the page loading sharing function to load the effect of sharing function.
Preferably, in embodiments of the present invention, this charger can also comprise: determining unit.Determining unit is for determining the matched rule preset, and it has: acquisition module and determination module.Acquisition module does not need the path of the page loading sharing function for obtaining; And determination module is used for according to not needing the path of the page loading sharing function to determine the matched rule preset.
First, determine the URL not needing the webpage loading sharing function in user website, such as, from url list, in inquiring user website, can not need the URL of the webpage loading sharing function accordingly; Then, formulate the matched rule preset according to URL, and in a configuration file under the matched rule preset being kept at the root directory of user website.Wherein, the data layout in this configuration file can be: numeral adds padding string again.Numeral matched rule, such as, 0 represents " comprising "; 1 represents " to start "; 2 represent " to terminate "; 3 represent " canonical coupling ".The occurrence of string representation matched rule, such as, 1@http://www.gov.cn/guowuyuan, represent coupling " starting with http://www.gov.cn/guowuyuan " URL, this part can according to user website need arrange.
During enforcement, the newly-generated webpage of user website is when loading the sharing function described by JS file that sharing website shares, first the complete URL of current web page is obtained by window.location, read JS file again (namely, configuration file) in the matched rule that presets, and use these matched rules to mate one by one to the complete URL of current web page.Each mates entry actual is a character string, like this, first character string is intercepted as two parts with@character, the numeral matched rule before@, the regular expression that@string representation is below concrete or the character string that will mate.If there is the URL that mates entry and can mate current web page, then forbids loading sharing function, directly exit JS file, continue to load current web page other guide.If the URL of current web page can be mated without any a coupling entry, then for current web page loads sharing function.
By the present invention, can be configured the need of loading sharing function webpage neatly.
Further preferably, in embodiments of the present invention, determining unit can also have: preserve module.Preserving module is used for after determining according to the path of the page not needing loading sharing function the matched rule preset, under the matched rule preset being kept at the root directory of user website, user website is the website with sharing function, and the webpage corresponding with the matching parameter of webpage is the webpage on user website.
By the invention process, by under the root directory that the matched rule preset is saved to user website, achieve the object of the corresponding relation determined between both, and then reach the matched rule preset according to this carries out mating filtration effect to all pages on user website.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a loading method for the sharing function of webpage, is characterized in that, comprising:
Obtain the matching parameter of webpage, described webpage is the content pages with sharing function;
Judge that whether the matching parameter of described webpage meets the matched rule preset, described in the matched rule that presets be used to specify the page not needing to load sharing function; And
If the matched rule preset described in the matching parameter judging described webpage does not meet is then that the webpage corresponding with the matching parameter of described webpage loads sharing function.
2. the loading method of the sharing function of webpage according to claim 1, is characterized in that, after judging whether the matching parameter of described webpage meets the matched rule preset, described loading method also comprises:
If judge the matching parameter of described webpage meet described in the matched rule that presets, then forbid for the webpage corresponding with the matching parameter of described webpage loads sharing function.
3. the loading method of the sharing function of webpage according to claim 2, is characterized in that, described in the matched rule that presets comprise one or more of coupling entry, judge whether the matching parameter of described webpage meets the matched rule preset and comprise:
The matching parameter of described webpage is mated one by one with described one or more of entry of mating; And
Judge whether the matching parameter of described webpage matches with described one or more of arbitrary coupling entry of mating in entry,
Wherein, if judge that the matching parameter of described webpage matches with described one or more of arbitrary coupling entry of mating in entry, then perform and forbid for the webpage corresponding with the matching parameter of described webpage loads the step of sharing function.
4. the loading method of the sharing function of webpage according to any one of claim 1 to 3, is characterized in that, the matched rule preset described in determining in the following manner:
The path of the page loading sharing function is not needed described in acquisition; And
According to described do not need the path of the page loading sharing function determine described in the matched rule that presets.
5. the loading method of the sharing function of webpage according to claim 4, it is characterized in that, according to described do not need the path of the page loading sharing function determine described in after the matched rule that presets, the mode of the matched rule preset described in determining also comprises:
Under the described matched rule preset is kept at the root directory of user website, described user website is the website with sharing function, and the webpage corresponding with the matching parameter of described webpage is the webpage on described user website.
6. a charger for the sharing function of webpage, is characterized in that, comprising:
Acquiring unit, for obtaining the matching parameter of webpage, described webpage is the content pages with sharing function;
Judging unit, for judging that whether the matching parameter of described webpage meets the matched rule preset, described in the matched rule that presets be used to specify the page not needing to load sharing function; And
Loading unit, for preset described in not meeting in the matching parameter judging described webpage matched rule time, for the webpage corresponding with the matching parameter of described webpage loads sharing function.
7. the charger of the sharing function of webpage according to claim 6, is characterized in that, described charger also comprises:
Forbid loading unit, for after judging whether the matching parameter of described webpage meets the matched rule preset, and judge the matching parameter of described webpage meet described in preset matched rule time, forbid for the webpage corresponding with the matching parameter of described webpage loads sharing function.
8. the charger of the sharing function of webpage according to claim 7, is characterized in that, described in the matched rule that presets comprise one or more of coupling entry, described judging unit comprises:
Matching module, for mating the matching parameter of described webpage one by one with described one or more of entry of mating; And
Judge module, for judging whether the matching parameter of described webpage matches with described one or more of arbitrary coupling entry of mating in entry,
Wherein, if judge that the matching parameter of described webpage matches with described one or more of arbitrary coupling entry of mating in entry, then forbid the function of loading unit described in performing.
9. the charger of the sharing function of the webpage according to any one of claim 6 to 8, is characterized in that, described charger also comprises: determining unit, for the matched rule preset described in determining, and has:
Acquisition module, for not needing the path of the page loading sharing function described in obtaining; And
Determination module, for according to described do not need the path of the page loading sharing function determine described in the matched rule that presets.
10. the charger of the sharing function of webpage according to claim 9, is characterized in that, described determining unit also has:
Preserve module, for according to described do not need the path of the page loading sharing function determine described in after the matched rule that presets, under the described matched rule preset is kept at the root directory of user website, described user website is the website with sharing function, and the webpage corresponding with the matching parameter of described webpage is the webpage on described user website.
CN201410758651.7A 2014-12-10 2014-12-10 Device and method for loading share function of webpage Pending CN104462398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410758651.7A CN104462398A (en) 2014-12-10 2014-12-10 Device and method for loading share function of webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410758651.7A CN104462398A (en) 2014-12-10 2014-12-10 Device and method for loading share function of webpage

Publications (1)

Publication Number Publication Date
CN104462398A true CN104462398A (en) 2015-03-25

Family

ID=52908433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410758651.7A Pending CN104462398A (en) 2014-12-10 2014-12-10 Device and method for loading share function of webpage

Country Status (1)

Country Link
CN (1) CN104462398A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094226A1 (en) * 2007-10-09 2009-04-09 O2Micro Inc Apparatus and methods for performing a rule matching
CN102045885A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Content shared spreading method, equipment and system
CN104021172A (en) * 2014-05-30 2014-09-03 北京搜狗科技发展有限公司 Advertisement filtering method and advertisement filtering device
CN104035984A (en) * 2014-05-29 2014-09-10 北京奇虎科技有限公司 Method for blocking popup windows in browser and device for blocking popup windows
CN104156401A (en) * 2014-07-22 2014-11-19 小米科技有限责任公司 Webpage loading method, device and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090094226A1 (en) * 2007-10-09 2009-04-09 O2Micro Inc Apparatus and methods for performing a rule matching
CN102045885A (en) * 2009-10-22 2011-05-04 华为技术有限公司 Content shared spreading method, equipment and system
CN104035984A (en) * 2014-05-29 2014-09-10 北京奇虎科技有限公司 Method for blocking popup windows in browser and device for blocking popup windows
CN104021172A (en) * 2014-05-30 2014-09-03 北京搜狗科技发展有限公司 Advertisement filtering method and advertisement filtering device
CN104156401A (en) * 2014-07-22 2014-11-19 小米科技有限责任公司 Webpage loading method, device and equipment

Similar Documents

Publication Publication Date Title
CN109862018B (en) Anti-crawler method and system based on user access behavior
US20200110904A1 (en) Method and system for providing data privacy based on customized cookie consent
CN104184832B (en) Data submission method and device in network application
CN103810184B (en) Determine method, optimization method and its device of Website page address rate flow
CN107592288B (en) Method, intelligent gateway and system for multi-terminal fast login of website
CN109743315A (en) For Activity recognition method, apparatus, equipment and the readable storage medium storing program for executing of website
CN106874253A (en) Recognize the method and device of sensitive information
CN103401849B (en) Abnormal session analyzing method for website logs
CN103227786A (en) Method and device for filling in website login information
US9479505B2 (en) Controlling access to a website
CN107688733B (en) Service interface calling method, device, user terminal and readable storage medium
CN105302815B (en) The filter method and device of the uniform resource position mark URL of webpage
CN110245953B (en) Information verification method, information verification device and electronic equipment
CN105812353B (en) Terminal identification method and device
CN102185830B (en) A kind of method and system of security filtration of network television browser
US20160092964A1 (en) Electronic-Shopping Method and Apparatus
CN104461634B (en) The loading method and device of sharing module on webpage
CN104615639A (en) Method and equipment for providing showing information of picture
CN107908950B (en) Electronic insurance policy generation method and device
CN104618364A (en) Information processing method, electronic device and server
CN103269370A (en) Display method, client terminal, server and system for extending and recommending browser
CN104050204A (en) Method of combining network data and mobile device using the same
CN102314498B (en) Method and equipment for implementing main identification of page
CN104462398A (en) Device and method for loading share function of webpage
CN106209579A (en) Barrage website chat process quickly generates the system and method for hyperlink

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325

RJ01 Rejection of invention patent application after publication