URL (Uniform Resource Locator) access method, electronic equipment, server and computer readable storage medium

By introducing a method in the electronic device, the risk of accessing the first URL is transferred to the service program using a preset second URL, which solves the problem of the inevitable impact of false URLs in the prior art, and achieves higher URL access security.

CN119946641APending Publication Date: 2025-05-06FOSHAN YUAO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510078292.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The prior art is difficult to completely avoid the influence of equipment by false URLs, resulting in frequent telecommunications network fraud incidents.

Method used

By introducing a method in the electronic device, when a user triggers the first URL, he initiates an access request and accesses to the service program using the preset second URL, so that the service program obtains the first URL based on the second URL and performs operations, receives the response result and obtains network resources.

Benefits of technology

This method transfers the risk of accessing the first URL to the service program. Users do not need to identify the URL security by themselves. Even if false URLs are triggered by mistake, they will not threaten the security of users and devices, reducing the risk of telecommunications network fraud.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946641A_ABST
    Figure CN119946641A_ABST
Patent Text Reader

Abstract

The invention relates to a URL access method, electronic equipment, a server and a computer readable storage medium. The method comprises the following steps: acquiring a first URL of interaction; when a user triggers the first URL to initiate access, an access request is initiated according to a preset second URL, and a service program is accessed, so that the service program obtains the first URL based on the second URL and operates the first URL; receiving a response result which is returned by the service program and is used for executing operation on the first URL, and acquiring network resources of the first URL based on the response result; according to the technical scheme, the user does not need to install security software on the electronic equipment, the user does not need to identify the security of the URL by using own experience, the user can trigger URL access trustingly, and the risk that the user is fraud by a telecommunication network when accessing a false URL is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer communication technology, and in particular to a method for accessing a URL, an electronic device, a server, and a computer-readable storage medium. Background Art

[0002] On the computer Internet, access to resources is generally achieved through URL (uniform resource locator). The main form of URL is the website link, and there are many other forms. Various electronic devices, such as smart phones, personal computers, tablets, etc., use URLs extensively, such as website links, QR codes, etc. Therefore, how to ensure the security of URLs is crucial.

[0003] At present, the use of fake URLs for telecommunications network fraud is common, and various fraud techniques emerge in an endless stream, bringing great harm to the society. Taking mobile phone text messages as an example, criminals will send text messages carrying fraudulent URLs to users' mobile phones through various channels or even fake base stations, inducing users to click on fake URLs, download Trojan viruses, fill in financial account information, personal privacy information, etc. to commit fraud. In addition, various APP applications, such as WeChat, QQ, Douyin, DingTalk, etc., criminals send fake URLs to users, or send them to QQ groups, WeChat groups, Moments, etc., to induce users to click on fake URLs to initiate visits to commit fraud, various phishing websites, and click hijacking that uses visual deception to induce users to click on transparent iframes. These technical means are hard to guard against.

[0004] Under current technical conditions, the technology for detecting fake URLs has become very mature. For example, some mobile phones have the function of intercepting text messages, and some mobile phones are pre-installed with mobile system managers to detect URL links in text messages; most APP application clients also have the function of detecting and intercepting fake URLs, such as WeChat, QQ, Weibo and other applications. When sending or receiving a message carrying a URL, the client will send the URL link to the background server for detection and intercept according to the set interception rules; browsers generally also have the function of detecting and intercepting fake URLs. When accessing the URL link through the browser, the browser will send it to the background server for detection and intercept according to the set interception rules; and the more commonly used solution is to install security software on the device, such as mobile system managers, Tencent mobile managers, 360 mobile guards, Baidu mobile guards, etc., especially the National Anti-Fraud Center APP. These security software can send URL links on electronic devices to the background server for detection and identification of fake URLs.

[0005] However, the inventor found that although the existing detection technology for false URLs is very mature, it is still impossible to completely avoid the influence of false URLs of devices, resulting in frequent fraud incidents using false URLs. The main reasons are as follows: First, although the security software has strong detection and identification capabilities at the back end, it needs to install the client on the electronic device, and users generally do not actively install these security software due to various factors; for some low-end electronic devices, it is also impossible to adapt the version of the security software, resulting in the inability to install and use. Secondly, criminals can convert false URLs through technical means, or jump multiple times to evade detection, which greatly increases the difficulty of security software to detect false URLs. Sometimes it is necessary to rely on the deceived user to actively report and other methods to know the false URL. In this case, fraud has actually occurred. Finally, although the detection means are very mature, the risk of accessing false URLs is still on electronic devices, so criminals can always find loopholes and deceive users to click on false links. There will always be some users who are deceived due to insufficient identification experience or the inability of detection technology to detect false URLs normally, resulting in the difficulty of using false URLs for telecommunications network fraud. It has not been eradicated for a long time.

[0006] At present, in order to prevent users from accidentally clicking on fake URLs, it is still necessary to rely on user experience to identify them. For example, users are advised not to open unfamiliar links casually, and they are advised to install security software, such as the National Anti-Fraud Center APP. However, for most users, fake URL identification requires high professionalism, and it is difficult to rely on their own experience for accurate identification; and if we just emphasize "don't open unfamiliar links casually", users will not dare to click on URLs on any electronic device. This is a practice of throwing the baby out with the bathwater, which has a huge negative impact on legitimate URLs, resulting in no one daring to click on normal URLs, seriously affecting the effect of using URLs for promotion and affecting the normal use of electronic devices.

[0007] Based on this, it is necessary to provide improved technical solutions for accessing URLs, enhance the security of electronic devices accessing URLs, and reduce the risk of telecommunications network fraud using fake URLs. Summary of the invention

[0008] In response to at least one of the above technical problems, the present application provides a method for accessing a URL, an electronic device, a server, and a computer-readable storage medium to improve the security of accessing a URL.

[0009] An electronic device, comprising:

[0010] one or more processors;

[0011] Memory; and

[0012] One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being used to execute the following instructions:

[0013] Obtain an interactive first URL; when a user triggers the first URL to initiate access, initiate an access request according to a preset second URL and access a service program, so that the service program obtains the first URL based on the second URL and performs an operation on the first URL; receive a response result of the operation performed on the first URL returned by the service program, and obtain the network resource of the first URL based on the response result.

[0014] In some embodiments, when the one or more programs execute the instruction to obtain the network resource of the first URL based on the response result, the one or more programs include:

[0015] When the response result indicates that the first URL is a secure URL, access the network resources of the first URL; when the response result indicates that the first URL is an unsafe URL, prevent access to the network resources of the first URL.

[0016] In some embodiments, when the one or more programs execute instructions that cause the service program to obtain the first URL based on the second URL and perform operations on the first URL, the one or more programs include:

[0017] A communication connection is established between the electronic device and the service program using the second URL; and the first URL is transferred to the service program based on the communication connection for access or security detection.

[0018] In some embodiments, before executing the instruction to initiate an access request according to the preset second URL and access the service program, the one or more programs further include:

[0019] Obtain a third URL pointing to the service program, convert the first URL into a transfer parameter and add it to the third URL to obtain a second URL;

[0020] When the one or more programs execute the instruction that enables the service program to obtain the first URL based on the second URL and perform an operation on the first URL, the one or more programs include:

[0021] Based on the access request, the service program parses the first URL from the second URL, and accesses corresponding network resources according to the first URL or performs security detection on the first URL.

[0022] In some embodiments, when the one or more programs execute instructions to initiate an access request according to a preset second URL and access the service program, the one or more programs include:

[0023] Invoke a browser, transfer the second URL to the browser and initiate an access request to the service program;

[0024] When the one or more programs execute the instruction to obtain the network resource of the first URL based on the response result, the one or more programs include:

[0025] When the response result indicates that the first URL is a secure URL, the redirection instruction and the first URL returned by the service program are received by the browser, and the browser accesses the corresponding network resource according to the first URL.

[0026] In some embodiments, the one or more programs are further configured to execute the following instructions, including:

[0027] When the user performs an application operation on the first URL, a second URL is generated according to the first URL; the second URL is used to replace the first URL to execute a corresponding application; wherein the application operation includes copying, forwarding, sharing or collecting.

[0028] A server, comprising:

[0029] one or more processors;

