CN109800378A - Content processing method, device and electronic equipment based on custom browser - Google Patents

Content processing method, device and electronic equipment based on custom browser Download PDF

Info

Publication number
CN109800378A
CN109800378A CN201910062922.8A CN201910062922A CN109800378A CN 109800378 A CN109800378 A CN 109800378A CN 201910062922 A CN201910062922 A CN 201910062922A CN 109800378 A CN109800378 A CN 109800378A
Authority
CN
China
Prior art keywords
content
custom browser
link address
browser
party webpage
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
CN201910062922.8A
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910062922.8A priority Critical patent/CN109800378A/en
Publication of CN109800378A publication Critical patent/CN109800378A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A kind of content processing method based on custom browser, device and electronic equipment are provided in the embodiment of the present invention, belongs to technical field of data processing, this method comprises: obtaining the chained address of third party's webpage in pending nuclear state;By being loaded and the matched running environment in the chained address in the custom browser to being customized of custom browser processing;Simulated operation, and the load first content corresponding with the chained address after completing the simulated operation are executed in the running environment;Determine whether third party's webpage belongs to exception object based on the first content.By the processing scheme of the application, the accuracy of third party content audit is improved.

Description

Content processing method and device based on custom browser and electronic equipment
Technical Field
The invention relates to the technical field of data processing, in particular to a content processing method and device based on a custom browser and an electronic device.
Background
In recent years, with the widespread use of internet technology, there has been an increasing demand for more and more users to browse content described by a markup language such as HTML on a computer device such as a computer, a smart device, or the like. Http (hypertext Transfer protocol), hypertext Transfer protocol, is a stateless, unidirectional protocol. An HTTP request is sent to the server, which accepts the request and processes it, and sends a response back after it is completed, and the client and server need to maintain the HTTP connection during the server's processing.
Sometimes, there will be further web page links in the current web page, and clicking on the links will divert to third party web pages. Current web page operators may perform content audits in order to ensure that linked content does not violate relevant release requirements. However, third-party web providers may employ cheating in a form that is presented to the user at the time of content review by the operator, and at other times and locations, the content presented to the user becomes different and therefore benefits or benefits. It is a problem to be solved for the operators of the current applications.
Disclosure of Invention
In view of this, embodiments of the present invention provide a content processing method and apparatus based on a custom browser, and an electronic device, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present invention provides a content processing method based on a custom browser, including:
acquiring a link address of a third-party webpage in a state to be checked;
loading an operating environment matched with the link address in the custom browser by customizing the custom browser;
executing simulation operation in the running environment, and loading first content corresponding to the link address after the simulation operation is finished;
determining whether the third-party webpage belongs to an abnormal object based on the first content.
According to a specific implementation manner of the embodiment of the present invention, the acquiring a link address of a third-party webpage in a state to be audited includes:
acquiring a webpage address pointing to a third-party webpage from a current webpage;
and taking the webpage address pointing to the third-party webpage as the link address.
According to a specific implementation manner of the embodiment of the present invention, the customizing the custom browser includes:
and adding an expansion interface in the custom browser, wherein the expansion interface is used for receiving parameters related to the running environment.
According to a specific implementation manner of the embodiment of the present invention, the loading of the execution environment matched with the link address in the custom browser includes:
determining a terminal device matched with the link address;
and automatically generating simulation parameters related to the terminal equipment in the custom browser.
According to a specific implementation manner of the embodiment of the present invention, the executing the simulation operation in the runtime environment includes:
acquiring a server corresponding to the link address; and
and sending the simulation parameters to the server.
According to a specific implementation manner of the embodiment of the present invention, the executing the simulation operation in the runtime environment includes:
simulating the network access speed of a user in the operating environment; and/or
Simulating the touch interactive operation of a user on the terminal equipment in the running environment; and/or
Simulating a visual area and pixel intensity of terminal equipment used by a user in the operating environment; and/or
And simulating the detectable interface return value of the terminal equipment used by the user in the running environment.
According to a specific implementation manner of the embodiment of the present invention, the executing the simulation operation in the execution environment further includes:
expanding a changeable and authorized agent interface in the custom browser to construct preset geographical area data; and/or
Adding extension support for adding a specific HTTP header in the custom browser; and/or
Adding extension support for a specific page incoming path in the custom browser; and/or
Adding extension support for acquiring analog data such as a gyroscope, a GPS and the like in the custom browser; and/or
Adding simulation data extension support for calling a return value of a camera in the custom browser; and/or
And adding extension support for any APP incoming information in the custom browser.
According to a specific implementation manner of the embodiment of the present invention, the determining whether the third-party webpage belongs to an abnormal object based on the first content includes:
judging whether the first content has abnormal data or not;
and if so, determining the third-party webpage as an abnormal object.
According to a specific implementation manner of the embodiment of the present invention, the determining whether the third-party webpage belongs to an abnormal object based on the first content includes:
before customizing the custom browser, loading second content corresponding to the link address in the custom browser;
comparing whether the second content is identical to the first content;
and if not, determining the third-party webpage as an abnormal object.
In a second aspect, an embodiment of the present invention provides a content processing apparatus based on a custom browser, including:
the acquisition module is used for acquiring the link address of the third-party webpage in a state to be checked;
the loading module is used for loading the running environment matched with the link address in the custom browser by customizing the custom browser;
the execution module is used for executing simulation operation in the running environment and loading first content corresponding to the link address after the simulation operation is finished;
and the determining module is used for determining whether the third-party webpage belongs to an abnormal object or not based on the first content.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of custom browser based content processing in any of the preceding first aspects or any implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for processing customized browser-based content in the foregoing first aspect or any implementation manner of the first aspect.
In a fifth aspect, the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, when executed by a computer, cause the computer to execute the method for processing content based on a custom browser in the foregoing first aspect or any implementation manner of the first aspect.
The content processing scheme based on the custom browser in the embodiment of the invention comprises the steps of obtaining a link address of a third-party webpage in a state to be checked; loading an operating environment matched with the link address in the custom browser by customizing the custom browser; executing simulation operation in the running environment, and loading first content corresponding to the link address after the simulation operation is finished; determining whether the third-party webpage belongs to an abnormal object based on the first content. Through the processing scheme, the third-party webpage can be prevented from showing illegal contents through cheating means, the network environment is purified, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a content processing flow based on a custom browser according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating another customized browser-based content processing flow according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating another customized browser-based content processing flow according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating another customized browser-based content processing flow according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a content processing apparatus based on a custom browser according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a content processing method based on a custom browser. The content processing method based on the customized browser provided by the embodiment can be executed by a computing device, the computing device can be implemented as software, or implemented as a combination of software and hardware, and the computing device can be integrally arranged in a server, a terminal device and the like.
Referring to fig. 1, a content processing method based on a custom browser provided by an embodiment of the present invention includes the following steps:
s101, obtaining a link address of the third-party webpage in a state to be audited.
The content on the network is usually presented in the form of web pages, and for the web page currently browsed by the user, further web page links usually exist, and when the links are clicked, the web page is diverted to a third-party web page. Currently, the operators of web pages may perform content audits in order to ensure that the linked content does not violate the requirements of relevant laws and regulations. However, third-party web providers may employ cheating in a manner that they present one form of content when the operator performs a content review, while at other times and locations the content presented to the user becomes different. For this purpose, a link address of the third-party webpage needs to be acquired first.
The link address is generally in the form of a hyperlink, which is a code including a format of < a href ═ xxx > </a >. Therefore, the hyperlink in the current page can be acquired by inquiring whether the mark of the hyperlink exists in the current webpage, and the link address of the third-party webpage is further obtained.
And S102, loading the running environment matched with the link address in the custom browser by customizing the custom browser.
A conventional browser may load content of a third-party webpage, and during the loading process, current operating environment parameters of the browser (for example, a network speed of a currently operating device, location information of the currently operating device, and the like) may be collected. Parameters acquired by the browser in different environments are different, which causes the third-party webpage to display the content meeting the audit specification in the content audit environment, and to display the content not meeting the audit specification in the common user use environment.
In order to directly monitor whether the content of the third-party webpage meets the specification or not in the auditing stage, a custom browser is arranged in the auditing environment (for example, in an auditing server), and by arranging a corresponding communication interface or plug-in the custom browser, environment parameters can be configured for the browser, so that the custom browser can be configured into a required simulation environment. For example, the hardware parameters of the smartphone can be input into a browser running in a PC environment, and the smartphone running environment can be disguised in a custom browser.
Further, the custom browser may obtain a link address of the third-party webpage, and determine an operating environment of the link address (for example, a PC-side operating environment or a mobile phone-side operating environment) by analyzing the link address, so as to load a matching operating environment for the link address.
In order to improve the matching accuracy of the operating environment, a historical operating environment record of the link address can be obtained, parameters with the largest frequency of occurrence of a plurality of environment parameters (such as operating network speed, geographic position and the like) in the historical operating environment record are selected through the historical operating environment record, the plurality of environment parameters are combined into the operating environment matched with the link address, and the operating environment matched with the link address is loaded in a custom browser.
S103, executing simulation operation in the running environment, and loading first content corresponding to the link address after the simulation operation is completed.
Once the deployment of the running environment is completed in the custom browser, various operations can be simulated through an extended interface in the custom browser, so that the running effect same as that of a real hardware environment can be simulated without the support of hardware equipment, and whether the third-party webpage content meets related regulations or not can be conveniently checked.
The custom browser can expand various interfaces according to actual needs, and specific styles of interface expansion, correction and simulation are not limited in application documents.
As an application scenario, the customized browser can simulate the network access speed of a user, for example, common network speeds such as mobile network, WiFi and the like can be simulated.
As an application scene, the user-defined browser can simulate the touch operation of a user on the terminal equipment, so that the effect of user interaction control is simulated.
As an application scene, the custom browser can realize simulation of the visual area and the pixel density of the user terminal equipment. Thereby constructing an application scene similar to a real hardware environment.
As an application scene, the custom browser can simulate the return value of the detectable interface of the user terminal equipment, and an operating system with a return value environment can be simulated by simulating the return value.
As an application scenario, the custom browser may perform an extension to the alterable authorizeable agent interface for constructing corresponding geographic region data.
As an application scenario, the custom browser may perform extended support for specific HTTP header additions.
As an application scenario, a custom browser may have extended support for incoming specific pages.
As an application scene, the custom browser can perform extended support for acquisition of analog data such as a gyroscope, a GPS and the like.
As an application scene, the custom browser can perform simulation data extension support for calling a return value of the camera.
As an application scenario, the custom browser can perform extended support on any APP incoming information.
The application scenarios are only exemplary scenarios, and a user can simulate more application scenarios according to actual needs.
After the simulation operation is completed, the user-defined browser can load the link address, so that the content corresponding to the link address, namely the first content, is obtained in the user-defined browser.
S104, determining whether the third-party webpage belongs to an abnormal object or not based on the first content.
After the content expansion or simulation operation in the custom browser is completed, the custom browser transmits the first content to an auditing device (for example, an auditing server) for content auditing through a predefined interface, and the auditing device judges whether the first content meets the auditing regulations through content auditing modes such as keyword matching and the like. And if the first content conforms to the auditing rule, judging that the first content is in compliance, wherein the third-party webpage belongs to a normal object and the user can normally access the third-party webpage. And if the first content does not meet the regulation, judging that the first content is illegal, wherein the third-party webpage belongs to an abnormal object. For an exception object, access may be prohibited or restricted by means.
By the scheme, the specific information of the page of the third-party webpage presented in the real use environment can be acquired only by sending the target page address of the third-party webpage to the simulation environment, and the information is checked by a machine and is subsequently judged whether illegal contents exist.
According to a specific implementation manner of the embodiment of the present invention, the obtaining of the link address of the third-party webpage in the state to be audited includes: and acquiring a webpage address pointing to a third-party webpage from the current webpage, and taking the webpage address pointing to the third-party webpage as the link address.
In order to flexibly configure the simulation environment, it is necessary to customize the browser, and according to a specific implementation manner of the embodiment of the present invention, the customizing the custom browser includes: and adding an expansion interface in the custom browser, wherein the expansion interface is used for receiving parameters related to the running environment. As an example, a browser of the Chrome kernel can be adopted to perform secondary customized development, and various interfaces or plug-ins required by a simulation environment can be configured.
Referring to fig. 2, according to a specific implementation manner of the embodiment of the present invention, the loading, in the custom browser, the execution environment matched with the link address includes:
s201, determining the terminal equipment matched with the link address.
The user-defined browser obtains a link address of a third-party webpage, and judges an operating environment (for example, a PC (personal computer) end operating environment or a mobile phone end operating environment) of the link address by analyzing the link address, so that a matched operating environment is loaded for the link address.
S202, automatically generating simulation parameters related to the terminal equipment in the custom browser.
The simulation parameters associated with the terminal device may be automatically generated in a number of ways. For example, simulation parameters related to the terminal device may be generated in a manual configuration manner and loaded in the custom browser.
In order to improve the matching accuracy of the operating environment, as an example, a historical operating environment record of the link address may be obtained, and through the historical operating environment record, a parameter with the largest number of occurrences of a plurality of environment parameters (e.g., operating network speed, geographic location, etc.) in the historical operating environment record is selected, and the plurality of environment parameters are combined into the operating environment matched with the link address and loaded in the custom browser.
Before the third-party webpage shows the content, usually, a server where the third-party webpage is located obtains a current hardware environment through the third-party webpage, referring to fig. 3, according to a specific implementation manner of an embodiment of the present invention, the executing a simulation operation in the running environment includes:
s301, obtaining the server corresponding to the link address.
By analyzing the link address, the IP associated with the link address can be found, and a server (third-party content server) providing content services for the third-party webpage is further obtained based on the IP.
S302, the simulation parameters are sent to the server.
Third-party content servers typically probe the hardware environment in which the third-party web page resides before sending content to the third-party web page. At this time, the custom browser can send the simulation parameters for simulating the real hardware environment to the third-party content server.
According to a specific implementation manner of the embodiment of the present invention, the performing the simulation operation in the operating environment includes:
simulating the network access speed of a user in the operating environment; and/or
Simulating the touch interactive operation of a user on the terminal equipment in the running environment; and/or
Simulating a visual area and pixel intensity of terminal equipment used by a user in the operating environment; and/or
And simulating the detectable interface return value of the terminal equipment used by the user in the running environment.
Besides, various extended operations may be performed in the defined browser, and according to a specific implementation manner of the embodiment of the present invention, the performing a simulation operation in the runtime environment further includes:
expanding a changeable and authorized agent interface in the custom browser to construct preset geographical area data; and/or
Adding extension support for adding a specific HTTP header in the custom browser; and/or
Adding extension support for a specific page incoming path in the custom browser; and/or
Adding extension support for acquiring analog data such as a gyroscope, a GPS and the like in the custom browser; and/or
Adding simulation data extension support for calling a return value of a camera in the custom browser; and/or
And adding extension support for any APP incoming information in the custom browser.
According to a specific implementation manner of the embodiment of the present invention, the determining whether the third-party webpage belongs to an abnormal object based on the first content includes: and judging whether the first content has abnormal data or not, and if so, determining the third-party webpage as an abnormal object.
In order to further improve the accuracy of determining the content of the third-party webpage, referring to fig. 4, according to a specific implementation manner of the embodiment of the present invention, the determining whether the third-party webpage belongs to an abnormal object based on the first content includes:
s401, before customizing the custom browser, loading second content corresponding to the link address in the custom browser.
Before the user-defined browser carries out environment simulation, the content (second content) corresponding to the link address is loaded in the auditing environment, so that the specific content displayed in the auditing environment by the third-party webpage can be obtained.
S402, comparing whether the second content is the same as the first content.
Whether the first content and the second content are the same or not can be judged in a similarity comparison mode, so that support is provided for the next judgment.
And S403, if not, determining the third-party webpage as an abnormal object.
When the first content is different from the second content, it can be determined that the third-party webpage shows different content in different environments, and the third-party webpage can be determined as an abnormal object.
Corresponding to the above method embodiment, referring to fig. 5, an embodiment of the present invention further provides a content processing apparatus 50 based on a custom browser, including:
the obtaining module 501 is configured to obtain a link address of a third-party webpage in a state to be audited.
The content on the network is usually presented in the form of web pages, and for the web page currently browsed by the user, further web page links usually exist, and when the links are clicked, the web page is diverted to a third-party web page. Currently, the operators of web pages may perform content audits in order to ensure that the linked content does not violate the requirements of relevant laws and regulations. However, third-party web providers may employ cheating in a manner that they present one form of content when the operator performs a content review, while at other times and locations the content presented to the user becomes different. For this purpose, a link address of the third-party webpage needs to be acquired first.
The link address is generally in the form of a hyperlink, which is a code including a format of < a href ═ xxx > </a >. Therefore, the hyperlink in the current page can be acquired by inquiring whether the mark of the hyperlink exists in the current webpage, and the link address of the third-party webpage is further obtained.
A loading module 502, configured to load an operating environment matched with the link address in the custom browser by performing customization processing on the custom browser.
A conventional browser may load content of a third-party webpage, and during the loading process, current operating environment parameters of the browser (for example, a network speed of a currently operating device, location information of the currently operating device, and the like) may be collected. Parameters acquired by the browser in different environments are different, which causes the third-party webpage to display the content meeting the audit specification in the content audit environment, and to display the content not meeting the audit specification in the common user use environment.
In order to directly monitor whether the content of the third-party webpage meets the specification or not in the auditing stage, a custom browser is arranged in the auditing environment (for example, in an auditing server), and by arranging a corresponding communication interface or plug-in the custom browser, environment parameters can be configured for the browser, so that the custom browser can be configured into a required simulation environment. For example, the hardware parameters of the smartphone can be input into a browser running in a PC environment, and the smartphone running environment can be disguised in a custom browser.
Further, the custom browser may obtain a link address of the third-party webpage, and determine an operating environment of the link address (for example, a PC-side operating environment or a mobile phone-side operating environment) by analyzing the link address, so as to load a matching operating environment for the link address.
In order to improve the matching accuracy of the operating environment, a historical operating environment record of the link address can be obtained, parameters with the largest frequency of occurrence of a plurality of environment parameters (such as operating network speed, geographic position and the like) in the historical operating environment record are selected through the historical operating environment record, the plurality of environment parameters are combined into the operating environment matched with the link address, and the operating environment matched with the link address is loaded in a custom browser.
An executing module 503, configured to execute a simulation operation in the running environment, and load the first content corresponding to the link address after the simulation operation is completed.
Once the deployment of the running environment is completed in the custom browser, various operations can be simulated through an extended interface in the custom browser, so that the running effect same as that of a real hardware environment can be simulated without the support of hardware equipment, and whether the third-party webpage content meets related regulations or not can be conveniently checked.
The custom browser can expand various interfaces according to actual needs, and specific styles of interface expansion, correction and simulation are not limited in application documents.
As an application scenario, the customized browser can simulate the network access speed of a user, for example, common network speeds such as mobile network, WiFi and the like can be simulated.
As an application scene, the user-defined browser can simulate the touch operation of a user on the terminal equipment, so that the effect of user interaction control is simulated.
As an application scene, the custom browser can realize simulation of the visual area and the pixel density of the user terminal equipment. Thereby constructing an application scene similar to a real hardware environment.
As an application scene, the custom browser can simulate the return value of the detectable interface of the user terminal equipment, and an operating system with a return value environment can be simulated by simulating the return value.
As an application scenario, the custom browser may perform an extension to the alterable authorizeable agent interface for constructing corresponding geographic region data.
As an application scenario, the custom browser may perform extended support for specific HTTP header additions.
As an application scenario, a custom browser may have extended support for incoming specific pages.
As an application scene, the custom browser can perform extended support for acquisition of analog data such as a gyroscope, a GPS and the like.
As an application scene, the custom browser can perform simulation data extension support for calling a return value of the camera.
As an application scenario, the custom browser can perform extended support on any APP incoming information.
The application scenarios are only exemplary scenarios, and a user can simulate more application scenarios according to actual needs.
After the simulation operation is completed, the user-defined browser can load the link address, so that the content corresponding to the link address, namely the first content, is obtained in the user-defined browser.
A determining module 504, configured to determine whether the third-party webpage belongs to an abnormal object based on the first content.
After the content expansion or simulation operation in the custom browser is completed, the custom browser transmits the first content to an auditing device (for example, an auditing server) for content auditing through a predefined interface, and the auditing device judges whether the first content meets the auditing regulations through content auditing modes such as keyword matching and the like. And if the first content conforms to the auditing rule, judging that the first content is in compliance, wherein the third-party webpage belongs to a normal object and the user can normally access the third-party webpage. And if the first content does not meet the regulation, judging that the first content is illegal, wherein the third-party webpage belongs to an abnormal object. For an exception object, access may be prohibited or restricted by means.
By the scheme, the specific information of the page of the third-party webpage presented in the real use environment can be acquired only by sending the target page address of the third-party webpage to the simulation environment, and the information is checked by a machine and is subsequently judged whether illegal contents exist.
According to a specific implementation manner of the embodiment of the present invention, the obtaining of the link address of the third-party webpage in the state to be audited includes: and acquiring a webpage address pointing to a third-party webpage from the current webpage, and taking the webpage address pointing to the third-party webpage as the link address.
The apparatus shown in fig. 5 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 6, an embodiment of the present invention further provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the foregoing method embodiments for processing content based on a custom browser.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the foregoing method embodiments.
Embodiments of the present invention also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the customized browser-based content processing method in the foregoing method embodiments.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A content processing method based on a custom browser is characterized by comprising the following steps:
acquiring a link address of a third-party webpage in a state to be checked;
loading an operating environment matched with the link address in the custom browser by customizing the custom browser;
executing simulation operation in the running environment, and loading first content corresponding to the link address after the simulation operation is finished;
determining whether the third-party webpage belongs to an abnormal object based on the first content.
2. The method of claim 1, wherein the obtaining the link address of the third-party webpage in the state to be audited comprises:
acquiring a webpage address pointing to a third-party webpage from a current webpage;
and taking the webpage address pointing to the third-party webpage as the link address.
3. The method of claim 1, wherein the customizing the custom browser comprises:
and adding an expansion interface in the custom browser, wherein the expansion interface is used for receiving parameters related to the running environment.
4. The method of claim 3, wherein loading the runtime environment matching the link address in the custom browser comprises:
determining a terminal device matched with the link address;
and automatically generating simulation parameters related to the terminal equipment in the custom browser.
5. The method of claim 4, wherein performing a simulation operation in the runtime environment comprises:
acquiring a server corresponding to the link address; and
and sending the simulation parameters to the server.
6. The method of claim 4, wherein performing a simulation operation in the runtime environment comprises:
simulating the network access speed of a user in the operating environment; and/or
Simulating the touch interactive operation of a user on the terminal equipment in the running environment; and/or
Simulating a visual area and pixel intensity of terminal equipment used by a user in the operating environment; and/or a detectable interface return value simulating a terminal device used by a user in the operating environment.
7. The method of claim 6, wherein performing a simulation operation in the runtime environment further comprises:
expanding a changeable and authorized agent interface in the custom browser to construct preset geographical area data; and/or
Adding extension support for adding a specific HTTP header in the custom browser; and/or
Adding extension support for a specific page incoming path in the custom browser; and/or
Adding extension support for acquiring analog data such as a gyroscope, a GPS and the like in the custom browser; and/or
Adding simulation data extension support for calling a return value of a camera in the custom browser; and/or
And adding extension support for any APP incoming information in the custom browser.
8. The method of claim 1, wherein the determining whether the third-party webpage belongs to an anomalous object based on the first content comprises:
judging whether the first content has abnormal data or not;
and if so, determining the third-party webpage as an abnormal object.
9. The method of claim 1, wherein the determining whether the third-party webpage belongs to an anomalous object based on the first content comprises:
before customizing the custom browser, loading second content corresponding to the link address in the custom browser;
comparing whether the second content is identical to the first content;
and if not, determining the third-party webpage as an abnormal object.
10. A custom browser based content processing apparatus, comprising:
the acquisition module is used for acquiring the link address of the third-party webpage in a state to be checked;
the loading module is used for loading the running environment matched with the link address in the custom browser by customizing the custom browser;
the execution module is used for executing simulation operation in the running environment and loading first content corresponding to the link address after the simulation operation is finished;
and the determining module is used for determining whether the third-party webpage belongs to an abnormal object or not based on the first content.
11. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the custom browser-based content processing method of any of claims 1-9.
12. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the custom browser-based content processing method of any of the preceding claims 1-9.
CN201910062922.8A 2019-01-23 2019-01-23 Content processing method, device and electronic equipment based on custom browser Pending CN109800378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910062922.8A CN109800378A (en) 2019-01-23 2019-01-23 Content processing method, device and electronic equipment based on custom browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910062922.8A CN109800378A (en) 2019-01-23 2019-01-23 Content processing method, device and electronic equipment based on custom browser

