CN108073631A - A kind of method and device for preventing advertisement page from changing - Google Patents

A kind of method and device for preventing advertisement page from changing Download PDF

Info

Publication number
CN108073631A
CN108073631A CN201611010210.4A CN201611010210A CN108073631A CN 108073631 A CN108073631 A CN 108073631A CN 201611010210 A CN201611010210 A CN 201611010210A CN 108073631 A CN108073631 A CN 108073631A
Authority
CN
China
Prior art keywords
content
page
advertisement page
detected
advertisement
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
CN201611010210.4A
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.)
Founder International Beijing Co Ltd
Original Assignee
Founder International Beijing 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 Founder International Beijing Co Ltd filed Critical Founder International Beijing Co Ltd
Priority to CN201611010210.4A priority Critical patent/CN108073631A/en
Publication of CN108073631A publication Critical patent/CN108073631A/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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

An embodiment of the present invention provides it is a kind of prevent advertisement page change method and device, to solve the problems, such as it is in the prior art cannot prevent advertisement page from changing, including:Determine detection element;Obtain the corresponding first page content of detection element of advertisement page to be detected;Obtain the corresponding corresponding second page content of detection element for closing rule advertisement page of advertisement page to be detected;Determine whether first page content is identical with second page content;If differing, advertisement page to be detected is shielded.Second page content is to close the content detected in rule advertisement page corresponding to element, if have difference in first page content and second page, changed with regard to illustrating that advertisement page to be detected relatively closes rule content of pages, pass through contrasting detection element, just these advertisement pages changed can be found and shielded in time, so as to solve the problem of that advertisement page is changed but can not found in time.

Description