[0030] Memory; and

[0031] A service program is stored in the memory and configured to be executed by the one or more processors, wherein the service program is used to execute the following instructions, including:

[0032] Responding to an access request initiated by an electronic device according to a preset second URL; wherein the electronic device initiates the access request when a user triggers an interactive first URL; obtaining the first URL based on the second URL, and performing an operation on the first URL; returning a response result of the operation performed on the first URL to the electronic device, so that the electronic device obtains the network resource of the first URL based on the response result.

[0033] In some embodiments, when the one or more programs execute an instruction to enable the electronic device to obtain the network resource of the first URL based on the response result, the one or more programs include:

[0034] When the first URL is a secure URL, returning an indication that the first URL is a secure URL to the electronic device, so that the electronic device accesses the network resource of the first URL;

[0035] When the first URL is an unsafe URL, an indication that the first URL is an unsafe URL is returned to the electronic device, so that the electronic device blocks access to network resources of the first URL.

[0036] In some embodiments, when the one or more programs execute the instruction to obtain the first URL based on the second URL, the one or more programs include:

[0037] receiving an access request sent by the electronic device using the second URL, and parsing the first URL from the access request;

[0038] The second URL includes a third URL and the first URL, and the first URL is converted into a transmission parameter and added to the third URL.

[0039] In some embodiments, when the one or more programs execute instructions for obtaining the first URL based on the second URL and performing operations on the first URL, the one or more programs include:

[0040] Receiving an access request initiated by a browser of the electronic device based on the second URL;

[0041] Parsing the first URL from the second URL and performing a security detection operation on the first URL; wherein the second URL is a URL generated based on the first URL;

[0042] When the first URL is a secure URL, a redirection instruction and the first URL are sent to the browser, so that the browser accesses the network resource of the first URL.

[0043] In some embodiments, when the one or more programs execute an instruction to perform a security detection operation on the first URL, the one or more programs include:

[0044] Check whether the first URL is in the whitelist;

[0045] If so, it is determined to be a safe URL, otherwise further checking whether the first URL is in the blacklist;

[0046] If so, it is determined to be an unsafe URL; otherwise, the first URL is further used to access network resources, and a security check is performed on the loaded resources.

[0047] A method for accessing a URL, comprising:

[0048] Get the first URL of the interaction;

[0049] When the user triggers the first URL to initiate access, an access request is initiated according to the preset second URL and access is made to the service program;

[0050] enabling the service program to obtain the first URL based on the second URL and perform an operation on the first URL;

[0051] Receiving a response result returned by the service program for performing an operation on the first URL;

[0052] Acquire the network resource of the first URL based on the response result.

[0053] In some embodiments, obtaining the network resource of the first URL based on the response result includes:

[0054] When the response result indicates that the first URL is a secure URL, access the network resource of the first URL;

[0055] When the response result indicates that the first URL is an unsafe URL, access to the network resource of the first URL is blocked.

[0056] In some embodiments, enabling the service program to obtain the first URL based on the second URL and perform an operation on the first URL includes:

[0057] Using the second URL to establish a communication connection between the electronic device and the service program;

[0058] The first URL is transferred to the service program based on the communication connection for access or security detection.

[0059] In some embodiments, before initiating an access request according to a preset second URL and accessing the service program, the method further includes:

[0060] Obtain a third URL pointing to the service program, convert the first URL into a transfer parameter and add it to the third URL to obtain a second URL;

[0061] The service program obtains the first URL based on the second URL and performs an operation on the first URL, including:

[0062] Based on the access request, the service program parses the first URL from the second URL, and accesses corresponding network resources according to the first URL or performs security detection on the first URL.

[0063] In some embodiments, initiating an access request and accessing a service program according to a preset second URL includes:

[0064] Invoke a browser, transfer the second URL to the browser and initiate an access request to the service program;

[0065] Acquiring the network resource of the first URL based on the response result includes:

[0066] When the response result indicates that the first URL is a secure URL, the redirection instruction and the first URL returned by the service program are received by the browser, and the browser accesses the corresponding network resource according to the first URL.

[0067] In some embodiments, the method for accessing a URL further includes:

[0068] When the user performs an application operation on the first URL, a second URL is generated according to the first URL; the second URL is used to replace the first URL to execute a corresponding application; wherein the application operation includes copying, forwarding, sharing or collecting.

[0069] A method for accessing a URL, comprising:

[0070] Responding to an access request initiated by the electronic device according to a preset second URL; wherein the electronic device initiates the access request when the user triggers the interactive first URL;

[0071] Obtaining the first URL based on the second URL;

[0072] Performing an operation on the first URL;

[0073] A response result of performing the operation on the first URL is returned to the electronic device, so that the electronic device acquires the network resource of the first URL based on the response result.

[0074] In some embodiments, returning a response result of performing an operation on the first URL to the electronic device so that the electronic device acquires a network resource of the first URL based on the response result includes:

[0075] When the first URL is a secure URL, returning an indication that the first URL is a secure URL to the electronic device, so that the electronic device accesses the network resource of the first URL;

[0076] When the first URL is an unsafe URL, an indication that the first URL is an unsafe URL is returned to the electronic device, so that the electronic device blocks access to network resources of the first URL.

[0077] In some embodiments, obtaining the first URL based on the second URL includes:

[0078] receiving an access request sent by the electronic device using the second URL, and parsing the first URL from the access request;

[0079] The second URL includes a third URL and the first URL, and the first URL is converted into a transmission parameter and added to the third URL.

[0080] In some embodiments, obtaining the first URL based on the second URL and performing an operation on the first URL includes:

[0081] Receiving an access request initiated by a browser of the electronic device based on the second URL;

[0082] Parsing the first URL from the second URL and performing a security detection operation on the first URL; wherein the second URL is a URL generated based on the first URL;

[0083] When the first URL is a secure URL, a redirection instruction and the first URL are sent to the browser, so that the browser accesses the network resource of the first URL.

[0084] In some embodiments, the service program performs a security detection operation on the first URL, including:

[0085] Check whether the first URL is in the whitelist;

[0086] If so, determine it as a safe URL, otherwise, check whether the first URL is in the blacklist;

[0087] If so, it is determined to be an unsafe URL; otherwise, the network resource is accessed using the first URL, and a security check is performed on the network resource, and a response result generated from the first URL detection result is returned to the electronic device.

[0088] A computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, wherein the at least one instruction, the at least one program, the code set or the instruction set is loaded by the processor and executes the steps of the method for accessing a URL.

[0089] The technical solution of the embodiment of the present application is that when a user triggers a first URL to initiate access, an access request is initiated according to a preset second URL and access is made to a service program, so that the service program obtains the first URL using the second URL and performs an operation on the first URL, receives a response result returned by the service program for performing the operation on the first URL, and obtains the network resource of the first URL based on the response result; with this technical solution, the electronic device transfers the risk of accessing the first URL to the service program, and the user does not need to use his or her own experience to identify the security of the URL. Even if the user mistakenly triggers the first URL as a false URL, it will not threaten the safety of the user and his or her electronic device, so that the user can safely access the URL on the electronic device, reducing the risk of the user being subjected to telecommunications network fraud using a false URL. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] Figure 1 is a schematic diagram of an example electronic device structure;

[0091] Figure 2 is a schematic diagram of an exemplary electronic device accessing a URL;

[0092] Figure 3 This is a schematic diagram of an example service program accessing a first URL;

[0093] Figure 4 This is another example of a service program accessing a first URL;

[0094] Figure 5 is a schematic diagram of an example of a conventional electronic device accessing a URL;

[0095] Figure 6 This is a sample URL access process diagram;

[0096] Figure 7 This is a sample flow chart of accessing a URL based on a browser;

[0097] Figure 8 This is another example of a flow chart of accessing a URL based on a browser;

[0098] Fig. 9 is a schematic diagram of a server structure of an embodiment;

[0099] Fig.10 This is a sample service program verification diagram;

[0100] Fig.11 This is an example of a server security check flow chart;

[0101] Fig.12 This is a sample URL access process diagram;

[0102] Fig.13 is a flow chart of a method for accessing a URL according to an embodiment;

[0103] Fig.14 is an example flow chart of electronic access to a network resource at a first URL;

