CN112149030A - Page display method and device, computer system and computer readable medium - Google Patents

Page display method and device, computer system and computer readable medium Download PDF

Info

Publication number
CN112149030A
CN112149030A CN201910564437.0A CN201910564437A CN112149030A CN 112149030 A CN112149030 A CN 112149030A CN 201910564437 A CN201910564437 A CN 201910564437A CN 112149030 A CN112149030 A CN 112149030A
Authority
CN
China
Prior art keywords
page
picture
target
original
module
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
CN201910564437.0A
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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910564437.0A priority Critical patent/CN112149030A/en
Publication of CN112149030A publication Critical patent/CN112149030A/en
Pending legal-status Critical Current

Links

Images

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/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/121Restricting unauthorised execution of programs
    • G06F21/128Restricting unauthorised execution of programs involving web programs, i.e. using technology especially used in internet, generally interacting with a web browser, e.g. hypertext markup language [HTML], applets, java

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a page display method, including: the method comprises the steps of obtaining an access request for accessing a target page through a first page, wherein the target page comprises an original picture and a picture mark, a source website has an access right of the target page, detecting whether the first page has the access right of the target page to obtain a detection result, generating a target picture based on the original picture and the picture mark under the condition that the detection result indicates that the first page does not have the access right of the target page, and displaying the target picture on the first page. In addition, the disclosure also provides a page display device, a computer system and a computer readable medium.

Description