A kind of method and device for preventing advertisement page from changing
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and devices for preventing advertisement page from changing.
Background technology
Recent years, advertisement confusion are grown wild, and dysgenic advertisement is even more to emerge in an endless stream, and has mirrored the eyes of people, and then People’s lives are influenced, with sound, reinforcement of the government to the hitting dynamics of harmful effect advertisement of state's laws policy, but It is that this series advertisements is not withered away thoroughly, but is fought in different parts by the public visual field and further endanger people’s lives for hidden mode, One of which is change advertisement landing page content, i.e., landing page content is benign, healthy in ad review, but wide After accusing cloth, landing page content is changed, and becomes undesirable, unsound content, how to prevent such thing hair It is raw, at present still without a kind of good method.
The content of the invention
The present invention provide it is a kind of prevent advertisement page change method and device, to solve it is in the prior art not The problem of preventing advertisement page from changing.
The embodiment of the present invention provides a kind of method for preventing advertisement page from changing, including:
Determine detection element;
Obtain the corresponding first page content of detection element of advertisement page to be detected;
Obtain the corresponding corresponding second page content of detection element for closing rule advertisement page of advertisement page to be detected;
Determine whether first page content is identical with second page content;
If differing, advertisement page to be detected is shielded.
Optionally, further include:
If first page content is identical with second page content, detection element is reset, and it is to be detected to return to acquisition The step of detection element of advertisement page corresponding first page content, until first page content and second page content not phase Each element of advertisement page same or to be detected, which compares, to be finished.
Optionally, including:
Each element of advertisement page to be detected includes word content, image content and video content;
Detection element is set successively according to word content, image content and video content.
Optionally, detection element is set successively according to word content, image content and video content, including:
The word content of advertisement page to be detected is obtained, by the word content of advertisement page to be detected and closes rule advertisement page Word content be compared;
If word content is identical, the image content of advertisement page to be detected is obtained, by the picture of advertisement page to be detected The image content of content and conjunction rule advertisement page is compared;
If image content is identical, the video content of advertisement page to be detected is obtained, by the video of advertisement page to be detected The video content of content and conjunction rule advertisement page is compared.
Optionally, it is video content to detect element, and the corresponding content of pages of video content is image sectional drawing;
Determine whether first page content is identical with second page content, including:
Video intercepting according to setting is regular, intercepts each first image sectional drawing of the video content of advertisement page to be detected;
According to the video intercepting rule of setting, each second image sectional drawing of the video content of rule advertisement page is closed in interception;
According to the video intercepting rule of setting, each each second image sectional drawing of first image sectional drawing is compared.
The embodiment of the present invention provides a kind of device for preventing advertisement page from changing, including:
Determining module, for determining detection element;
Module is crawled, for obtaining the corresponding first page content of the detection element of advertisement page to be detected;
Acquisition module, for obtaining the corresponding detection element corresponding second for closing rule advertisement page of advertisement page to be detected Content of pages;
Judgment module, for determining whether first page content is identical with second page content;
Processing module, for when first page content is differed with second page content, shielding advertisement page to be detected.
Optionally, further include:
Loop module for when first page content is identical with second page content, resetting detection element, and is returned The step of returning the detection element corresponding first page content for obtaining advertisement page to be detected, until first page content and second Content of pages differs or each element of advertisement page to be detected compares and finishes.
Optionally, including:
Determining module, for setting detection element successively according to word content, image content and video content.
Optionally, including:
Module is crawled, for obtaining the word content of advertisement page to be detected;
Acquisition module, for obtaining the word content for closing rule advertisement page;
Judgment module, for the word content of the word content of advertisement page to be detected and conjunction rule advertisement page to be compared Compared with;
Loop module, for when word content is identical, control to crawl the image content that module obtains detection advertisement page, Acquisition module is controlled to obtain the image content for closing rule advertisement page, controls judgment module by the image content of advertisement page to be detected It is compared with the image content for closing rule advertisement page;
Loop module, for when image content is identical, control to crawl module and obtains in the video of advertisement page to be detected Appearance, control acquisition module obtain the video content for closing rule advertisement page, control judgment module by the video of advertisement page to be detected The video content of content and conjunction rule advertisement page is compared.
Optionally, including:
Crawl module, for according to setting video intercepting rule, intercept advertisement page to be detected video content it is each First image sectional drawing;
Acquisition module, for according to the video intercepting of setting rule, each the of the video content of rule advertisement page to be closed in interception Two image sectional drawings;
Judgment module, for according to the video intercepting of setting rule, comparing each each second image sectional drawing of first image sectional drawing.
In conclusion an embodiment of the present invention provides it is a kind of prevent advertisement page change method and device, including:It determines Detect element;Obtain the corresponding first page content of detection element of advertisement page to be detected;Obtain the advertising page to be detected The corresponding corresponding second page content of detection element for closing rule advertisement page in face;Determine the first page content and described the Whether two content of pages are identical;If differing, the advertisement page to be detected is shielded.Second page content is to close rule advertising page The content corresponding to element is detected in face, if having difference in first page content and second page, is just illustrated to be detected wide It accuses the page and relatively closes rule content of pages and is changed, by contrasting detection element, just can find and shield these to repair in time The advertisement page changed, so as to solve the problem of that advertisement page is changed but can not found in time.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of method flow schematic diagram for preventing advertisement page from changing provided in an embodiment of the present invention;
Fig. 2 is a kind of advertisement page overhaul flow chart provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram for preventing advertisement page from changing provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical solutions and advantages of the present invention clearer, the present invention is made below in conjunction with attached drawing into It is described in detail to one step, it is clear that described embodiment is only the implementation of a part of embodiment of the present invention rather than whole Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without making creative work All other embodiment, belongs to the scope of protection of the invention.
Fig. 1 is a kind of method flow schematic diagram for preventing advertisement page from changing provided in an embodiment of the present invention, such as Fig. 1 institutes Show, comprise the following steps:
S101:Determine detection element;
S102:Obtain the corresponding first page content of detection element of advertisement page to be detected;
S103:It obtains in the corresponding corresponding second page of detection element for closing rule advertisement page of advertisement page to be detected Hold;
S104:Determine whether first page content is identical with second page content;
S105:If differing, advertisement page to be detected is shielded.
In specific implementation process, the advertisement that the signified advertisement webpage of the present invention refers to directly accessing by internet is landed Page, i.e., the webpage that point opens that the advertisement link in webpage occurs is the signified advertisement webpage of the present invention, optionally, if being climbed with webpage Technology is taken to be combined, the present invention can also solve the problems, such as the anti-modification of ad landing page subordinate webpage.
In the specific implementation process of step S101, determine that detection element generally refers to determine to need the content detected, For example word, picture, video, audio etc. belong to detection element, optionally, when determining detection element, first determine more simple Single element is as detection element, this is because illustrating that advertisement page has been changed as long as being changed there are one element Without detecting other elements again, select simple element that can improve detection efficiency as detection element
In the specific implementation process of step S102, the corresponding first page of detection element of advertisement page to be detected is obtained Content, first page content refers to herein when accessing advertisement page, content that advertisement page is carved when accessed, as word, Picture, video etc..Generally, the hypertext markup language (HyperText Markup Language, HTML) of advertisement page is passed through File obtains the content of pages of advertisement page.Picture, the chain of this advertisement page are contained in the html file of advertisement page It connects or even the non-legible element such as music, video, program, it, can be according to following when obtaining the first page content of each element It needs to be used to compare the element type for detecting advertisement page, selectively obtains target from the html file of advertisement page The first page content of element.Optionally, different according to the type of each element, acquisition modes are also otherwise varied, for example, for text Word element can be obtained directly from html file, can be from the hyperlink in html file for picture or video content Middle acquisition.Optionally, for each element first page content acquisition, can also be directly from html file by all elements First page content all extraction and then select the corresponding first page contents of detection element of setting, it is optional Ground, in addition to word element can be extracted directly from html file, other elements are all by each tag queries in HTML, and one As can directly react the labels of web page contents and be<img>、<object>、<video>、<audio>、<embed>、<script> With<applet>This seven kinds of labels, it is more that they contain picture, video, audio, webpage (Flash) animation, the program of webpage etc. Kind content.Optionally, when detection element is video content, the corresponding content of pages of video content is image sectional drawing.It is regarded in acquisition During the corresponding first page content of frequency content, according to the video intercepting rule of setting, in the video for intercepting advertisement page to be detected Each first image sectional drawing held.Video content element, since it is with continuity, is more difficult to examine for other elements Whether survey changes, and according to the video intercepting rule of setting, intercepts each the of the video content of the advertisement page to be detected One image sectional drawing for example, interception rule is since video, cut every 1 second and once schemes.Acquisition for video class content is Obtain its video interception by interception rule interception.
In the specific implementation process of step S103, the corresponding rule advertisement page that closes of advertisement page to be detected refers specifically to When issuing an advertisement link, ad content that can be first corresponding to this link is audited for website, only when this is wide Accusing just can be by website orientation when content of pages meets state's laws regulation, and advertisement page at this time is the advertisement page for closing rule, That is, closing rule advertisement page refers to advertisement page to be detected before issue in issued website review and page when passing through Hold, if the content of advertisement page to be detected difference occurs with the content for closing rule advertisement page, just illustrate this advertisement to be detected The page is changed.Determine it is described close after rule page examination & verification passes through, by crawling program pair, advertisement page to be detected it is each The corresponding second page content of class element, second page content here refer in conjunction rule advertisement page, and each element corresponds to Content.The corresponding element type of second page content of extraction should be detection element, so can just realize and first The comparison function of the page.Optionally, just advised before the advertisement is published from conjunction in advertisement page and obtain all elements corresponding second Content of pages simultaneously stores, and when being detected to advertisement page to be detected, inspection is extracted from storage according to detection element type Survey the corresponding second page content of element.Optionally, the corresponding second page content of each element is handled using Hash (Hash), It is converted into the form storage of Hash codes.Optionally, advised from conjunction in each element extracted in advertisement page and include video content, depending on The acquisition rule of the second page content of frequency content element is consistent with the first page content of video class element, for example, the first rule Then can simply intercept first sectional drawing of video, to reduce processing data, detection video whether be replaced or according to Since video, primary video sectional drawing was intercepted every 1 second, intercepts rule unanimously, first page content and second page content It is significant to Bizet, to prevent from being changed among video.
, it is necessary to first page content and second page to the detection element of extraction in the specific implementation process of step S104 Face content is compared.Optionally, first page content is converted into after the form of Hash codes, is using Hash processing The second page contents processing of Hash code forms.For each source code after Hash processing conversions, the Hash codes of generation are only one It without two, is stored in the form of Hash codes, it is possible to reduce the consumption of memory space is carried out in the form of Hash codes pair Than that can simplify comparison process, improve to specific efficiency.Optionally, when it is video element to detect element, corresponding video content will The first page content of element and second page content compare sectional drawing content, if having one successively according to the interception order of video interception It is a to be changed, then it is assumed that this video content is changed.
In the specific implementation process of step S105, advertisement page to be detected is shielded mainly by shielding advertisement to be detected What the address of the page was realized so that when user, which clicks on advertisement, logs in link, cannot be introduced into advertisement login page.Optionally, it is right In the shielded advertisement page by detection, retain it and detect data as evidence, for example, the picture of advertisement page to be detected Content is changed compared with the image content for closing rule advertisement page, then the image content data for retaining this advertisement page to be detected are used Make the evidence in subsequent processes.
Optionally, if the first page content is identical with the second page content, detection element is reset, and The step of returning to the detection element corresponding first page content for obtaining advertisement page to be detected, until the first page content With the second page content differ or each element of the advertisement page to be detected compared with finish.One webpage contains Multiple elements, it is relatively low only to compare the credible result degree that a kind of element obtains, therefore need to set multiple elements to be detected, is set to successively Detection element is detected, if wherein there are one changed, then it is assumed that advertisement page is changed.Optionally, it is described to be checked Surveying the element to be detected of advertisement page includes word content, image content and video content;The detection element is according in word Hold, image content and video content are set successively.Its specific comparison procedure is:The word content of advertisement page to be detected is obtained, The word content of advertisement page to be detected and the word content for closing rule advertisement page are compared;If word content is identical, The image content of advertisement page to be detected is obtained, by the image content of advertisement page to be detected and is closed in the picture for advising advertisement page Appearance is compared;If image content is identical, the video content of advertisement page to be detected is obtained, by regarding for advertisement page to be detected The video content of frequency content and conjunction rule advertisement page is compared.This is because corresponding picture and video content, word content It easily compares, if word content is changed, just no longer needs to carry out the comparison of image content and video content, phase people having a common goal Reason, image content is easier to compare than video content, if image content is changed, also is not needing to carry out video content Comparison, i.e. the first page content of elementary factor and second page content are first compared, in the first page of the complicated element of comparison Hold and second page content.Optionally, after word content, image content and video content these three elements have been detected, continue This element of detection script, this is because, the illegal script in webpage may dynamically change other elements.It will for script Element extracts the first page content of script element, the second page with the script element of legal advertisement page from webpage to be detected Face content comparison, if the corresponding content of pages of script element is changed, illustrates that advertisement page is changed.
Optionally, detected for not sending the advertisement page still hold period of modification after detection.Optionally, periodically obtain The corresponding first page content of all kinds of elements of advertisement page to be detected is taken, cycle duration is determined by practical situations.It obtains After the corresponding first page content of all kinds of elements, aforementioned process is repeated, even if to ensure that advertisement page to be detected is being detected It can not illegal modifications advertisement page after qualified.It optionally, can be appropriate for the higher advertisement page provider of confidence level Extend detection cycle duration, for the relatively low advertisement page provider of confidence level, can suitably shorten detection cycle duration.Pass through Periodically setting is added in, can achieve the purpose that intercept automatically, automatic comparison, the bad advertisement page of automatic shield.
Fig. 2 is a kind of advertisement page overhaul flow chart provided in an embodiment of the present invention, as shown in Fig. 2, comprising the following steps:
S201:Access advertisement page to be detected;
S202:Obtain advertisement page word content to be detected;
S203:It obtains the word content for closing rule advertisement page and compares with the word content of advertisement page to be detected, sentence It is both disconnected whether consistent;If so, step S204 is performed, if it is not, then performing step S211;
S204:Obtain advertisement page image content to be detected;
S205:It obtains the image content for closing rule advertisement page and compares with the image content of advertisement page to be detected, sentence It is both disconnected whether consistent;If so, step S206 is performed, if it is not, then performing step S211;
S206:Obtain advertisement page video content to be detected;
S207:It obtains the video content for closing rule advertisement page and compares with the video content of advertisement page to be detected, sentence It is both disconnected whether consistent;If so, step S208 is performed, if it is not, then performing step S211;
S208:Obtain advertisement page content for script to be detected;
S209:It obtains the content for script for closing rule advertisement page and compares with the content for script of advertisement page to be detected, sentence It is both disconnected whether consistent;If so, step S210 is performed, if it is not, then performing step S211
S210:Obtain the result that the page is not changed;
S211:Shield advertisement page to be detected.
Word, picture and video can largely reflect the content of pages of advertisement page to be detected, by compare this three Kind both can judge whether advertisement page to be detected is changed on the whole.
In conclusion an embodiment of the present invention provides it is a kind of prevent advertisement page change method, including:Determine that detection will Element;Obtain the corresponding first page content of detection element of advertisement page to be detected;The advertisement page to be detected is obtained to correspond to Conjunction rule advertisement page the corresponding second page content of detection element;Determine the first page content and the second page Whether content is identical;If differing, the advertisement page to be detected is shielded.Second page content is to close to examine in rule advertisement page The content corresponding to element is surveyed, if having difference in first page content and second page, just illustrates advertisement page to be detected Changed compared with rule content of pages is closed, by contrasting detection element, just can find in time and shield these change it is wide The page is accused, so as to solve the problem of that advertisement page is changed but can not found in time.
Based on identical technical concept, the embodiment of the present invention also provides a kind of device for preventing advertisement page from changing, the dress Put executable above method embodiment.Fig. 3 is a kind of apparatus structure for preventing advertisement page from changing provided in an embodiment of the present invention Schematic diagram, as shown in figure 3, device 300 includes:Determining module 301 crawls module 302, acquisition module 303, judgment module 304 With processing module 305, wherein,
Determining module 301, for determining detection element;
Module 302 is crawled, for obtaining the corresponding first page content of the detection element of advertisement page to be detected;
Acquisition module 303, it is corresponding for obtaining the detection element of the corresponding conjunction rule advertisement page of advertisement page to be detected Second page content;
Judgment module 304, for determining whether first page content is identical with second page content;
Processing module 305, for when first page content is differed with second page content, shielding advertising page to be detected Face.
Optionally, device 300 further includes:
Loop module 306, for when first page content is identical with second page content, resetting detection element, And the step of module obtains the detection element corresponding first page content of advertisement page to be detected is crawled described in returning, until institute State first page content and the second page content differ or each element of advertisement page to be detected compared with finish.
Optionally it is determined that module 301, it will for setting detection successively according to word content, image content and video content Element.
Optionally, module 302 is crawled, for obtaining the word content of advertisement page to be detected;
Acquisition module 303, for obtaining the word content for closing rule advertisement page;
Judgment module 304, for by the word content of advertisement page to be detected and close rule advertisement page word content into Row compares;
Loop module 306, for when word content is identical, control to crawl module 302 and obtains advertisement page to be detected Image content, control acquisition module 303 obtain the image content for closing rule advertisement page, and control judgment module 304 will be to be detected wide The image content accused the image content of the page and close rule advertisement page is compared;
Loop module 306, for when image content is identical, control to crawl module 302 and obtains advertisement page to be detected Video content, control acquisition module 303 obtain the video content for closing rule advertisement page, and control judgment module 304 will be to be detected wide The video content accused the video content of the page and close rule advertisement page is compared.
Optionally, module 302 is crawled, for according to the video intercepting of setting rule, intercepting regarding for advertisement page to be detected Each first image sectional drawing of frequency content;
Acquisition module 303, for according to the video intercepting of setting rule, each of the video content of rule advertisement page to be closed in interception Second image sectional drawing;
Judgment module 304, for according to the video intercepting of setting rule, comparing each each second image of first image sectional drawing and cutting Figure.
In conclusion an embodiment of the present invention provides it is a kind of prevent advertisement page change method and device, including:It determines Detect element;Obtain the corresponding first page content of detection element of advertisement page to be detected;Obtain the advertising page to be detected The corresponding corresponding second page content of detection element for closing rule advertisement page in face;Determine the first page content and described the Whether two content of pages are identical;If differing, the advertisement page to be detected is shielded.Second page content is to close rule advertising page The content corresponding to element is detected in face, if having difference in first page content and second page, is just illustrated to be detected wide It accuses the page and relatively closes rule content of pages and is changed, by contrasting detection element, just can find and shield these to repair in time The advertisement page changed, so as to solve the problem of that advertisement page is changed but can not found in time.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (10)

  1. A kind of 1. method for preventing advertisement page from changing, which is characterized in that including:
    Determine detection element;
    Obtain the corresponding first page content of detection element of advertisement page to be detected;
    Obtain the corresponding corresponding second page content of detection element for closing rule advertisement page of the advertisement page to be detected;
    Determine whether the first page content and the second page content are identical;
    If differing, the advertisement page to be detected is shielded.
  2. 2. the method as described in claim 1, which is characterized in that further include:
    If the first page content is identical with the second page content, detection element is reset, and returns to acquisition and treats The step of detecting the detection element corresponding first page content of advertisement page, until the first page content and described second Content of pages differs or each element of the advertisement page to be detected compares and finishes.
  3. 3. method as claimed in claim 2, which is characterized in that including:
    Each element of the advertisement page to be detected includes word content, image content and video content;
    The detection element is set successively according to word content, image content and video content.
  4. 4. method as claimed in claim 3, which is characterized in that the detection element according to word content, image content and regards Frequency content is set successively, including:
    The word content of the advertisement page to be detected is obtained, the word content of the advertisement page to be detected and described close are advised The word content of advertisement page is compared;
    If word content is identical, the image content of the advertisement page to be detected is obtained, by the advertisement page to be detected Image content and the image content for closing rule advertisement page are compared;
    If image content is identical, the video content of the advertisement page to be detected is obtained, by the advertisement page to be detected Video content and the video content for closing rule advertisement page are compared.
  5. 5. such as Claims 1-4 any one of them method, which is characterized in that the detection element is video content, described to regard The corresponding content of pages of frequency content is image sectional drawing;
    Determine whether the first page content and the second page content are identical, including:
    According to the video intercepting rule of setting, each first image sectional drawing of the video content of the interception advertisement page to be detected;
    According to the video intercepting rule of the setting, each second image for intercepting the video content for closing rule advertisement page is cut Figure;
    According to the video intercepting rule of the setting, each each second image sectional drawing of first image sectional drawing is compared.
  6. 6. a kind of device for preventing advertisement page from changing, which is characterized in that including:
    Determining module, for determining detection element;
    Module is crawled, for obtaining the corresponding first page content of the detection element of advertisement page to be detected;
    Acquisition module, for obtaining the corresponding detection element corresponding second for closing rule advertisement page of the advertisement page to be detected Content of pages;
    Judgment module, for determining whether the first page content and the second page content are identical;
    Processing module, for when first page content is differed with the second page content, shielding the advertisement to be detected The page.
  7. 7. device as described in claim 1, which is characterized in that further include:
    Loop module, for when the first page content is identical with the second page content, resetting detection element, And the step of returning to the detection element corresponding first page content for obtaining advertisement page to be detected, until in the first page Hold with the second page content differ or each element of the advertisement page to be detected compared with finish.
  8. 8. device as claimed in claim 7, which is characterized in that including:
    The determining module, for setting the detection element successively according to word content, image content and video content.
  9. 9. device as claimed in claim 8, which is characterized in that including:
    It is described to crawl module, for obtaining the word content of the advertisement page to be detected;
    The acquisition module, for obtaining the word content for closing rule advertisement page;
    The judgment module, for will the word content of the advertisement page to be detected and it is described close rule advertisement page word in Appearance is compared;
    The loop module obtains the detection advertisement page for when word content is identical, crawling module described in control Image content controls the acquisition module to obtain the image content for closing rule advertisement page, controls the judgment module by institute The image content and the image content for closing rule advertisement page for stating advertisement page to be detected are compared;
    The loop module obtains the advertisement page to be detected for when image content is identical, crawling module described in control Video content, the acquisition module is controlled to obtain the video content for closing rule advertisement page, controls the judgment module will The video content of the advertisement page to be detected and the video content for closing rule advertisement page are compared.
  10. 10. such as claim 6 to 9 any one of them device, which is characterized in that including:
    It is described to crawl module, for according to the video intercepting of setting rule, the video content of the interception advertisement page to be detected Each first image sectional drawing;
    The acquisition module for the video intercepting rule according to the setting, is intercepted in the video for closing rule advertisement page Each second image sectional drawing held;
    The judgment module for the video intercepting rule according to the setting, compares each each second image of first image sectional drawing Sectional drawing.