[0104] Fig.15 The following is a flow chart of a method for accessing a URL according to another embodiment. DETAILED DESCRIPTION

[0105] The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0106] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0107] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0108] The present application provides an electronic device, which may be a mobile phone (cell phone), a computer, a digital broadcast terminal, a message transceiver, an ATM machine, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0109] Exemplarily, the electronic device referred to in this embodiment may include: a hardware layer, including a CPU, memory, sensors, etc.; a kernel layer, providing functions such as device driver, memory management, and process management; a middle layer, including system services, such as location services, network services, etc.; among which, network services can be responsible for processing network requests and responses of applications; an application layer, including various applications built by developers using APIs, which communicate over the network through the system services of the middle layer.

[0110] For example, Figure 1 As shown, Figure 1This is an example of an electronic device structure diagram. The electronic device of the present application may include: one or more input devices, one or more processors, memory, etc. In addition, the electronic device may also include a display, a power component, a multimedia component, an audio component, an input / output interface (I / O interface), a sensor, and a communication component, etc. Among them,

[0111] The processor may be used to control the overall operations of the electronic device, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.

[0112] Memory, configured to store various types of data to support operations in an electronic device, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0113] Power supply components provide power to various components of electronic equipment.

[0114] The multimedia components may include a front camera and / or a rear camera, as well as other components related to multimedia applications.

[0115] The display may include a liquid crystal display (LCD) and a touch panel (TP).

[0116] An audio component is configured to output and / or input audio signals.

[0117] The input / output interface provides an interface between the processor and the peripheral interface module, which may be a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0118] Sensors may include one or more sensors for providing various aspects of status assessment for electronic devices, such as proximity sensors, which are configured to detect the presence of nearby objects without any physical contact.

[0119] The communication component is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof.

[0120] The electronic device as described above can run one or more programs, wherein the one or more programs are stored in a memory and configured to be executed by one or more processors. Figure 2 As shown, Figure 2The diagram is a schematic diagram of an exemplary electronic device accessing a URL, wherein one or more programs are used to execute the following instructions, including:

[0121] Obtain the first URL of the interaction; wherein the first URL is a URL that can be obtained and accessed by the electronic device; for example, a URL link carried in a text message, a URL link carried in a social software message, a URL address stored in a QR code or barcode scanned by an electronic device, a hyperlink to a web page on a website, etc., wherein the first URL is generally displayed as an underlined string when displayed on an electronic device. When the user needs to initiate access to the first URL, the first URL is triggered by an input device (such as a mouse click or a touch screen touch) to initiate access. At this time, the electronic device does not use the first URL to initiate an access request, nor does it directly access the network resource corresponding to the first URL, but instead uses the second URL to initiate an access request and access the service program. The second URL is a URL pointing to the service program.

[0122] Exemplarily, the service program may be run on a server, and multiple electronic devices may access the service program through the Internet. The service program obtains the first URL using the second URL, performs operations on the first URL, and returns response results to the electronic devices.

[0123] Since the electronic device transfers the access to the first URL to the service program, the service program performs the corresponding operation on the first URL on behalf of the electronic device, and the electronic device can access the corresponding network resources based on the response result of the service program. In this way, the electronic device can avoid the risk of directly accessing a false URL, thereby ensuring the safety of the user and the electronic device used; and since the user will initiate an access request based on the second URL when the electronic device triggers the first URL, it means that even if there is an unsafe first URL in the electronic device, there will be no security risk, and there is no need to perform security detection on all first URLs on the electronic device.

[0124] As in the scheme of the aforementioned embodiment, the first URL may refer to various types of URLs used on electronic devices; illustratively, the first URL may be a URL link carried in a text message, a URL link carried in an interactive message of QQ, WeChat, or Weibo, a URL link recognized by an electronic device scanning a QR code or a barcode, etc. The protocol used by the second URL may include HTTP (Hypertext Transfer Protocol), FTP (File Transfer Protocol), SMTP (Simple Mail Transfer Protocol), etc.; network resources refer to various information resources that can be obtained through the Internet, including web pages, online databases, electronic documents, digital document information, electronic newspapers, etc.; the service program may perform various operations on the first URL, such as performing security checks on the first URL, accessing the network resources corresponding to the first URL, and performing jump, conversion, and other operations on the first URL.

[0125] For example, Figure 3 As shown, Figure 3 This is an example schematic diagram of a service program accessing a first URL. The service program can use the first URL to access corresponding network resources and perform security checks on the network resources. When the network resources corresponding to the first URL are safe, the network resources can be forwarded to the electronic device with a response result, so that the electronic device obtains the network resources corresponding to the first URL, thereby avoiding the electronic device directly linking to the corresponding network resources and improving the security of accessing the first URL.

[0126] For example, Figure 4 As shown, Figure 4 This is another example of a service program accessing a first URL. The service program can use various URL detection technologies to perform security detection on the first URL and return a response result to the electronic device. If the security detection shows that the first URL is an unsafe false URL, a response result indicating that the first URL is an unsafe URL can be returned to the electronic device so that the electronic device can block access to the first URL. Conversely, if the response result shows that the first URL is a safe URL, a response result indicating that the first URL is a safe URL can be returned to the electronic device so that the electronic device can access the network resources corresponding to the first URL.

[0127] like Figures 2 to 4As shown, when a user triggers the first URL on an electronic device to access a corresponding network resource, the electronic device does not directly make an access request to the network resource, but uses the second URL to access the service program, and the service program accesses the first URL on behalf of the electronic device or performs security checks on the first URL. When multiple electronic devices point to the service program through the second URL, each electronic device can transfer the access request to the first URL to the service program, and the service program can perform operations on the first URL on behalf of these electronic devices. For example, various technical means can be used on the service program to verify the security of the first URL, and then the electronic device accesses the network resource corresponding to the first URL according to the response result of the service program; it can be seen that since the access request to the network resource using the first URL has been transferred from the electronic device to the service program, in this case, even if the first URL is a false URL, the corresponding network resource is a Trojan virus, a fraud APP, a phishing website, a fraud applet, a fraud website, etc., no security risk will be generated. Even if the user accidentally clicks the first URL for access, the electronic device can be prevented from directly loading these network resources. In other words, the security risk will only affect the service program and will not threaten the electronic device, thereby ensuring the safety of the user's use of the electronic device.

[0128] Based on the scheme of the above embodiment, since the electronic device does not need to bear the risk of accessing network resources, the user can safely click on the first URL on the electronic device, and no longer needs to use his own experience to identify the security of the first URL. At the same time, the second URL of the access request initiated by the electronic device is safe, and only when the user triggers access to the first URL will it replace the electronic device to access the first URL. In other words, if the first URL is not triggered for access, the service program does not need to access the first URL on the electronic device, so the burden of the service program will not be very large. Therefore, in the scheme of this embodiment, there is a false URL on the electronic device. If the user has identified it or the user never triggers access to the first URL, the service program does not need to access and verify it. If the electronic device does not have any security software installed, or the security software cannot correctly identify the false URL, even if the user mistakenly triggers the first URL for access, it will not cause security risks to the electronic device.

[0129] refer to Figure 5 As shown, Figure 5 is a schematic diagram of an example of a conventional electronic device accessing a URL. Figure 5In the dashed access path, the electronic device will directly use the first URL to initiate an access request to access the network resource. When the first URL is a false URL, if the user accidentally clicks the first URL, once the electronic device lacks the corresponding security software or cannot accurately identify the first URL as a false URL during the access process, the electronic device is extremely easy to access the network resource of the false URL, which brings great security risks to the user's use of the electronic device. Especially for some low-end electronic devices, it is impossible to install security software or other plug-ins, and these electronic devices are also extremely easy to become the target of telecommunications network fraud. Furthermore, even if the electronic device has a security software client installed, if the security software cannot accurately detect the security of the first URL, the electronic device is still a security risk end, and it is impossible to completely avoid the risk of the electronic device accessing a false URL.

[0130] In some embodiments, Figure 4 As shown, when one or more programs of the electronic device execute the instruction to obtain the network resource of the first URL based on the response result, it may include the following:

[0131] When the response result indicates that the first URL is a secure URL, access the network resources of the first URL; when the response result indicates that the first URL is an unsecure URL, block access to the network resources of the first URL; wherein the service program obtains the first URL based on the second URL and performs a security detection operation on the first URL.

[0132] Exemplarily, after the service program obtains the first URL, it performs a security check operation on the first URL. The electronic device receives a response from the service program to the security check on the first URL. If the response indicates that the first URL is a secure URL, the electronic device can access the network resources corresponding to the first URL. When the response indicates that the first URL is an unsecure URL, the electronic device blocks access to the network resources corresponding to the first URL. The solution of the above embodiment can ensure the security of the electronic device's access to the first URL.

[0133] In some embodiments, when one or more programs of the electronic device execute instructions that cause the service program to obtain the first URL based on the second URL and perform operations on the first URL, the instructions may include the following:

[0134] A communication connection is established between the electronic device and the service program using the second URL, and the first URL is transferred to the service program based on the communication connection for access or security detection.

[0135] For example, the electronic device may establish a communication connection with the service program using the second URL, and then transmit the first URL to the service program based on the communication connection; Figure 3 As shown, the service program can use the first URL to access the corresponding network resource on behalf of the electronic device, and then detect whether the network resource is safe and return it to the electronic device. Figure 4 As shown, the service program can also perform a security check on the first URL, and then return the check result to the electronic device in the form of a response result, thereby realizing a security check function on the first URL.

[0136] In some embodiments, the second URL may include a third URL pointing to the service program and the first URL, and the first URL is converted into a transfer parameter and added to the third URL; accordingly, when one or more programs of the electronic device execute an instruction that enables the service program to obtain the first URL based on the second URL and perform an operation on the first URL, it may include the following:

[0137] Based on the access request, the service program parses the first URL from the second URL, and accesses corresponding network resources according to the first URL or performs security detection on the first URL.

[0138] Exemplarily, using a third URL pointing to a service program, the electronic device can add the first URL as a transmission parameter to the third URL to obtain the second URL. When the user triggers the first URL, the electronic device uses the second URL to initiate an access request to the service program. The service program parses the first URL from the second URL and then performs operations on the first URL.

[0139] For example, the first URL is the website link "https: / / y.100.cn", and the third URL is the URL "http: / / www.abc.cn" pointing to the service program. At this time, the first URL "https: / / y.100.cn" can be added as a transmission parameter to the third URL "http: / / www.abc.cn" to obtain the second URL "http: / / www.abc.cn / https: / / y.100.cn". When the electronic device uses the second URL to access the service program, the service program can parse the first URL "https: / / y.100.cn" from the second URL. The service program performs a security check on the first URL "https: / / y.100.cn" or accesses the corresponding network resources according to the first URL.

[0140] In some embodiments, for the second URL, the first URL can be added as a parameter to the third URL and passed to the service program. In terms of technical implementation, URL encoding technology can be used to encode the first URL on the electronic device and then decode it on the service program. Exemplarily, the electronic device can URL encode the string of the first URL, add the encoded string as a parameter to the third URL, and use the corresponding programming language in the service program to parse the string of the first URL for decoding, and convert it back to the first URL for use. For example, the first URL "https: / / y.100.cn" is encoded using URL encoding technology, and then it is added as a parameter to the third URL "http: / / www.abc.cn" to obtain the second URL, thereby realizing the function of passing the first URL to the service program. In addition, due to the length limit of the URL, if the length of the first URL is too long and the URL is too long to be sent, the data of the first URL can also be transmitted using a POST request or other methods.

[0141] Exemplarily, URL encoding can be implemented using a function or library provided by a programming language, for example, by using a function to convert special characters in the first URL into a specific format; a space can be converted into %20, a slash can be converted into %2F, etc. The encoded link is added as a parameter to the third URL. In a URL, a parameter usually starts with a "?" symbol, a parameter name and a parameter value can be connected using a = symbol, and multiple parameters are separated by an & symbol.

[0142] For example, assuming that the encoded first URL is url=https%3A%2F%2Fy.100.cn%2F, it can be added as a parameter to the third URL "http: / / www.abc.cn" to obtain the second URL "http: / / www.abc.cn / ?url=https%3A%2F%2Fy.100.cn%2F". The above-mentioned second URL formation process is only an example and does not constitute a limitation on its form. The link in the example is not a real URL link, hereby declared.

[0143] In some embodiments, when one or more programs of the electronic device execute instructions to initiate an access request according to a preset second URL and access the service program, the instructions may include the following:

[0144] Call the browser, pass the second URL to the browser and initiate an access request to the service program; wherein the browser here can refer to a browser application installed on the electronic device, or it can be a browser that comes with an application on the electronic device (such as QQ, WeChat, Weibo, etc.).

[0145] For example, Figure 6 As shown, Figure 6 This is an example of a URL access process diagram. When a user triggers the first URL displayed on an electronic device to initiate access, a second URL generated based on the first URL is obtained, the electronic device calls the browser, passes in the second URL to be accessed, and accesses the service program through the browser. The service program parses the first URL from the second URL, then performs operations on the first URL, and returns a response result to the browser.

[0146] In some embodiments, when one or more programs of the electronic device execute an instruction to obtain the network resource of the first URL based on the response result, the following may be included:

[0147] When the response result indicates that the first URL is a secure URL, the redirection instruction and the first URL returned by the service program are received by the browser, and the browser accesses the corresponding network resource according to the first URL.

[0148] For example, Figure 7 As shown, Figure 7 This is an example of a process diagram for accessing a URL based on a browser. When the first URL is triggered, the access process may include the following: ① Call the browser to pass in the second URL, and access the service program through the browser; ② The service program parses the first URL and uses URL detection technology to perform security detection on the first URL; ③ Detection determines that the first URL is a safe URL; ④ The service program returns a redirection instruction and the first URL to the browser; ⑤ After receiving the redirection instruction, the browser redirects access to the network resource of the first URL.

[0149] In some embodiments, when one or more programs of the electronic device execute an instruction to obtain the network resource of the first URL based on the response result, the following may be included:

[0150] When the response result indicates that the first URL is an unsafe false URL, the browser receives the false URL indication information returned by the service program, blocks access to the network resources of the first URL, and issues an alarm to the user.

[0151] For example, Figure 8 As shown, Figure 8This is another example of a process diagram for accessing a URL based on a browser. The access process may include the following: ① calling the browser to pass in the second URL, and accessing the service program through the browser; ② the service program parses the first URL and uses URL detection technology to perform a security check on the first URL; ③ the detection determines that the first URL is an unsafe false URL; ④ the service program returns an indication to the browser that the first URL is a false URL; ⑤ the browser receives the network resource blocked by the service program from accessing the first URL, and issues an alarm to the user.

[0152] In some embodiments, based on the technical solutions of the embodiments of the present application, application embodiments in mobile phones are listed below.

[0153] For example, a mobile phone receives a text message: "Clearing reminder: Your number card has a total of 36,000 points and will be cleared soon. You can exchange it for 3,600 yuan. Please click d.c3g.cn / 34m Receive, reject reply R", wherein the first URL is the website link "d.c3g.cn / 34m" carried in the text message, which is a false URL, and the third URL is the URL "http: / / www.abc.cn" pointing to the service program. At this time, the first URL "d.c3g.cn / 34m" can be added as a transfer parameter to the third URL "http: / / www.abc.cn" to obtain the second URL "http: / / www.abc.cn / d.c3g.cn / 34m" (for example only). When the electronic device uses the second URL to access the service program, the service program can parse the first URL "d.c3g.cn / 34m" from the second URL, and then perform operations on the first URL "d.c3g.cn / 34m".

[0154] When the service program performs a security check operation on the first URL "d.c3g.cn / 34m", URL detection technology can be used to detect and obtain that the first URL "d.c3g.cn / 34m" is an unsafe false URL. At this time, the service program returns a response result that the first URL is an unsafe false URL to the electronic device, and the electronic device blocks access to the network resources corresponding to the first URL; when the service program performs an access operation on the first URL "d.c3g.cn / 34m", the first URL "d.c3g.cn / 34m" can be used to access the corresponding network resources. Since the first URL is an unsafe false URL, such as a Trojan virus, a fraudulent APP, a phishing website, a fake website, etc., at this time, the service program will prevent these network resources from being returned to the electronic device, and can return a response result that the first URL is an unsafe false URL to the electronic device, thereby ensuring the safety of the electronic device.