Publications (1)

Publication Number Publication Date
CN109800378A true CN109800378A (en) 2019-05-24

Family

ID=66560070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910062922.8A Pending CN109800378A (en) 2019-01-23 2019-01-23 Content processing method, device and electronic equipment based on custom browser

Country Status (1)

Country Link
CN (1) CN109800378A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851751A (en) * 2019-09-24 2020-02-28 云深互联(北京)科技有限公司 Browser-based platform customization method and device
CN111597114A (en) * 2020-05-18 2020-08-28 北京百度网讯科技有限公司 Method, device and equipment for verifying small program and storage medium
CN113723980A (en) * 2020-05-26 2021-11-30 北京达佳互联信息技术有限公司 Method and device for detecting advertisement landing page, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436564A (en) * 2011-12-30 2012-05-02 奇智软件(北京)有限公司 Method and device for identifying falsified webpage
CN102594934A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for identifying hijacked website
CN103150369A (en) * 2013-03-07 2013-06-12 人民搜索网络股份公司 Method and device for identifying cheat web-pages
CN106294535A (en) * 2016-07-19 2017-01-04 百度在线网络技术(北京)有限公司 The recognition methods of website and device
CN106844522A (en) * 2016-12-29 2017-06-13 北京市天元网络技术股份有限公司 A kind of network data crawling method and device
CN107294918A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of fishing webpage detection method and device
CN107491453A (en) * 2016-06-13 2017-12-19 北京搜狗科技发展有限公司 A kind of method and device for identifying cheating webpages
CN107908959A (en) * 2017-11-10 2018-04-13 北京知道创宇信息技术有限公司 Site information detection method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436564A (en) * 2011-12-30 2012-05-02 奇智软件(北京)有限公司 Method and device for identifying falsified webpage
CN102594934A (en) * 2011-12-30 2012-07-18 奇智软件(北京)有限公司 Method and device for identifying hijacked website
CN103150369A (en) * 2013-03-07 2013-06-12 人民搜索网络股份公司 Method and device for identifying cheat web-pages
CN107294918A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of fishing webpage detection method and device
CN107491453A (en) * 2016-06-13 2017-12-19 北京搜狗科技发展有限公司 A kind of method and device for identifying cheating webpages
CN106294535A (en) * 2016-07-19 2017-01-04 百度在线网络技术(北京)有限公司 The recognition methods of website and device
CN106844522A (en) * 2016-12-29 2017-06-13 北京市天元网络技术股份有限公司 A kind of network data crawling method and device
CN107908959A (en) * 2017-11-10 2018-04-13 北京知道创宇信息技术有限公司 Site information detection method, device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110851751A (en) * 2019-09-24 2020-02-28 云深互联(北京)科技有限公司 Browser-based platform customization method and device
CN111597114A (en) * 2020-05-18 2020-08-28 北京百度网讯科技有限公司 Method, device and equipment for verifying small program and storage medium
CN111597114B (en) * 2020-05-18 2023-09-05 北京百度网讯科技有限公司 Method, device, equipment and storage medium for verifying applet
CN113723980A (en) * 2020-05-26 2021-11-30 北京达佳互联信息技术有限公司 Method and device for detecting advertisement landing page, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
US20120317172A1 (en) Mobile web app infrastructure
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN110046310B (en) Method and device for analyzing jump link in page
CN109857506B (en) Method and device for realizing guide information, electronic equipment and storage medium
CN109831532B (en) Data sharing method, device, equipment and medium
KR20120067830A (en) System for map service in mobile web, and terminal for the same
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN109753622B (en) Static resource management method and device, storage medium and electronic equipment
CN112269959B (en) Control method and device for display content, readable medium and electronic equipment
WO2020199749A1 (en) Feedback-based information pushing method and apparatus, and electronic device
CN111459364B (en) Icon updating method and device and electronic equipment
CN109800378A (en) Content processing method, device and electronic equipment based on custom browser
CN111694550B (en) Page display control method, device and system
CN111736918B (en) Buried point configuration method and device and electronic equipment
CN107426588B (en) Method, system and storage device for acquiring television set configuration information
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN110618811B (en) Information presentation method and device
CN112558933A (en) Component rendering method and device, readable medium and electronic equipment
CN110134477B (en) Method, device, medium and electronic equipment for dynamically laying out user pages
CN111083145A (en) Message sending method and device and electronic equipment
CN112083982A (en) Information processing method and device
CN113590985A (en) Page jump configuration method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190524

RJ01 Rejection of invention patent application after publication