Page display method and device, computer system and computer readable medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a page display method and apparatus, a computer system, and a computer readable medium.
Background
In the local browser, when a target page is accessed via a first page, one access request cannot obtain the whole content of the page, especially when the page carries pictures or other resources. In response to the first access request, the Text of hypertext Markup Language (HTML) of the page is returned, where the hypertext refers to that the page may contain pictures, links, and even non-character elements such as music and programs. The structure of the hypertext markup language includes a "Head" part (Head) that provides information about a web page and a "Body" part (Body) that provides specific content about the web page. The browser can parse the text, and if pictures are found in the page, a second access request is sent to obtain the pictures. If the first page does not have the resources in the target page, in order to expand the content of the own site without increasing the cost, the links of other websites (source websites) with the resources are often stolen, and the picture is linked to the source website, so that most of browsers can not easily find the picture. The first page utilizes the resources of the source website to be displayed to the browser, so that the access amount of the website is increased, but the loss of the access amount of the source website is caused. The hotlinking not only impairs the legitimate interests of the source web site, but also burdens the server.
Therefore, the related technology provides various anti-stealing-link schemes, so that the source website can refuse other webpages to load own resource files, for example, the occupation promoting pictures of the anti-stealing-link prompt are displayed for the user on other websites. However, in implementing the embodiments of the present disclosure, the inventors found that there are at least the following problems in the related art: and the user experience is poor by using the anti-theft chain mechanism of the occupation prompting picture of the anti-theft chain prompting.
In view of the above problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
In view of the above, the present disclosure provides a page display method and apparatus, a computer system and a computer readable medium.
One aspect of the present disclosure provides a page display method, including: the method comprises the steps of obtaining an access request for accessing a target page through a first page, wherein the target page comprises an original picture and a picture mark, detecting whether the first page has the access authority of the target page to obtain a detection result, generating a target picture based on the original picture and the picture mark under the condition that the detection result indicates that the first page does not have the access authority of the target page, and displaying the target picture on the first page.
According to an embodiment of the present disclosure, the generating the target picture based on the original picture and the picture mark includes: the original picture is subjected to fuzzy processing to obtain a fuzzy picture, a short link corresponding to the picture mark is generated based on the picture mark, and the target picture is generated based on the fuzzy picture and the short link.
According to an embodiment of the present disclosure, the method further includes: and displaying the original picture and the picture mark on the first page under the condition that the detection result indicates that the first page has the access right of the target page.
According to an embodiment of the present disclosure, the detecting whether the first page has the access right of the target page to obtain a detection result includes: the method comprises the steps of obtaining identification information of an access request for accessing the target page through the first page, obtaining authority information of access authority of the target page, and detecting whether the first page has the access authority of the target page or not based on the identification information and the authority information to obtain the detection result.
According to an embodiment of the present disclosure, the blurring the original picture to obtain a blurred picture includes: acquiring first attribute information of the original picture, acquiring second attribute information of the first page, configuring a fuzzy parameter based on the first attribute information and/or the second attribute information, and performing fuzzy processing on the original picture based on the fuzzy parameter to obtain a fuzzy picture.
Another aspect of the present disclosure provides a page displaying apparatus, including: the system comprises an obtaining module, a detecting module, a processing module and a first showing module, wherein the obtaining module is configured to obtain an access request for accessing a target page through a first page, the target page comprises an original picture and a picture mark, the detecting module is configured to detect whether the first page has the access authority of the target page to obtain a detection result, the processing module is configured to generate a target picture based on the original picture and the picture mark if the detection result indicates that the first page does not have the access authority of the target page, and the first showing module is configured to show the target picture on the first page.
According to an embodiment of the present disclosure, the processing module includes: the image processing device comprises a processing submodule configured to perform fuzzy processing on the original image to obtain a fuzzy image, a first generation submodule configured to generate a short link corresponding to the image mark based on the image mark, and a second generation submodule configured to generate the target image based on the fuzzy image and the short link.
According to an embodiment of the present disclosure, the apparatus further includes: and the second display module is configured to display the original picture and the picture mark on the first page under the condition that the first page has the access right of the target page.
According to an embodiment of the present disclosure, the detection module includes: the device comprises a first obtaining submodule configured to obtain identification information of an access request for accessing the target page through the first page, a second obtaining submodule configured to obtain authority information of access authority of the target page, and a third obtaining submodule configured to detect whether the first page has the access authority of the target page based on the identification information and the authority information so as to obtain the detection result.
According to an embodiment of the present disclosure, the processing sub-module includes: the image processing device comprises a first obtaining unit, a second obtaining unit and a processing unit, wherein the first obtaining unit is configured to obtain first attribute information of the original image, the second obtaining unit is configured to obtain second attribute information of the first page, the configuration unit is configured to configure a fuzzy parameter based on the first attribute information and/or the second attribute information, and the processing unit is configured to perform fuzzy processing on the original image based on the fuzzy parameter to obtain a fuzzy image.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, under the condition that the first page is detected not to have the access right of the target page resource, in order to prevent the picture and picture mark resource of the source website from being stolen, the original picture and the picture mark of the target page are not displayed on the first page, but the target picture is generated based on the original picture and the picture mark, so that the target picture carries the related information of the original picture and the picture mark, the display of the position-occupying prompting picture without carrying the information of the original picture on the first page is avoided, not only can the resource anti-theft function be realized, but also the target picture carrying the information of the original picture and the picture mark can be displayed for a user, the user can know the basic appearance of the original picture, and good visual experience is provided for the user.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a system architecture to which a page presentation method may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically shows a flow chart of a page presentation method according to an embodiment of the present disclosure;
FIG. 3A schematically illustrates a flow chart for generating a target picture based on an original picture and a picture marker according to an embodiment of the present disclosure;
FIG. 3B schematically shows a presentation effect diagram on a first page of the prior art;
FIG. 3C schematically illustrates a presentation effect diagram on a first page according to an embodiment of the disclosure;
FIG. 3D schematically shows a flowchart for detecting whether a first page has an access right of a target page to obtain a detection result according to an embodiment of the present disclosure;
fig. 3E schematically shows a flowchart of blurring an original picture according to a preset rule to obtain a blurred picture according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a page presentation apparatus according to an embodiment of the present disclosure;
FIG. 5A schematically illustrates a block diagram of a processing module according to an embodiment of the disclosure;
FIG. 5B schematically illustrates a block diagram of a detection module according to an embodiment of the disclosure;
FIG. 5C schematically shows a block diagram of a processing submodule according to an embodiment of the disclosure;
FIG. 5D schematically illustrates a general block diagram of a page presentation system according to an embodiment of the disclosure; and
FIG. 6 schematically illustrates a block diagram of a computer system suitable for implementing the page presentation method and apparatus according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The present disclosure provides a page display method, including: the method comprises the steps of obtaining an access request for accessing a target page through a first page, wherein the target page comprises an original picture and a picture mark, detecting whether the first page has an access right of the target page to obtain a detection result, generating a target picture based on the original picture and the picture mark under the condition that the detection result indicates that the first page does not have the access right of the target page, and displaying the target picture on the first page.
Fig. 1 schematically shows a system architecture 100 to which the page presentation method may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the page display method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the page display apparatus provided by the embodiment of the present disclosure may be generally disposed in the server 105. The page display method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Correspondingly, the page display device provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows a flow chart of a page presentation method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S210 to S240. Wherein:
in operation S210, an access request to access a target page via a first page is obtained.
In operation S220, it is detected whether the first page has an access right of the target page to obtain a detection result.
In operation S230, in a case that the detection result indicates that the first page does not have the access right of the target page, a target picture is generated based on the original picture and the picture flag.
In operation S240, a target picture is presented on a first page.
According to the embodiment of the disclosure, the first page is a website that can be asked for by a local browser, the target page is a webpage that a user wants to browse on the local browser via the first page, the source website has access rights to various resources in the target page, and the picture storage server of the source website stores various resources in the target page, such as an original picture, a picture mark, that is, a text description, a link, even non-text elements such as music and a program, for the original picture. In order to prevent resources such as original pictures, picture marks and the like from being stolen by the first page, damage legal benefits of the source website and increase the burden of the server, the operation can configure access rights of the resources for other first pages except the source website. Thus, the first page may or may not have access to various resources in the target page.
According to the embodiment of the disclosure, after an access request for accessing a target page through a first page is obtained, whether the first page has an access right of the target page is detected to obtain a detection result, and whether an original picture and a picture mark are displayed on the first page or a target picture generated based on the original picture and the picture mark is determined according to the detection result.
Specifically, if the first page does not have access rights to various resources in the target page, the first page cannot access the picture storage server of the source website, and cannot acquire various resources in the target page, but the target picture may be generated based on the original picture and the picture tag and stored on the synthesized picture storage server, so that the target picture is displayed on the first page.
Specifically, after receiving an access request for an original picture, it is determined whether a target picture corresponding to the original picture exists in the picture server, if not, the target picture is generated based on the original picture and the picture mark and stored, and in the case of receiving an access request for accessing the target page via another page, such as a second page different from the first page, a third page, and the like, the target picture stored in the picture server can be directly returned without re-generating the target picture in response to the access request each time, so that the original picture can be prevented from being subjected to fuzzy processing and/or short links can be generated according to the picture mark, thereby saving computational resources, shortening picture display time, and improving user experience.
According to the embodiment of the disclosure, under the condition that the detection result indicates that the first page has the access right of the target page, the original picture and the picture mark are displayed on the first page.
By the embodiment of the disclosure, in order to prevent the original picture and the picture mark resource of the source website from being stolen when the first page is detected not to have the access right of the target page, the original picture and the picture mark of the target page are not displayed on the first page, but the target picture is generated based on the original picture and the picture mark, so that the target picture finally displayed on the first page carries the related information of the original picture and the picture mark, instead of displaying the position-occupying prompting picture without carrying the information of the original picture on the first page in the prior art, and displaying the original picture and the picture mark on the first page under the condition that the first page is detected to have the access right of the target page, not only can the anti-theft function be realized, but also the technical effect of displaying the target picture carrying the information of the original picture and the picture mark to the user can be realized, and the user can be helped to know the basic appearance of the original picture, and the user experience is improved.
Fig. 3A schematically illustrates a flowchart of generating a target picture based on an original picture and a picture mark according to an embodiment of the present disclosure.
As shown in fig. 3A, the method includes operations S311 to S313. Wherein:
in operation S311, an original picture is blurred to obtain a blurred picture.
In operation S312, based on the picture flag, a short link corresponding to the picture flag is generated.
In operation S313, a target picture is generated based on the blurred picture and the short link.
According to the embodiment of the disclosure, a two-dimensional Gaussian algorithm can be used to generate a Gaussian blurred picture for an original picture, so that the blurred picture carries the related information of the original picture, and the specific carrying amount of the related information is determined according to the blurring parameter. And according to the picture mark of the original picture, namely a certain article where the original picture is located or the character resource of the certain article, a short website can be generated, and the original lengthy website can be replaced by a short website by virtue of the short website, so that the user can share the short website conveniently. It should be noted that a Short web address is a relatively Short web address (Short URL) in form, for example, a combination of numbers and characters. Because the short network address is short, the short network address is convenient to copy or manually input, does not occupy a large space, and is widely applied to microblogs, short messages and various Application programs (APP for short).
It should be noted that there are many algorithms to generate the short website. A random code can be used to correspond to a website, and the corresponding website can be found by searching the random code in a database storing the mapping relation of the random code and the website. Based on the gaussian fuzzy picture and the short link, the target picture can be generated, the specific generation mode is not limited in the disclosure, and a person skilled in the art can select different modes and methods to realize the synthesis of the target picture according to actual conditions. The short link can also be put on the generated Gaussian blur picture in the form of a watermark and stored to generate a Gaussian blur picture with a short website, namely a target picture.
It should be noted that there are many algorithms for image blurring, a gaussian blurring algorithm may be used, and other image blurring algorithms may also be used. Similarly, there are many algorithms of gaussian blurring, and the principle is to take the average value of surrounding pixels for each pixel in the picture, and smooth the pixel value of each pixel in the picture, so that the blurred picture loses the original detail characteristics, and the whole picture shows a blurring effect.
According to the method and the device, the original image is subjected to fuzzy processing to generate the fuzzy image, the fuzzy image with the short website is finally generated, when the first page stealing link image resource exists, the generated fuzzy image is displayed, the first page stealing source website image resource without the access authority can be prevented, meanwhile, the target image carrying the related information of the original image is displayed for a user, and the visual experience of the user is improved.
Fig. 3B schematically shows a presentation effect diagram on the first page of the prior art.
As shown in fig. 3B, in the prior art, the source website does not allow the first page to access its network resources, and if the user references several pictures from the source website to the first page, for example, the user's own blog or personal space, these several pictures that can be displayed on the source website cannot be displayed on the first page due to the anti-theft chain. Because the several pictures are placed on the server of the source website, the source website refuses other pages of the first page to access the resource, and the first page cannot display the pictures in the source website, but redirects the links of the original pictures to the default placeholder map display. The principle of the image anti-theft chain is that an apache or nginx web server is used for configuring the anti-theft chain, a web page end accesses an image and carries a Refer of the web page, the source of the Refer is automatically judged, the anti-theft chain judgment is carried out by combining a black and white list of the anti-theft chain, and if the image is an image reference request sent from a first page in the black list, the image server redirects the link of the image to a default occupation map. If the picture reference request is sent from the first page in the white list, the picture server returns the picture to the first page.
It can be seen that in the prior art, the displayed anti-theft link on the first page can only play a role of anti-theft, so as to prevent other websites from stealing pictures, save precious traffic, release precious bandwidth resources, but make a user who wants to see an original picture difficult to know what the original picture is, and also make a user who wants to see an original picture unable to know what the article link where the original picture is, and further make a user who wants to see an original picture unable to skip to the original chapter, so that an owner (source website) of the original picture resources cannot drain the own article or original picture, thereby causing user loss. Even if the short link can be displayed on the first page, if there are a plurality of pictures in the original link, the user who wants to see the original picture still cannot know which picture of the plurality of pictures is the original picture, and the user experience is poor.
Fig. 3C schematically illustrates a presentation effect diagram on a first page according to an embodiment of the disclosure.
As shown in fig. 3C, the original image is blurred according to the preset blurring parameters, and a corresponding gaussian blurred image is generated. And generating a short website (http://. x) according to the article address of the original image, inserting the short website into the Gaussian blur image, and generating a target image carrying the related information of the original image. Also, text description (the picture is from, not allowed to be unreferenced) and (the link where the artwork is located is http://) can be added. The method and the system can prevent other pages from stealing and linking the picture resources of the source website, and enable the user to know the outline of the original picture approximately. Under the condition that the user needs to further know the specific content in the picture, the original document chapter can be accessed by clicking or copying the short link in the target picture and/or the picture resource can be accessed by the original network page, and the effect of guiding the user is achieved.
Fig. 3D schematically shows a flowchart for detecting whether the first page has the access right of the target page to obtain the detection result according to the embodiment of the disclosure.
As shown in fig. 3D, the method includes operations S341 to S343. Wherein:
in operation S341, identification information of the access request is obtained.
In operation S342, rights information for access rights to the target page is acquired.
In operation S343, a detection result of whether the first page has an access right of the target page is obtained based on the right information.
According to the embodiment of the disclosure, the access request of the first page has a header of refer, which is used to indicate a source reference page of the first page, and is also referred to as identification information of the first page in the disclosure. According to the authority information such as the black and white list aiming at the access authority of the target page, the authority information can be searched based on the identification information so as to determine whether the first page has the access authority to the target page. Generally, for a first page such as a third-party website which forbids embezzlement of the picture link of the source website, the identification information of the first page can be recorded in a blacklist, and for a first page such as a third-party website which allows access to the picture link of the source website, the identification information of the first page can be recorded in a white list.
By the embodiment of the disclosure, whether the first page has the access authority of the target page or not can be determined based on the identification information of the access request and the authority information aiming at the access authority of the target page, and the determination of the finally displayed picture on the first page according to the detection result is facilitated.
Fig. 3E schematically shows a flowchart of blurring an original picture according to a preset rule to obtain a blurred picture according to an embodiment of the present disclosure.
As shown in fig. 3E, the method includes operations S351 to S354. Wherein:
in operation S351, first attribute information of the original picture is acquired.
In operation S352, second attribute information of the first page is acquired.
In operation S353, a fuzzy parameter is configured based on the first attribute information and/or the second attribute information.
In operation S354, the original picture is blurred based on the blur parameters to obtain a blurred picture.
According to an embodiment of the present disclosure, the attribute information of the original picture may include, but is not limited to, source information of the original picture, security level information of the original picture, and access right range information of the original picture. The attribute information of the first page may include, but is not limited to, an accessible range of the first page to the source website resource and validity information of the first page. The fuzzy degree of the target picture can be configured according to actual needs. Specifically, the blur parameter may be configured based on the attribute information of the original picture, or the blur parameter may be configured based on the attribute information of the first page, or the blur parameter may be configured based on the attribute information of the original picture and the attribute information of the first page.
It can be understood that, when the average value of the surrounding pixels is calculated by the fuzzy algorithm, the larger the radius of the surrounding pixels is, the stronger the "fuzzy effect" is. The larger the blur radius, the more blurred the image. From a numerical point of view, the smoother the value. The images are continuous, and for any pixel point in the images, the closer the pixel point is, the more the relationship is, the farther the pixel point is, the more distant the relationship is, and the more distant the relationship is, the more the weight distribution of the equivalent average peripheral pixel is, obviously unreasonable. Therefore, the weighted average mode is more reasonable, that is, the closer the pixel point is, the larger the weight is, and the farther the pixel point is, the smaller the weight is. The normal distribution is a distribution which can fit the weight distribution, the normal distribution is a bell-shaped curve, the closer to the center, the larger the value is, and the farther from the center, the smaller the value is. When calculating the average value, we only need to use the "central pixel point" as the origin, and distribute the weight to other pixel points according to the positions of the other pixel points on the normal distribution curve, so as to obtain a weighted average value. Because the images are two-dimensional, a two-dimensional gaussian function can be used as the blurred gaussian function of the images, and those skilled in the art can select the gaussian function according to actual needs, which is not described herein again.
According to the embodiment of the disclosure, the operation can configure the parameter σ of gaussian blur as required to control the blur degree of the original picture, and the parameter can be controlled by controlling the shape of normal distribution. For example, if the original picture is an original picture and only an approximate outline can be displayed by stealing the first page of the original picture resource, a high degree of blurring can be achieved by configuring the parameter σ. If the user wants to see more picture details and does not want to save the original picture, a slight blur can be achieved by configuring the parameter σ.
For example, for a source website a, if a first page B links the product image a of the source website a, according to the embodiment of the present disclosure, not only the first page B can display a gaussian fuzzy image with a short website, but also different fuzzy parameters can be configured according to the attribute information of the product image a and/or the attribute information of the page B, so as to obtain target images with different display effects. Specifically, if the commodity picture a relates to a picture related to the first issue of a new product and does not want to be referred by the first page B, a high fuzzy parameter can be configured, so that the fuzzy degree of the target picture is high, a user can not clearly see the detailed information of the original picture a through the first page B, and if the user wants to further see the detailed picture information, the user needs to enter a commodity detail page through a short-link website on the target picture to browse, so that resources of the source website a can be prevented from being stolen by the first page B, and meanwhile, a certain flow can be brought to the source website a. If the commodity picture a is some beautiful pictures and does not relate to confidentiality, a low fuzzy parameter can be configured, so that the fuzzy degree of the target picture is low, the user can see the content of the commodity picture a through the first page B, and if the user wants to save the commodity picture a, the user needs to access the source website A through a short-link website on the target picture for saving.
By the aid of the method and the device, when the original picture is subjected to fuzzy processing, fuzzy parameters of the picture can be dynamically configured to control the fuzzy degree of the picture, different parameters can be configured as required to generate target pictures with different fuzzy degrees, and different display effects are achieved.
FIG. 4 schematically shows a block diagram of a page presentation apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the page displaying apparatus 400 includes an obtaining module 410, a detecting module 420, a processing module 430, and a first displaying module 440. Wherein:
an obtaining module 410 configured to obtain an access request to access a target page via a first page.
And the detection module 420 is configured to detect whether the first page has the access right of the target page to obtain a detection result.
And the processing module 430 is configured to generate a target picture based on the original picture and the picture mark in the case that the detection result indicates that the first page does not have the access right of the target page.
A first presentation module 440 configured to present the target picture on a first page.
According to an embodiment of the present disclosure, the page displaying apparatus further includes, in addition to the obtaining module 410, the detecting module 420, the processing module 430 and the first displaying module 440, a second displaying module configured to display the original picture and the picture mark on the first page in case that the first page has the access right of the target page.
By the embodiment of the disclosure, in order to prevent the original picture and the picture mark resource of the source website from being stolen when the first page is detected not to have the access right of the target page, the original picture and the picture mark of the target page are not displayed on the first page, but the target picture is generated based on the original picture and the picture mark, so that the target picture finally displayed on the first page carries the related information of the original picture and the picture mark, instead of displaying the position-occupying prompting picture without carrying the information of the original picture on the first page in the prior art, and displaying the original picture and the picture mark on the first page under the condition that the first page is detected to have the access right of the target page, not only can the anti-theft function be realized, but also the technical effect of displaying the target picture carrying the information of the original picture and the picture mark to the user can be realized, and the user can be helped to know the basic appearance of the original picture, and the user experience is improved.
Fig. 5A schematically illustrates a block diagram of a processing module according to an embodiment of the disclosure.
As shown in fig. 5A, the processing module 430 includes a processing sub-module 511, a first generation sub-module 512, and a second generation sub-module 513. Wherein:
and the processing sub-module 511 is configured to perform a blurring process on the original picture according to a preset rule to obtain a blurred picture.
A first generation submodule 512 configured to generate a short link corresponding to the picture mark based on the picture mark.
A second generation submodule 513 configured to generate a target picture based on the blurred picture and the short link.
According to the method and the device, the original image is subjected to fuzzy processing to generate the fuzzy image, the fuzzy image with the short website is finally generated, when the first page stealing link image resource exists, the generated fuzzy image is displayed, the first page stealing source website image resource without the access authority can be prevented, meanwhile, the target image carrying the related information of the original image is displayed for a user, and the visual experience of the user is improved.
Fig. 5B schematically illustrates a block diagram of a detection module according to an embodiment of the disclosure.
As shown in fig. 5B, the detection module 420 includes a first obtaining submodule 521, a second obtaining submodule 522 and a third obtaining submodule 523. Wherein:
a first obtaining submodule 521 configured to obtain identification information of the access request.
And a second obtaining sub-module 522 configured to obtain the authority information for the access authority of the target page.
A third obtaining sub-module 523 configured to obtain a detection result of whether the first page has the access right of the target page based on the right information.
By the embodiment of the disclosure, whether the first page has the access authority of the target page or not can be determined based on the identification information of the access request and the authority information aiming at the access authority of the target page, and the determination of the finally displayed picture on the first page according to the detection result is facilitated.
Fig. 5C schematically shows a block diagram of a processing submodule according to an embodiment of the disclosure.
As shown in fig. 5C, the processing sub-module 511 includes a first obtaining unit 531, a second obtaining unit 532, a configuration unit 533, and a processing unit 534. Wherein:
a first obtaining unit 531 configured to obtain first attribute information of the original picture.
A second obtaining unit 532 configured to obtain second attribute information of the first page.
A configuration unit 533 configured to configure the blur parameter based on the first attribute information and/or the second attribute information.
And the processing unit 534 is configured to perform blurring processing on the original picture to obtain a blurred picture based on the blurring parameter.
By the aid of the method and the device, when the original picture is subjected to fuzzy processing, fuzzy parameters of the picture can be dynamically configured to control the fuzzy degree of the picture, different parameters can be configured as required to generate target pictures with different fuzzy degrees, and different display effects are achieved.
FIG. 5D schematically illustrates a general block diagram of a page presentation system according to an embodiment of the disclosure.
As shown in fig. 5D, the system includes a dynamic anti-theft link module 541 (proxy server), an authority information module 542, a picture storage server 543, a synthesized picture storage server 544, a gaussian blur processing module 545, a short link generation module 546, and an image synthesis module 547. The authority information module 542 is responsible for storing authority information, querying the authority information, and returning the queried authority information to the dynamic anti-stealing link module 541. The synthesized picture storage server 544 stores a target picture synthesized using the blurred picture generated by the gaussian blur processing module 545 and the short link generated by the short link generation module 546. The synthesized picture storage server 544 uses the lazy generation method, and initially, no target picture is generated, after a corresponding request is made, it is first determined whether there is a corresponding target picture in the synthesized picture storage server 544, if not, the gaussian blur processing module 545 is triggered to generate a username picture, the short link generation module 546 is triggered to generate a short link, and finally, the target picture is synthesized through the image synthesis module 547 and stored in the synthesized picture storage server 544, so that when there is a corresponding request next time, the generated target picture can be directly returned.
Based on the above method embodiments provided by the present disclosure, a general flow of a technical scheme of a page display method provided by the embodiment of the present disclosure is described in conjunction with a general block diagram 540 shown in fig. 5D.
Specifically, the dynamic anti-stealing link module 541 sends a request for acquiring the permission information to the permission information module 542 in response to the access request sent by the first page, so as to acquire the permission information of the first page.
The dynamic anti-hotlinking module 541 determines which picture storage server to access according to the authority information acquired from the authority information module 542, and acquires a picture to be displayed therefrom. If the user has the authority, the user directly accesses the picture storage server 543 to obtain the target page containing the original picture and the picture mark. If not, the composite picture storage server 543 is accessed to obtain the target picture generated based on the original picture and the picture mark. Finally, the obtained picture is returned to the first page, so that the returned picture is shown on the first page.
Any number of modules, sub-modules, units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules and sub-modules according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units according to the embodiments of the present disclosure may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging the circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, one or more of the modules, sub-modules, units according to embodiments of the disclosure may be implemented at least partly as computer program modules, which, when executed, may perform corresponding functions.
For example, any plurality of the obtaining module 410, the detecting module 420, the processing module 430, the first presenting module 440, the second presenting module, the processing sub-module 511, the first generating sub-module 512, the second generating sub-module 513, the first obtaining sub-module 521, the second obtaining sub-module 522, the third obtaining sub-module 523, the first obtaining unit 531, the second obtaining unit 532, the configuring unit 533, and the processing unit 534 may be combined to be implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 410, the detecting module 420, the processing module 430, the first presenting module 440, the second presenting module, the processing submodule 511, the first generating submodule 512, the second generating submodule 513, the first obtaining submodule 521, the second obtaining submodule 522, the third obtaining submodule 523, the first obtaining unit 531, the second obtaining unit 532, the configuring unit 533 and the processing unit 534 may be at least partially implemented as a hardware circuit, such as Field Programmable Gate Arrays (FPGAs), Programmable Logic Arrays (PLAs), systems on a chip, systems on a substrate, systems on a package, Application Specific Integrated Circuits (ASICs), or may be implemented in hardware or firmware in any other reasonable way of integrating or packaging circuits, or in any one of three implementations, software, hardware and firmware, or in any suitable combination of any of them. Alternatively, at least one of the obtaining module 410, the detecting module 420, the processing module 430, the first presenting module 440, the second presenting module, the processing submodule 511, the first generating submodule 512, the second generating submodule 513, the first obtaining submodule 521, the second obtaining submodule 522, the third obtaining submodule 523, the first obtaining unit 531, the second obtaining unit 532, the configuring unit 533 and the processing unit 534 may be at least partially implemented as a computer program module, which, when executed, may perform a corresponding function.
FIG. 6 schematically illustrates a block diagram of a computer system suitable for implementing the page presentation method and apparatus according to an embodiment of the present disclosure. The computer system illustrated in FIG. 6 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 6, a computer system 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the system 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, system 600 may also include an input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604. The system 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure 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 storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), 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. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 602 and/or RAM 603 described above and/or one or more memories other than the ROM 602 and RAM 603.
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 or flowchart illustration, and combinations of blocks in the block diagrams 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.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (12)