[0155] As in the solution of the above embodiment, the mobile phone's access to the first URL is transferred to the service program, and the service program can perform security detection on the first URL or access the network resources corresponding to the first URL on behalf of the mobile phone; even if the user clicks on the first URL in the text message to initiate access, it will not threaten the security of the mobile phone; at the same time, the service program can use various URL detection technologies to detect that the first URL is an unsafe false URL, thereby avoiding the security risk of the mobile phone directly accessing the network resources of the first URL.

[0156] For example, a mobile phone receives a text message: "Hello, the email has arrived. https: / / y.100.cn , reject reply R", wherein the first URL is the website link "https: / / y.100.cn" carried in the text message, which is a secure URL, and the third URL is the URL "http: / / www.abc.cn" pointing to the service program. At this time, the first URL "https: / / y.100.cn" can be added as a transmission parameter to the third URL "http: / / www.abc.cn" to obtain the second URL "http: / / www.abc.cn / https: / / y.100.cn". When the electronic device uses the second URL to access the service program, the service program can parse the first URL "https: / / y.100.cn" from the second URL, and the service program performs a security check on the first URL "https: / / y.100.cn". When the service program passes the security check and obtains that the first URL "https: / / y.100.cn" is a secure URL, the service program can return a corresponding HTTP status code and the first URL. The HTTP status code indicates that the browser redirects, and the browser uses the first URL "https: / / y.100.cn" to access the corresponding network resources.

[0157] It can be seen that when the user clicks on the first URL in the text message to initiate access, if the first URL is safe, the service program can redirect the browser to the first URL to access the corresponding network resources by returning a response to the browser. For the operation on the user side, no additional operations are added. It is still the conventional click on the first URL to trigger access, thereby realizing security detection and the access process to the first URL.

[0158] In some embodiments, one or more programs of the electronic device are also used to execute the following instructions, including: when the user performs an application operation on the first URL, generating a second URL based on the first URL; using the second URL to replace the first URL to execute the corresponding application; wherein the application operation includes copying, forwarding, sharing or collecting.

[0159] Exemplarily, when a first URL on an electronic device is copied, forwarded, shared, added to a URL favorite, or added to a bookmark, etc., a second URL can be generated based on the first URL. For example, the first URL can be added as a transfer parameter to a third URL to obtain the second URL, and then the first URL is replaced with the second URL, thereby ensuring that the second URL can also be security checked when it is accessed.

[0160] The electronic device of each of the above-mentioned embodiments has a new URL access strategy. Access to the first URL by various applications on the electronic device will be transferred to the service program. The electronic device will no longer be subject to the performance restrictions of the electronic device when processing the first URL. For example, when performing a security check on the first URL, there is no need to install a client of security software on the electronic device, and the problem of different detection standards of different security software is also solved, so that the user can safely click on the first URL to initiate access. Furthermore, since the service program can be set up in the cloud, the service program can make full use of various URL detection technical means to perform a security check on the first URL. With the continuous development of URL detection technology, the detection capability can also be continuously improved, especially the big data and AI detection capabilities can be fully utilized to improve the detection accuracy. For the implementation of the technical solution of the present application, it can be completed by upgrading the existing electronic device, and it can also be configured and implemented on the newly manufactured electronic device, which is more conducive to promotion and use.

[0161] The present application provides a server, which can be a computer system that provides computing power and runs software applications in a network environment, and provides services to other machines, such as the electronic devices in the above embodiments provide computing or application services, which can usually be implemented by a high-performance computer and can provide services to the outside through the network.

[0162] In some embodiments, the server of the present application may include: one or more processors; a memory; and a service program, the service program being stored in the memory and configured to be executed by the one or more processors. Fig. 9 As shown, Fig. 9 The server structure diagram of an embodiment is a schematic diagram of a server, the server may include a processor and a memory connected through a system bus; it may also include a communication interface, an input device and a display screen, etc. The processor is used to provide computing power, the memory may include a non-volatile storage medium and an internal memory, the non-volatile storage medium stores an operating system and a computer program; the communication interface is used to communicate with an external terminal in a wired or wireless manner; those skilled in the art can understand that Fig. 9The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation of the scheme of the present application. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0163] In some embodiments, the service program is used to execute the following instructions, including: responding to an access request initiated by the electronic device based on a preset second URL; wherein the electronic device initiates the access request when the user triggers the interactive first URL; exemplarily, when the user needs to initiate access to the first URL, the first URL on the display is triggered through the input device of the electronic device to initiate access, and the electronic device uses the second URL to initiate the access request.

[0164] The first URL is obtained based on the second URL, and an operation is performed on the first URL; illustratively, the electronic device transmits the first URL to the service program through the second URL, and the service program replaces the electronic device to use the first URL to access the corresponding network resource.

[0165] A response result of performing an operation on the first URL is returned to the electronic device, so that the electronic device obtains the network resource of the first URL based on the response result; exemplarily, the service program responds to the access request of the electronic device and returns the response result of accessing using the first URL to the electronic device.

[0166] Exemplarily, the service program can use the first URL to access the corresponding network resources and perform security checks on the network resources. When the network resources corresponding to the first URL are safe, the network resources can be forwarded to the electronic device with a response result, thereby avoiding the electronic device from directly linking to the corresponding network resources and improving the security of accessing the first URL.

[0167] Exemplarily, the service program may utilize the first URL for security detection, and may utilize various URL detection technologies to perform security detection on the first URL, and return a responsive security detection result to the electronic device. If the security detection determines that the first URL is an unsafe false URL, then the security detection result indicating that the first URL is an unsafe URL may be returned to the electronic device, so that the electronic device can block access to the first URL. Conversely, if the security detection determines that the first URL is a safe URL, then the security detection result indicating that the first URL is a safe URL may be returned to the electronic device, instructing the electronic device to access the network resources corresponding to the first URL.

[0168] For example, the first URL is an address for accessing a network resource, and the first URL may be a URL link carried in a text message received by a text message program, a URL link carried in an interactive message of a social software, or a URL link on an application, or a URL in a QR code or barcode scanned / saved by an electronic device, etc. The protocol used between the server and the electronic device when accessing through the second URL may include HTTP, FTP, SMTP, etc.

[0169] Based on the server of the present application, its service program can provide services for multiple electronic devices. For example, all access terminals under a certain operator can be provided with services by a service program of a server. For another example, all mobile phones under a certain brand can be provided with services by a service program of a server.

[0170] When the user triggers the first URL on the electronic device to access the network resource, the network resource will not be accessed directly, but the second URL will be used to access the service program. The service program accesses the first URL on behalf of the electronic device. Each electronic device can transfer the access to the first URL to the service program. The service program can access the first URL on behalf of the electronic device. The service program returns the response result to the electronic device, so that the electronic device accesses the network resource of the first URL. Since the access request to the network resource using the first URL has been transferred from the electronic device to the service program, the electronic device will not directly access the network resource, which ensures the safety of the electronic device. Even if the first URL is a false URL, the user does not have to worry about the risk of the electronic device he uses. The user can safely click on any first URL on the electronic device to access. Since the service program of the server can provide services for each electronic device in a centralized manner, it is also convenient to use various URL detection technologies to verify the security of the first URL, which can improve the detection accuracy. Compared with the method of requiring each electronic device to install security software, it not only eliminates the trouble of users installing security software and avoids the problem that low-end electronic devices cannot match, but also can significantly improve the detection accuracy and ensure the security of the electronic device accessing the URL.

[0171] As in the solution of the above embodiment, the first URL is accessed by the service program of the server instead of the electronic device, and each electronic device does not need to bear the risk of accessing the network resource of the false URL. The user can safely click on any URL on the electronic device to initiate access, and does not need to use his own experience to identify the security of the URL; the service program of the server only accesses and verifies the first URL triggered by the user, and does not need to perform security detection on all the first URLs on the electronic device. Even if the electronic device does not install any security software, the first URL will not pose a security risk to the electronic device. When the first URL is not triggered for access, it will certainly not pose a security risk to the electronic device. Even if the first URL on the electronic device is a false URL, if the user has identified it or the user never triggers access to the first URL, the service program does not need to access it. The server does not need to detect a large number of first URLs on the electronic device, thereby ensuring that the service program of the server can provide services for a large number of electronic devices.