CN201611010210.4A 2016-11-16 2016-11-16 A kind of method and device for preventing advertisement page from changing Pending CN108073631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611010210.4A CN108073631A (en) 2016-11-16 2016-11-16 A kind of method and device for preventing advertisement page from changing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611010210.4A CN108073631A (en) 2016-11-16 2016-11-16 A kind of method and device for preventing advertisement page from changing

Publications (1)

Publication Number Publication Date
CN108073631A true CN108073631A (en) 2018-05-25

Family

ID=62163329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611010210.4A Pending CN108073631A (en) 2016-11-16 2016-11-16 A kind of method and device for preventing advertisement page from changing

Country Status (1)

Country Link
CN (1) CN108073631A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740094A (en) * 2018-12-27 2019-05-10 上海掌门科技有限公司 Page monitoring method, equipment and computer storage medium
CN110912918A (en) * 2019-12-02 2020-03-24 泰康保险集团股份有限公司 Page repairing method and device
CN111488540A (en) * 2019-01-29 2020-08-04 百度在线网络技术(北京)有限公司 Information shielding monitoring method, device, equipment and computer readable medium
WO2020199649A1 (en) * 2019-03-29 2020-10-08 上海幻电信息科技有限公司 Method and device for monitoring change in webpage advertisement, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102084388A (en) * 2008-06-23 2011-06-01 双重验证有限公司 Automated monitoring and verification of internet based advertising
US20140289058A1 (en) * 2013-03-22 2014-09-25 Yahoo Japan Corporation Advertisement generation apparatus and terminal device
CN104202622A (en) * 2014-09-23 2014-12-10 山东泰信电子股份有限公司 Safe advertisement broadcasting method and system
CN104394463A (en) * 2014-11-28 2015-03-04 北京国双科技有限公司 Method and device for monitoring advertising
CN105306467A (en) * 2015-10-30 2016-02-03 北京奇虎科技有限公司 Method and device for analyzing webpage data tampering

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102084388A (en) * 2008-06-23 2011-06-01 双重验证有限公司 Automated monitoring and verification of internet based advertising
US20140289058A1 (en) * 2013-03-22 2014-09-25 Yahoo Japan Corporation Advertisement generation apparatus and terminal device
CN104202622A (en) * 2014-09-23 2014-12-10 山东泰信电子股份有限公司 Safe advertisement broadcasting method and system
CN104394463A (en) * 2014-11-28 2015-03-04 北京国双科技有限公司 Method and device for monitoring advertising
CN105306467A (en) * 2015-10-30 2016-02-03 北京奇虎科技有限公司 Method and device for analyzing webpage data tampering

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740094A (en) * 2018-12-27 2019-05-10 上海掌门科技有限公司 Page monitoring method, equipment and computer storage medium
CN111488540A (en) * 2019-01-29 2020-08-04 百度在线网络技术(北京)有限公司 Information shielding monitoring method, device, equipment and computer readable medium
CN111488540B (en) * 2019-01-29 2024-04-02 百度在线网络技术(北京)有限公司 Information shielding monitoring method, device, equipment and computer readable medium
WO2020199649A1 (en) * 2019-03-29 2020-10-08 上海幻电信息科技有限公司 Method and device for monitoring change in webpage advertisement, and storage medium
US20220198513A1 (en) * 2019-03-29 2022-06-23 Shanghai Hode Information Technology Co., Ltd. Web advertisement change monitoring method, device and storage medium
US11948168B2 (en) * 2019-03-29 2024-04-02 Shanghai Hode Information Technology Co., Ltd. Web advertisement change monitoring method, device and storage medium
CN110912918A (en) * 2019-12-02 2020-03-24 泰康保险集团股份有限公司 Page repairing method and device