1. A page display method comprises the following steps:
obtaining an access request for accessing a target page through a first page, wherein the target page comprises an original picture and a picture mark;
detecting whether the first page has the access right of the target page or not to obtain a detection result;
under the condition that the detection result indicates that the first page does not have the access right of the target page, generating a target picture based on the original picture and a picture mark; and
and displaying the target picture on the first page.
2. The method of claim 1, wherein the generating a target picture based on the original picture and a picture marker comprises:
carrying out fuzzy processing on the original picture to obtain a fuzzy picture;
generating a short link corresponding to the picture mark based on the picture mark; and
and generating the target picture based on the fuzzy picture and the short link.
3. The method of claim 1, further comprising:
and displaying the original picture and the picture mark on the first page under the condition that the detection result indicates that the first page has the access right of the target page.
4. The method of claim 1, wherein the detecting whether the first page has the access right of the target page to obtain a detection result comprises:
for an access request for accessing the target page via the first page, obtaining identification information of the access request;
acquiring authority information aiming at the access authority of the target page; and
and detecting whether the first page has the access right of the target page or not based on the identification information and the right information to obtain the detection result.
5. The method of claim 2, wherein blurring the original picture to obtain a blurred picture comprises:
acquiring first attribute information of the original picture;
acquiring second attribute information of the first page;
configuring fuzzy parameters based on the first attribute information and/or the second attribute information; and
and based on the fuzzy parameters, carrying out fuzzy processing on the original picture to obtain a fuzzy picture.
6. A page display apparatus comprising:
an obtaining module configured to obtain an access request for accessing a target page via a first page, wherein the target page includes an original picture and a picture tag;
the detection module is configured to detect whether the first page has the access right of the target page to obtain a detection result;
the processing module is configured to generate a target picture based on the original picture and a picture mark under the condition that the detection result indicates that the first page does not have the access right of the target page; and
a first presentation module configured to present the target picture on the first page.
7. The apparatus of claim 6, wherein the processing module comprises:
the processing submodule is configured to perform fuzzy processing on the original picture to obtain a fuzzy picture;
a first generation submodule configured to generate a short link corresponding to the picture mark based on the picture mark; and
a second generation submodule configured to generate the target picture based on the blurred picture and the short link.
8. The apparatus of claim 6, further comprising:
and the second display module is configured to display the original picture and the picture mark on the first page under the condition that the first page has the access right of the target page.
9. The apparatus of claim 6, wherein the detection module comprises:
a first obtaining sub-module configured to obtain, for an access request to access the target page via the first page, identification information of the access request;
a second obtaining submodule configured to obtain permission information for the access permission of the target page; and
a third obtaining sub-module configured to detect whether the first page has the access right of the target page based on the identification information and the right information to obtain the detection result.
10. The apparatus of claim 7, wherein the processing submodule comprises:
a first obtaining unit configured to obtain first attribute information of the original picture;
a second obtaining unit configured to obtain second attribute information of the first page;
a configuration unit configured to configure a fuzzy parameter based on the first attribute information and/or the second attribute information; and
and the processing unit is configured to perform blurring processing on the original picture based on the blurring parameter to obtain a blurred picture.
11. A computer system, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 5.
12. A computer readable medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one of claims 1 to 5.
CN201910564437.0A 2019-06-26 2019-06-26 Page display method and device, computer system and computer readable medium Pending CN112149030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910564437.0A CN112149030A (en) 2019-06-26 2019-06-26 Page display method and device, computer system and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910564437.0A CN112149030A (en) 2019-06-26 2019-06-26 Page display method and device, computer system and computer readable medium