[0172] In some embodiments, when one or more programs of the server execute an instruction to return a response result of performing an operation on the first URL to the electronic device so that the electronic device obtains the network resource of the first URL based on the response result, the instruction includes:

[0173] When the first URL is a secure URL, an indication that the first URL is a secure URL is returned to the electronic device, so that the electronic device accesses the network resources of the first URL; when the first URL is an unsecure URL, an indication that the first URL is an unsecure URL is returned to the electronic device, so that the electronic device blocks access to the network resources of the first URL.

[0174] Exemplarily, the service program returns a response result to the first URL to the electronic device. If the response result indicates that the first URL is a secure URL, the electronic device accesses the network resources corresponding to the first URL. When the response result indicates that the first URL is an unsecure URL, the electronic device blocks access to the network resources corresponding to the first URL.

[0175] In some embodiments, when executing instructions in response to an access request initiated by an electronic device according to a preset second URL, one or more programs of the server include:

[0176] An access request sent by the electronic device using the second URL is received, and a first URL is parsed from the access request; wherein the second URL includes a third URL and the first URL, and the first URL is converted into a transmission parameter and added to the third URL.

[0177] Exemplarily, the second URL may include a third URL pointing to a server and the first URL. The first URL is added to the third URL as a transfer parameter to form the second URL. When the user triggers the first URL, the electronic device uses the second URL to initiate an access request to access a service program of the access server. The service program parses the first URL from the second URL and performs a security check on the first URL.

[0178] In some embodiments, when executing the instruction to obtain the first URL based on the second URL, one or more programs of the server include:

[0179] Receive an access request initiated by a browser of an electronic device based on the second URL; parse a first URL from the second URL; wherein the second URL is a URL generated based on the first URL; when the first URL is a secure URL, send a redirection instruction and the first URL to the browser, so that the browser accesses the network resources of the first URL.

[0180] Exemplarily, when a user triggers a first URL displayed on an electronic device to initiate access, a second URL generated based on the first URL is obtained, a browser is called to pass in the second URL, and the server is accessed through the browser. The service program can perform a security check on the first URL. When the security check result indicates that the first URL is a secure URL, a redirection instruction and the first URL are returned to the browser. After receiving the redirection instruction, the browser switches to accessing the network resources of the first URL.

[0181] In some embodiments, one or more programs of the server are also used to execute instructions for performing security checks on the first URL; for example, for a URL link carried in a text message received by a text message program, when a user clicks on the URL link to access it, the message will be transferred to the server's service program for security checks; for various applications, such as QQ, WeChat, Weibo, DingTalk, etc., when the first URL on these applications is clicked by the user for access, the message will be transferred to the server's service program for security checks, such as QQ friends, WeChat friends, URL links carried in messages sent in QQ groups and WeChat groups, URL links posted in Moments, etc.; for browser access to a website, and the hyperlinks corresponding to web pages on the website, when a user clicks on a hyperlink of a web page on the website page to jump to access it, the message will be transferred to the server's service program to first perform a security check on the hyperlink and then jump.

[0182] Exemplarily, relevant security detection technologies may include:

[0183] Use crawler technology to scan and detect the network resources of the first URL to identify malicious code, viruses or suspicious links; for example, the security center will use automated tools such as crawlers to access and scan the target website, which can traverse all pages of the website to detect whether there are malicious codes, viruses or suspicious links.

[0184] Using the detection engine to identify web pages containing malicious scripts, phishing websites, or web pages containing illegal content in the network resources of the first URL;

[0185] Artificial intelligence and machine learning techniques are used to identify the security of the network resources of the first URL; for example, potential security risks are identified by analyzing the code, content and behavior of the website to identify web pages with malicious scripts, phishing websites or web pages containing illegal content.

[0186] The first URL is compared with a database of malicious URLs to determine whether the network resource of the first URL is a malicious website; for example, artificial intelligence and machine learning technologies are used to enhance detection capabilities. These technologies can help the system automatically learn and identify patterns of malicious behavior, thereby more effectively detecting and preventing security threats.

[0187] The unsafe websites reported by users and collected by the security center are used to detect whether the first URL is a false URL; for example, the unsafe websites reported by users are used as references to regularly update security policies and detection rules.

[0188] The above only lists a few examples of URL detection. In actual applications, various detection technologies can be used according to the needs of technological development to achieve more powerful identification functions.

[0189] In some embodiments, Fig.10 As shown, Fig.10 This is an example service program verification diagram. When the server service program performs security detection on the first URL, it can use various URL detection technical means in the cloud to perform security detection. In order to improve the correctness of verification, multiple verification methods can be used to perform security detection on the first URL; for example, the service program can use multi-party joint verification, including a database storing whitelists and blacklists, AI technology, security software 1~n, etc. For example, the blacklist and whitelist of the database are used for comparison, security software is used for detection, and AI technology is used for security detection. For example, when AI technology is used for verification, the AI ​​large model can be used to learn the characteristics of various false URLs and the ability to identify security, so that it has the ability to accurately identify websites with false links, and even in the face of various newly emerging false websites, it can have strong identification capabilities; finally, an accurate verification result can be obtained based on the verification results of various verification methods, thereby improving the accuracy of verification.

[0190] In some embodiments, reference Fig.11 As shown, Fig.11 This is an example flow chart of a server performing security detection, wherein when the server performs a security detection operation on a first URL, it includes the following steps:

[0191] s101, check whether the first URL is in the whitelist; if so, determine that the first URL is a safe URL, otherwise execute s102; illustratively, a whitelist recording all safe URLs can be established, and when a URL hits the whitelist, it can be quickly determined to be a safe URL.

[0192] s102, check whether the first URL is in the blacklist; if so, determine the first URL as an unsafe URL, otherwise, execute s103; illustratively, establish a blacklist to record known unsafe URLs, and if the blacklist is hit, it can be quickly determined as an unsafe URL.

[0193] s103, using the first URL to access the network resource; illustratively, if neither the whitelist nor the blacklist is matched,

[0194] s104, perform security check on network resources; illustratively, use security software, AI technology to simulate user access and other technologies to perform security check on network resources to obtain the detection result of the first URL.

[0195] s105, generating a response result based on the first URL detection result and returning it to the electronic device.

[0196] The solution of the above embodiment can quickly and accurately detect the security of the first URL, and can improve the security detection effect of various false URLs.

[0197] Based on the aforementioned embodiment, a flow chart for accessing a URL is described below.

[0198] refer to Fig.12 As shown, Fig.12 This is a sample URL access process diagram, including the following:

[0199] ① The user triggers the first URL of the electronic device to initiate access;

[0200] ② The electronic device obtains a second URL generated according to the first URL;

[0201] ③ The electronic device calls the browser to pass in the second URL, and accesses the service program through the browser;

[0202] ④ The service program parses the first URL and compares the first URL with the database (white list, black list);

[0203] ⑤ Detect that the first URL is not in the database;

[0204] ⑥ The service program accesses the network resource of the first URL and determines that the first URL is a safe URL;

[0205] ⑦The service program returns the redirection instruction and the first URL to the browser.

[0206] ⑧After receiving the redirection instruction, the browser switches to access the network resource of the first URL.

[0207] In the solution of the above embodiment, the electronic device and the service program can perform security detection on the access to the first URL triggered by the user, so that the user can click it with confidence without having to identify the security of the first URL. The security of the first URL can be accurately detected by the service program, thereby avoiding the risk of accessing the URL.

[0208] The present application provides a method for accessing a URL, which can be applied to various electronic devices to access a URL triggered on the electronic device. Fig.13 As shown, Fig.13 The following is a flow chart of a method for accessing a URL according to an embodiment. The method for accessing a URL may include:

[0209] S110, obtaining a first interactive URL.

[0210] Exemplarily, the first URL may be a URL link carried in a text message of an electronic device, a URL link carried in a message of a social software, a URL address stored in a scanned QR code or barcode, a hyperlink to a web page on a website, etc.; usually the first URL can be displayed on the display of the electronic device, and is generally an underlined character string when displayed on the electronic device.