Similar Documents

Publication Publication Date Title
US20240121266A1 (en) Malicious script detection
US10728274B2 (en) Method and system for injecting javascript into a web page
CN108073631A (en) A kind of method and device for preventing advertisement page from changing
CN104035984B (en) Method for blocking popup windows in browser and device for blocking popup windows
CN102156832B (en) Security defect detection method for Firefox expansion
CN104143008B (en) The method and device of fishing webpage is detected based on picture match
CN102930211A (en) Method for intercepting malicious URLs in multi-kernel browser and multi-kernel browser
Wang et al. Webranz: web page randomization for better advertisement delivery and web-bot prevention
US10637881B2 (en) Javascript security testing
CN107688743A (en) The determination method and system of a kind of rogue program
CN103179125A (en) Display method of website authentication information and browser
US20170371888A1 (en) Method for advertisement interception in dual-kernel browser and browser apparatus
US20200336498A1 (en) Method and apparatus for detecting hidden link in website
CN105653949B (en) A kind of malware detection methods and device
CN102664872B (en) For detection of with the method preventing server attack in computer network
CN102999723A (en) Method and device for generating data defense assembly for actively defending XSS (Cross Site Script) attack
CN107786537A (en) A kind of lonely page implantation attack detection method based on internet intersection search
JP5499805B2 (en) Information processing apparatus, information processing system, information processing method, and information processing program
EP3745292A1 (en) Hidden link detection method and apparatus for website
Shahriar et al. Proclick: a framework for testing clickjacking attacks in web applications
Mughees et al. A first look at ad-block detection: A new arms race on the web
CN104333558B (en) A kind of network address detection method and network address detection means
CN103336693B (en) The creation method of refer chain, device and security detection equipment
CN114157568B (en) Browser secure access method, device, equipment and storage medium
CN111753302A (en) Method and device for detecting code bugs, computer readable medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180525