Publications (1)

Publication Number Publication Date
CN112149030A true CN112149030A (en) 2020-12-29

Family

ID=73870046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910564437.0A Pending CN112149030A (en) 2019-06-26 2019-06-26 Page display method and device, computer system and computer readable medium

Country Status (1)

Country Link
CN (1) CN112149030A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685022A (en) * 2020-12-30 2021-04-20 北京字节跳动网络技术有限公司 Picture processing interface generation method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685022A (en) * 2020-12-30 2021-04-20 北京字节跳动网络技术有限公司 Picture processing interface generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10567529B2 (en) Unified tracking data management
US7958516B2 (en) Controlling communication within a container document
WO2016026384A1 (en) Client page display method, device and system
US9697188B2 (en) Method to enable cross-origin resource sharing from a webpage inside a private network
EP3345114B1 (en) Disabling malicious browser extensions
US10447742B2 (en) Information sharing method and device
US20090085921A1 (en) Populate Web-Based Content Based on Space Availability
US8856958B1 (en) Personalized content access prompt
US9865008B2 (en) Determining a configuration of a content item display environment
CN110888696A (en) Page display method and system, computer system and computer readable medium
US20140201616A1 (en) Cross-platform embeddable media player
JP6995211B2 (en) Enhanced online privacy
US20160117335A1 (en) Systems and methods for archiving media assets
US20160148006A1 (en) Privacy User Interface for Websites
US10445412B1 (en) Dynamic browsing displays
US20190379748A1 (en) Systems, devices, and methods for presenting customized content through web api
CN108241689A (en) Page resource acquisition methods, device and client device
US20180314676A1 (en) Web page nonintrusive content protection on user device
WO2020073374A1 (en) Advertisement anti-shielding method and device
US11632378B2 (en) Detecting safe internet resources
US10176153B1 (en) Generating custom markup content to deter robots
CN112149030A (en) Page display method and device, computer system and computer readable medium
US20080297521A1 (en) System and method for providing skins for a web page
US11288336B2 (en) Systems and methods for providing content items in situations involving suboptimal network conditions
CN111263025A (en) Picture processing method and device, equipment and storage medium thereof

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