[0211] S120: When the user triggers the first URL to initiate access, an access request is initiated according to a preset second URL and access is made to a service program.

[0212] Exemplarily, when the user needs to initiate access to the first URL, the user triggers the first URL on the display through the input device of the electronic device to initiate access, and the electronic device uses the second URL to initiate an access request and access the service program.

[0213] S130, enabling the service program to obtain the first URL based on the second URL and perform an operation on the first URL.

[0214] Exemplarily, the service program uses the second URL to obtain the first URL, and uses the first URL to access the corresponding network resource.

[0215] In some embodiments, in the method for accessing a URL of the present application, the second URL is a URL pointing to a service program; step S130 of enabling the service program to obtain the first URL based on the second URL and perform operations on the first URL may include: using the second URL to establish a communication connection between the electronic device and the service program, and based on the communication connection, passing the first URL to the service program for access or security detection.

[0216] Exemplarily, the electronic device can use the second URL to establish a communication connection with the service program, and pass the first URL to the service program based on the communication connection. The service program can use the first URL to access corresponding network resources on behalf of the electronic device to implement security detection of the first URL.

[0217] In some embodiments, the method for accessing a URL of the present application, step S130 of enabling the service program to obtain the first URL based on the second URL and perform an operation on the first URL, may include: using the second URL to send an access request to the service program, and passing the first URL to the service program through the access request; wherein the service program parses the first URL from the access request for access or security detection, and the second URL includes a third URL pointing to the service program and the first URL; wherein the first URL is converted into a passing parameter and added to the third URL.

[0218] Exemplarily, the second URL may include a third URL pointing to a service program and the first URL. The first URL is added to the third URL as a transfer parameter to form the second URL. When the user triggers the first URL, the electronic device uses the second URL to initiate an access request to the service program. The service program parses the first URL from the second URL and performs a security check on the first URL.

[0219] S140: Receive a response result returned by the service program for executing the operation on the first URL.

[0220] Exemplarily, the electronic device receives a response result returned by the service program when performing access, security check, or other jump, conversion, or other operations on the first URL.

[0221] S150: Acquire the network resource of the first URL based on the response result.

[0222] Exemplarily, the electronic device accesses the network resource of the first URL based on the information indicated by the response result returned by the service program.

[0223] In some embodiments, the method for accessing a URL of the present application, for obtaining the network resource of the first URL based on the response result in step S150, may include:

[0224] When the response result indicates that the first URL is a secure URL, access the network resources of the first URL; when the response result indicates that the first URL is an unsafe URL, prevent access to the network resources of the first URL.

[0225] As in the solution of the above embodiment, the service program can use the first URL to access the corresponding network resources instead of the electronic device, so as to implement the security detection of the first URL.

[0226] For example, Fig.14 As shown, Fig.14 The flowchart of an example of an electronic access to a first URL network resource includes the following:

[0227] s201, displaying the first URL on the display;

[0228] s202, is the first URL triggered? If so, go to s203, otherwise, do nothing to the first URL;

[0229] s203, using the second URL to send an access request to the service program, so that the service program uses the first URL to access;

[0230] s204, receiving the response result returned by the service program;

[0231] s205, the response result indicates whether the first URL is a secure URL? If so, execute s206, otherwise execute s207;

[0232] s206, the electronic device accesses the network resource corresponding to the first URL;

[0233] s207, the electronic device blocks access to the network resource corresponding to the first URL.

[0234] The solution of the above embodiment can ensure the security of the electronic device accessing the network resource corresponding to the first URL.

[0235] In some embodiments, the method for accessing a URL of the present application, initiating an access request according to a preset second URL and accessing a service program in step S120, may include: calling a browser, passing the second URL to the browser and initiating an access request to the service program. Step S150 of obtaining the network resource of the first URL based on the response result includes: when the response result indicates that the first URL is a secure URL, receiving the redirection indication and the first URL returned by the service program through the browser, and the browser accessing the corresponding network resource according to the first URL.

[0236] Exemplarily, when a user triggers a first URL displayed on an electronic device to initiate access, a second URL generated based on the first URL is obtained, a browser is called to pass in the second URL, and the service program is accessed through the browser. The service program can perform a security check on the first URL. When the security check result indicates that the first URL is a secure URL, the service program returns a redirection instruction and the first URL to the browser. After receiving the redirection instruction, the browser switches to accessing the network resources of the first URL.

[0237] For the above example, the electronic access to the network resource flow of the first URL may include the following:

[0238] a. The electronic device displays the first URL on the display.

[0239] b. When the first URL is triggered for access, the browser is called and the second URL is passed in to send an access request to access the service program.

[0240] c. The service program parses the first URL from the second URL and performs a security check, and returns the security check result to the browser.

[0241] d. If the first URL is a secure URL, the service program returns a redirection instruction and the first URL, the browser receives the security detection result, and accesses the network resource corresponding to the first URL according to the redirection instruction and the first URL.

[0242] e. If the first URL is an unsafe URL, the service program returns an instruction to block access to the first URL, and the browser blocks and prompts the user to be cautious when accessing the network resource corresponding to the first URL through a pop-up window;

[0243] The solution of the above embodiment can ensure the security of the electronic device accessing the network resource corresponding to the first URL.

[0244] In some embodiments, the method for accessing a URL of the present application further includes: when a user performs an application operation on the first URL, generating a second URL based on the first URL; using the second URL to replace the first URL to execute a corresponding application; wherein the application operation includes copying, forwarding, sharing or collecting.

[0245] This application provides another method for accessing a URL, which can be applied to a server to respond to a URL that is triggered to be accessed on an electronic device. Fig.10 As shown, Fig.10 is a flow chart of a method for accessing a URL according to another embodiment. The method for accessing a URL may include:

[0246] S210, responding to an access request initiated by the electronic device according to a preset second URL; wherein the electronic device initiates the access request when a user triggers an interactive first URL.

[0247] Exemplarily, when the user needs to initiate access to the first URL, the user triggers the first URL on the display through the input device of the electronic device to initiate access, and the electronic device initiates an access request using the second URL.

[0248] S220: Obtain the first URL based on the second URL.

[0249] Exemplarily, the electronic device transmits the first URL to the service program via the second URL, so that the service program can obtain the first URL.

[0250] S230: Perform an operation on the first URL.

[0251] Exemplarily, the service program replaces the electronic device to use the first URL to access the corresponding network resource, or performs security detection on the first URL.

[0252] S240: Return a response result of the operation performed on the first URL to the electronic device, so that the electronic device obtains a network resource of the first URL based on the response result.

[0253] Exemplarily, the service program responds to the access request of the electronic device and returns a response result of accessing using the first URL to the electronic device.

[0254] Exemplarily, the service program can use the first URL to access the corresponding network resources and perform security checks on the network resources. When the network resources corresponding to the first URL are safe, the network resources can be forwarded to the electronic device with a response result, thereby avoiding the electronic device from directly linking to the corresponding network resources and improving the security of accessing the first URL.

[0255] Exemplarily, the service program may utilize the first URL for security detection, and may utilize various URL detection technologies to perform security detection on the first URL, and return a responsive security detection result to the electronic device. If the security detection determines that the first URL is an unsafe false URL, then the security detection result indicating that the first URL is an unsafe URL may be returned to the electronic device, so that the electronic device can block access to the first URL. Conversely, if the security detection determines that the first URL is a safe URL, then the security detection result indicating that the first URL is a safe URL may be returned to the electronic device, instructing the electronic device to access the network resources corresponding to the first URL.

[0256] In some embodiments, the method for accessing a URL of the present application, step S240 of returning a response result of performing an operation on the first URL to the electronic device, so that the electronic device obtains the network resource of the first URL based on the response result, may include:

[0257] When the first URL is a secure URL, an indication that the first URL is a secure URL is returned to the electronic device, so that the electronic device accesses the network resources of the first URL; when the first URL is an unsecure URL, an indication that the first URL is an unsecure URL is returned to the electronic device, so that the electronic device blocks access to the network resources of the first URL.

[0258] Exemplarily, the service program returns a response result to the first URL to the electronic device. If the response result indicates that the first URL is a secure URL, the electronic device accesses the network resources corresponding to the first URL. When the response result indicates that the first URL is an unsecure URL, the electronic device blocks access to the network resources corresponding to the first URL.

[0259] In some embodiments, the method for accessing a URL of the present application, in step S210, responding to an access request initiated by the electronic device according to a preset second URL, may include:

[0260] An access request sent by the electronic device using the second URL is received, and a first URL is parsed from the access request for access; wherein the second URL includes a third URL and the first URL, and the first URL is converted into a transmission parameter and added to the third URL.

[0261] Exemplarily, the second URL may include a third URL pointing to a server and the first URL. The first URL is added to the third URL as a transfer parameter to form the second URL. When the user triggers the first URL, the electronic device uses the second URL to initiate an access request to access a service program of the access server. The service program parses the first URL from the second URL and performs a security check on the first URL.

[0262] In some embodiments, the method for accessing a URL of the present application, step S220 of obtaining the first URL based on the second URL, may include: receiving an access request initiated by a browser of an electronic device based on the second URL; parsing the first URL from the second URL, the second URL being a URL generated based on the first URL.

[0263] Step S240 of returning a response result of performing an operation on the first URL to the electronic device, so that the electronic device obtains the network resources of the first URL based on the response result, may include: when the first URL is a secure URL, sending a redirect indication and the first URL to the browser, so that the browser accesses the network resources of the first URL.

[0264] Exemplarily, when a user triggers a first URL displayed on an electronic device to initiate access, a second URL generated based on the first URL is obtained, a browser is called to pass in the second URL, and the server is accessed through the browser. The service program can perform a security check on the first URL. When the security check result indicates that the first URL is a secure URL, a redirection instruction and the first URL are returned to the browser. After receiving the redirection instruction, the browser switches to accessing the network resources of the first URL.

[0265] In some embodiments, the method for accessing a URL of the present application further includes:

[0266] Scan and detect the network resources of the first URL using crawler technology to identify malicious code, viruses or suspicious links;

[0267] Using the detection engine to identify web pages containing malicious scripts, phishing websites, or web pages containing illegal content in the network resources of the first URL;

[0268] Using artificial intelligence and machine learning techniques to identify the security of the network resource of the first URL;

[0269] Compare the first URL with a database of malicious URLs to determine whether the network resource of the first URL is a malicious website;

[0270] The unsafe websites reported by users and collected by the security center are used to detect whether the first URL is a false URL.

[0271] As for the methods of accessing URLs in the above-mentioned embodiments, those skilled in the art can clearly understand that the methods according to the above-mentioned embodiments can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling an electronic device (which can be a mobile phone, a computer, a link identification service application, or a network device, etc.) to execute the SMS processing methods of the various embodiments of the present application. For the implementation steps of the SMS processing methods, reference can be made to the description of the above-mentioned embodiments, which will not be repeated here.

[0272] The present application provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set is loaded by the processor and executes the steps of the text message processing method of the present application.

[0273] Optionally, in this embodiment, the above-mentioned computer device storage medium can be configured to store program code for executing the steps of the SMS processing method of any of the above-mentioned embodiments; optionally, in this embodiment, the above-mentioned storage medium can include but is not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code.

[0274] Based on the technical solution of the present application, several application examples are listed below.

[0275] Example 1: The telecommunications operator of an electronic device establishes a service program in the cloud. When the electronic device is connected to the Internet and used, if the user triggers a URL for access, the service program will respond. The service program can use URL detection technology to perform security detection on the first URL, thereby ensuring the security of all connected electronic devices under the telecommunications operator.

[0276] Example 2: The device manufacturer establishes a service program in the cloud. When all electronic devices of the device manufacturer are connected to the Internet and used, if any application of the user triggers access to the first URL, the access will be transferred to the service program for response. The service program can use URL detection technology to perform security detection on the first URL; thus, electronic devices of different device manufacturers can be detected through the service program established in the cloud, thereby ensuring the security of all networked electronic devices under the device manufacturer.

[0277] Example three: The national information management department establishes a service program in the cloud. When all networked electronic devices are used online, when the user triggers a URL for access, the information will be transferred to the service program for security testing. The service program can use URL detection technology to perform security testing on the first URL triggered by the user on all networked electronic devices. The National Anti-Fraud Center technology platform can be used to ensure the security of URL access by all networked electronic devices in society. There is no need for users to install a client (such as the National Anti-Fraud Center APP client), which facilitates the promotion and application of technology.

[0278] The above description is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An electronic device, comprising: one or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being used to execute the following instructions: Get the first URL of the interaction; When the user triggers the first URL to initiate access, an access request is initiated according to the preset second URL and accesses the service program, so that the service program obtains the first URL based on the second URL and performs an operation on the first URL; A response result of the operation performed on the first URL returned by the service program is received, and a network resource of the first URL is acquired based on the response result.

2. The electronic device according to claim 1, characterized in that: When the one or more programs execute the instruction to obtain the network resource of the first URL based on the response result, the one or more programs include: When the response result indicates that the first URL is a secure URL, access the network resources of the first URL; when the response result indicates that the first URL is an unsafe URL, prevent access to the network resources of the first URL.

3. The electronic device according to claim 1, characterized in that: When the one or more programs execute the instruction that enables the service program to obtain the first URL based on the second URL and perform an operation on the first URL, the one or more programs include: A communication connection is established between the electronic device and the service program using the second URL; and the first URL is transferred to the service program based on the communication connection for access or security detection.

4. The electronic device according to claim 1, characterized in that: Before executing the instruction to initiate an access request according to the preset second URL and access the service program, the one or more programs further include: Obtain a third URL pointing to the service program, convert the first URL into a transfer parameter and add it to the third URL to obtain a second URL; When the one or more programs execute the instruction that enables the service program to obtain the first URL based on the second URL and perform an operation on the first URL, the one or more programs include: Based on the access request, the service program parses the first URL from the second URL, and accesses corresponding network resources according to the first URL or performs security detection on the first URL.

5. The electronic device according to claim 4, characterized in that: When the one or more programs execute the instruction to initiate an access request according to the preset second URL and access the service program, the one or more programs include: Invoke a browser, transfer the second URL to the browser and initiate an access request to the service program; When the one or more programs execute the instruction to obtain the network resource of the first URL based on the response result, the one or more programs include: When the response result indicates that the first URL is a secure URL, the redirection instruction and the first URL returned by the service program are received by the browser, and the browser accesses the corresponding network resource according to the first URL.

6. The electronic device according to claim 1, characterized in that: The one or more programs are also used to execute the following instructions, including: When the user performs an application operation on the first URL, a second URL is generated according to the first URL; the second URL is used to replace the first URL to execute a corresponding application; wherein the application operation includes copying, forwarding, sharing or collecting.

7. A server, comprising: one or more processors; Memory; as well as A service program is stored in the memory and configured to be executed by the one or more processors, wherein the service program is used to execute the following instructions, including: Responding to an access request initiated by an electronic device according to a preset second URL; wherein the electronic device initiates the access request when a user triggers an interactive first URL; obtaining the first URL based on the second URL, and performing an operation on the first URL; returning a response result of the operation performed on the first URL to the electronic device, so that the electronic device obtains the network resource of the first URL based on the response result.

8. A method for accessing a URL, characterized in that: include: Get the first URL of the interaction; When the user triggers the first URL to initiate access, an access request is initiated according to the preset second URL and access is made to the service program; enabling the service program to obtain the first URL based on the second URL and perform an operation on the first URL; Receiving a response result returned by the service program for performing an operation on the first URL; Acquire the network resource of the first URL based on the response result.

9. A method for accessing a URL, characterized in that: include: Responding to an access request initiated by the electronic device according to a preset second URL; wherein the electronic device initiates the access request when the user triggers the interactive first URL; Obtaining the first URL based on the second URL; Performing an operation on the first URL; A response result of performing the operation on the first URL is returned to the electronic device, so that the electronic device acquires the network resource of the first URL based on the response result.

10. A computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, wherein the at least one instruction, the at least one program, the code set or the instruction set is loaded by the processor and executes the steps of the method for accessing a URL as described in any one of claims 8 or 9.