CN118157878A - Website access method, device, equipment and storage medium - Google Patents

Website access method, device, equipment and storage medium Download PDF

Info

Publication number
CN118157878A
CN118157878A CN202211550923.5A CN202211550923A CN118157878A CN 118157878 A CN118157878 A CN 118157878A CN 202211550923 A CN202211550923 A CN 202211550923A CN 118157878 A CN118157878 A CN 118157878A
Authority
CN
China
Prior art keywords
website
access
user
remote browser
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211550923.5A
Other languages
Chinese (zh)
Inventor
韩雪峰
田新超
张松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
360 Digital Security Technology Group Co Ltd
Original Assignee
360 Digital Security Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 360 Digital Security Technology Group Co Ltd filed Critical 360 Digital Security Technology Group Co Ltd
Priority to CN202211550923.5A priority Critical patent/CN118157878A/en
Publication of CN118157878A publication Critical patent/CN118157878A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application belongs to the technical field of computers, and discloses a website access method, a device, equipment and a storage medium. Generating a website access request according to user identity cache and a target access website; sending a website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image; and displaying the access page according to the website access image fed back by the remote browser. When the website is accessed, the website access request generated according to the user identity cache and the target access website is sent to the remote browser, so that the loading of the website webpage can be accelerated according to the user identity cache when the remote browser accesses the website, frequent login is avoided, and the convenience of the remote browser is improved.

Description

Website access method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for accessing a website.
Background
In order to secure internal data, an enterprise accesses an external website by using a remote browser deployed on a rendering end instead of directly using a browser on a client side to access the external website, and generates a webpage image for display after the access is successful, but in the use process of the browser (such as the process of opening or logging in the website), the browser caches user data to speed up the webpage opening speed and avoid frequent logging in, and the current remote browser cannot acquire the cached user data of the browser on the client side, so that the use is inconvenient.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a website access method, a device, equipment and a storage medium, which aim to solve the technical problem that a remote browser is inconvenient to use in the prior art.
In order to achieve the above object, the present invention provides a website access method, which includes the steps of:
generating a website access request according to the user identity cache and the target access website;
sending the website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image;
and displaying the access page according to the website access image fed back by the remote browser.
Optionally, before the step of generating the website access request according to the user identity cache and the target access website, the method further includes:
when the user is detected to log in, user login information is obtained;
And sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information.
Optionally, the step of sending the user login information to a rendering end, so that the rendering end starts a remote browser and performs user login in the remote browser according to the user login information includes:
constructing starting command parameters according to the user login information;
constructing a browser starting instruction based on the starting command parameters;
And sending the browser starting instruction to the rendering end so that the rendering end starts a remote browser according to the browser starting instruction, and logging in a user in the remote browser according to starting command parameters in the browser starting instruction.
Optionally, before the step of generating the website access request according to the user identity cache and the target access website, the method further includes:
when detecting that a user executes website access operation, acquiring a target access website input by the user and a current login user identifier;
Obtaining a cache storage address according to the current login user identifier;
And acquiring the user identity cache based on the cache storage address.
Optionally, the step of obtaining the cache storage address according to the current login user identifier includes:
Acquiring user access rights according to the login user identification;
determining whether the current login user can access the target access website according to the user access authority;
And if the target access website can be accessed, acquiring a cache storage address according to the current login user identifier.
Optionally, the step of determining whether the current login user can access the target access website according to the user access authority includes:
Reading a website wildcard from the user access right;
Matching the website wildcard with the target access website;
if the matching is successful, the target access website can be accessed.
Optionally, before the step of reading the website wildcard from the user access right, the method further includes:
Acquiring a forbidden access list from the user access authority;
detecting whether a website domain name corresponding to the target access website exists in the forbidden access list;
And if the access forbidden list does not exist, executing the step of reading the website wildcard from the user access authority.
Optionally, the step of obtaining the user identity cache based on the cache storage address includes:
searching a corresponding cache decryption key according to the current login user identifier;
Reading the encrypted cache data corresponding to the cache storage address;
and decrypting the encrypted cache data through the cache decryption key to obtain a user identity cache.
Optionally, the step of sending the website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image includes:
And sending the website access request to a remote browser, so that the remote browser extracts a user identity cache and a target access website from the website access request, updates a local cache in the remote browser according to the user identity cache, accesses the target access website based on the updated local cache, obtains a website access page, and feeds back a website access image according to the website access page.
Optionally, after the step of displaying the access page according to the website access image fed back by the remote browser, the method further includes:
When detecting click operation of a user in the website access image, acquiring a page area corresponding to the click operation;
Sending the page area to the remote browser, so that the remote browser simulates clicking operation according to the page area and feeds back a changed page image;
and carrying out access page display according to the received change page image.
Optionally, the step of sending the page area to the remote browser, so that the remote browser simulates a click operation according to the page area and feeds back a changed page image includes:
Detecting whether the page area is a clickable area;
If yes, the page area is sent to the remote browser, so that the remote browser simulates clicking operation according to the page area, and feeds back a changed page image.
In addition, in order to achieve the above object, the present invention also provides a website accessing apparatus, which includes the following modules:
the request generation module is used for generating a website access request according to the user identity cache and the target access website;
the website access module is used for sending the website access request to a remote browser so that the remote browser can access websites according to the website access request and feed back website access images;
and the page display module is used for displaying the access page according to the website access image fed back by the remote browser.
Optionally, the request generating module is further configured to obtain user login information when the user is detected to log in; and sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information.
Optionally, the request generating module is further configured to construct a start command parameter according to the user login information; constructing a browser starting instruction based on the starting command parameters; and sending the browser starting instruction to the rendering end so that the rendering end starts a remote browser according to the browser starting instruction, and logging in a user in the remote browser according to starting command parameters in the browser starting instruction.
Optionally, the request generating module is further configured to obtain a target access website and a current login user identifier input by the user when detecting that the user performs the website access operation; obtaining a cache storage address according to the current login user identifier; and acquiring the user identity cache based on the cache storage address.
Optionally, the request generating module is further configured to obtain a user access right according to the login user identifier; determining whether the current login user can access the target access website according to the user access authority; and if the target access website can be accessed, acquiring a cache storage address according to the current login user identifier.
Optionally, the request generating module is further configured to read a website wildcard from the user access right; matching the website wildcard with the target access website; if the matching is successful, the target access website can be accessed.
Optionally, the request generating module is further configured to obtain an access prohibition list from the user access right; detecting whether a website domain name corresponding to the target access website exists in the forbidden access list; and if the access forbidden list does not exist, executing the step of reading the website wildcard from the user access authority.
In addition, in order to achieve the above object, the present invention also proposes a website accessing apparatus including: the system comprises a processor, a memory and a website access program stored on the memory and capable of running on the processor, wherein the website access program realizes the steps of the website access method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a website accessing program which, when executed, implements the steps of the website accessing method as described above.
Generating a website access request according to user identity cache and a target access website; sending a website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image; and displaying the access page according to the website access image fed back by the remote browser. When the website is accessed, the website access request generated according to the user identity cache and the target access website is sent to the remote browser, so that the loading of the website webpage can be accelerated according to the user identity cache when the remote browser accesses the website, frequent login is avoided, and the convenience of the remote browser is improved.
Drawings
FIG. 1 is a schematic diagram of an electronic device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a website accessing method according to the present invention;
FIG. 3 is a flowchart of a second embodiment of the website accessing method according to the present invention;
FIG. 4 is a flowchart of a third embodiment of a website accessing method according to the present invention;
FIG. 5 is a flowchart of a fourth embodiment of a website accessing method according to the present invention;
Fig. 6 is a block diagram of a first embodiment of the website accessing apparatus according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a website access device of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a wireless FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the structure shown in fig. 1 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a website access program may be included in the memory 1005 as one type of storage medium.
In the electronic device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention may be provided in a website access device, where the electronic device calls a website access program stored in the memory 1005 through the processor 1001, and executes the website access method provided by the embodiment of the present invention.
An embodiment of the present invention provides a website access method, referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a website access method of the present invention.
In this embodiment, the website access method includes the following steps:
Step S10: and generating a website access request according to the user identity cache and the target access website.
It should be noted that, the execution body of the embodiment may be the website access device, the website access device may be a client used by a user, and the client may be an electronic device such as a smart phone, a tablet computer, a personal computer or a server, or other devices capable of implementing the same or similar functions.
It should be noted that, the user identity cache may be user data cached by a browser in the website access device, for example: cookies, js files, etc. The target access website may be a website of a website that the user currently operates the client to access.
In a specific implementation, generating the website access request according to the user identity cache and the target access website may be to assemble the user identity cache and the target access website in a preset format, generate a request parameter, and construct the website access request according to the request parameter. The preset format may be preset by a manager of the website access apparatus.
Step S20: and sending the website access request to a remote browser, so that the remote browser performs website access according to the website access request, and feeding back a website access image.
It should be noted that the remote browser may be a browser installed in a rendering end, and the rendering end may be a remote server or a cloud server. And sending the website access request to a remote browser, wherein the remote browser can extract a user identity cache and a target access website contained in the website access request, then access a website corresponding to the target access website based on the user identity cache, and receive a website webpage returned by the website.
It can be understood that, in order to ensure that the user can view the specific result of the website access on the client, the remote browser performs the website access, and after acquiring the website webpage, a webpage image, that is, a website access image, can be generated according to the website webpage, and then the website access image is fed back to the website access device.
In a specific implementation, since the user may continuously operate the web page of the website, in this process, the remote browser stores the received user identity in the memory, and the data in the memory is easy to be lost, and in the continuous operation, the data is easy to be lost, and the memory is also more severely occupied, so that the load capacity of the rendering end is reduced, in order to overcome such a defect, step S20 in this embodiment may include:
And sending the website access request to a remote browser, so that the remote browser extracts a user identity cache and a target access website from the website access request, updates a local cache in the remote browser according to the user identity cache, accesses the target access website based on the updated local cache, obtains a website access page, and feeds back a website access image according to the website access page.
It can be understood that when the remote browser receives the website access request, the user identity cache and the target access website can be read from the website access request, then the local cache in the remote browser is updated according to the user identity cache, the user identity cache is also cached in the local disk of the rendering end, namely, the local disk is stored in the remote browser, and then the website access is performed according to the updated local cache, so that data loss can be avoided, memory occupation of the rendering end can be reduced, load pressure of the rendering end can be reduced, and load capacity of the rendering end can be improved.
Step S30: and displaying the access page according to the website access image fed back by the remote browser.
It can be understood that when the website access device receives the website access image fed back by the remote browser, the website access image can be displayed in the browser of the website access device, and then the user can see the website page fed back by the website when the user accesses the website in the browser of the website access device.
Generating a website access request according to user identity cache and a target access website; sending a website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image; and displaying the access page according to the website access image fed back by the remote browser. When the website is accessed, the website access request generated according to the user identity cache and the target access website is sent to the remote browser, so that the loading of the website webpage can be accelerated according to the user identity cache when the remote browser accesses the website, frequent login is avoided, and the convenience of the remote browser is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a website accessing method according to a second embodiment of the present invention.
Based on the first embodiment, the website accessing method of this embodiment further includes, before the step S10:
step S01: and when the user is detected to log in, acquiring user login information.
In order to ensure data security, the browser in the enterprise can access the website after logging in when using the browser, and if the user clicks the login button on the login interface in the browser of the website access device, it can be determined that the user is detected to log in. The user login information may include a login account and a login password.
In a specific implementation, the obtaining of the user login information may be reading a login account and a login password that are input by the user in a browser of the website access device.
In practical use, because the user may have errors when inputting the account and the password, the login is failed, in order to reduce unnecessary operations, the login information of the user may be obtained when the user is detected to log in and the login is successful.
Step S02: and sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information.
It can be understood that, because the browser inside the enterprise can access the website after logging in, if the user needs to use the remote browser to access the external network, the user needs to log in on the browser in the website access device once, and after the remote browser is started, the user needs to log in on the remote browser again, so that the operation is complicated, the user login information can be sent to the rendering end for simplifying the user operation, the rendering end can start the remote browser when receiving the user login information, and perform the user login in the remote browser according to the user login information, so that the user is prevented from logging in for multiple times, and the actual use experience of the user can be improved.
The user login in the remote browser according to the user login information may be to open a login interface of the remote browser, and automatically input the user login information in the login interface to perform the user login.
In a specific implementation process, because the login interface of the remote browser is opened, and then the user login information is automatically input, the execution process needs to wait for the login interface to be opened, and the automatic input needs to wait for a certain period of time, so that the overall time consumption is long, the user experience is poor, and in order to reduce the time consumption of automatic login, the step S02 in this embodiment may include:
constructing starting command parameters according to the user login information;
constructing a browser starting instruction based on the starting command parameters;
And sending the browser starting instruction to the rendering end so that the rendering end starts a remote browser according to the browser starting instruction, and logging in a user in the remote browser according to starting command parameters in the browser starting instruction.
In a specific implementation, the step of constructing the start command parameter according to the user login information may be to convert the user login information according to a preset parameter conversion rule, so as to generate the start command parameter. The browser starting instruction is constructed based on the starting command parameters, wherein the starting command parameters are filled into a preset starting instruction template, and the browser starting instruction is obtained. The preset starting instruction template can be preset by a manager of the website access equipment.
It can be understood that when the software is started by the start command, if the software is started by the start command, the software automatically loads command parameters in the start command after the software is started, so that after the browser start command is generated, the browser start command can be sent to the rendering end, the rendering end can operate the browser start command to start the remote browser after receiving the browser start command, and the remote browser automatically loads the start command parameters in the browser start command after being started and automatically logs in according to the loaded start command parameters, at the moment, the login interface is not required to be started, and the automatic input is not required to be waited, so that the automatic login speed can be accelerated, and the actual use experience of the user is improved.
In the embodiment, when the user is detected to log in, user login information is obtained; and sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information. When a user logs in, user login information is obtained, the user login information is sent to the rendering end, the rendering end starts the remote browser, and user login is automatically carried out in the remote browser according to the user login information, so that the user does not need to log in a plurality of browsers when accessing an external website by using the remote browser, and user operation is simplified.
Referring to fig. 4, fig. 4 is a flowchart of a third embodiment of a website accessing method according to the present invention.
Based on the first embodiment, the website accessing method of this embodiment further includes, before the step S10:
Step S01': when the user is detected to execute the website access operation, the target access website input by the user and the current login user identification are acquired.
It should be noted that, the website access device may detect the operation state of the user on the browser installed in the website access device in real time, and if it is detected that the user inputs data in the address bar of the browser and clicks the confirmation, it may be determined that the user performs the website access operation.
The acquiring of the target access address input by the user may be reading data input by the user in a browser address bar installed in the website access device, and taking the read data as the target access address. The current login user identification may be a user identification of a user currently logged in a browser of the website access device.
Step S02': and obtaining a cache storage address according to the current login user identifier.
It should be noted that when the browser caches user data, user data of different users are cached under different directories, and an identification path mapping table is set in the browser and is used for recording a corresponding relationship between a user identification and a cache storage address, the obtaining the cache storage address according to the current login user identification may be searching for the corresponding cache storage address in the identification path mapping table according to the current login user identification.
Further, for data, the enterprise may prohibit the user from accessing a part of the websites or only allow to access a part of the websites, and in this case, in order to reduce unnecessary performance consumption, the cache storage address may be obtained only when the user can access the target access website, and step S02' in this embodiment may include:
Acquiring user access rights according to the login user identification;
determining whether the current login user can access the target access website according to the user access authority;
And if the target access website can be accessed, acquiring a cache storage address according to the current login user identifier.
It should be noted that, the obtaining the user access right according to the current login user identifier may be searching the user access right corresponding to the current login user identifier in the preset authority control table. The user access authority can comprise the authority of the user to access the website, whether the current login user has the authority to access the website corresponding to the target access website can be determined according to the user access authority, and if so, the current login user can be determined to access the target access website; if the login user does not have the target access website, the login user can be judged to be inaccessible to the target access website.
It will be appreciated that if the current login user can access the target access website, the subsequent steps may be performed, whereas if the current login user cannot access the target access website, the subsequent steps may not be performed. The website access device may also perform popup prompt for the reason that the user explicitly does not perform the subsequent steps.
In a specific implementation, in order to ensure convenience in setting, when the access right of the user is set, a wild card mode may be used to set a website that the user can access, and then the step of determining whether the current login user can access the target access website based on the access right of the user in this embodiment may include:
Reading a website wildcard from the user access right;
Matching the website wildcard with the target access website;
if the matching is successful, the target access website can be accessed.
Note that the web site wild card may be a wild card used when setting up a web site that allows access. For example: if the website wildcard is ". Times", the website is allowed to access all websites; if the site wild card is "www.app x", this indicates that access to only sites with sites beginning with "www.app" is allowed.
It will be appreciated that if the address wild card matches the target access address, it indicates that the user has access to the target access address, and thus it may be determined that the current login user may access the target access address.
Further, in order to improve data security, if all users are prohibited from accessing such high risk websites, the step of reading the website wildcards from the user access rights in this embodiment includes:
Acquiring a forbidden access list from the user access authority;
detecting whether a website domain name corresponding to the target access website exists in the forbidden access list;
And if the access forbidden list does not exist, executing the step of reading the website wildcard from the user access authority.
It should be noted that the forbidden access list may be a data table storing website domain names of high risk websites.
It can be understood that if the website domain name corresponding to the target access website exists in the forbidden access list, the website corresponding to the target access website is indicated to be a high risk website, so that it can be directly determined that the current login user cannot access the target access website. If the website domain name corresponding to the target access website does not exist in the forbidden access list, the subsequent judgment can be performed, so that the step of reading the website wildcard from the user access authority can be performed.
Step S03': and acquiring the user identity cache based on the cache storage address.
In a specific implementation, the obtaining the user identity cache based on the cache storage address may be reading data corresponding to the cache storage address, and taking the read data as the user identity cache.
In a specific implementation, in order to achieve confidentiality, data isolation is also required between employees in an enterprise, at this time, in order to avoid that the employees view information such as browsing records of other employees, the website access device may encrypt the user identity cache and then store the encrypted data, where the data read from the directory corresponding to the cache storage address is actually encrypted data, and decryption is required to be performed to obtain the user identity cache, and at this time, step S03' in this embodiment may include:
searching a corresponding cache decryption key according to the current login user identifier;
Reading the encrypted cache data corresponding to the cache storage address;
and decrypting the encrypted cache data through the cache decryption key to obtain a user identity cache.
It should be noted that, searching the corresponding cache decryption key according to the current login user identifier may be searching the cache decryption key corresponding to the current login user identifier in a preset key bank. The encrypted cache data corresponding to the read cache memory address may be data corresponding to the read cache memory address, and the read data is used as the encrypted cache data.
In a specific implementation, the encrypted cache data is decrypted by the cache decryption key, and the obtaining of the user identity cache may be that the encrypted cache data is decrypted according to the cache decryption key by a preset decryption algorithm, and the decrypted data is used as the user identity cache. The preset decryption algorithm may be preset by a manager of the website access device.
When the user is detected to execute the website access operation, the target access website input by the user and the current login user identification are obtained; obtaining a cache storage address according to the current login user identifier; and acquiring the user identity cache based on the cache storage address. As the user identity cache can be quickly searched and obtained according to the current login user identity when the user executes the website access operation, the execution efficiency of the website access method is improved.
Referring to fig. 5, fig. 5 is a flowchart of a fourth embodiment of a website accessing method according to the present invention.
Based on the above first embodiment, the website accessing method of this embodiment further includes, after the step S30:
Step S40: and when detecting the click operation of the user in the website access image, acquiring a page area corresponding to the click operation.
It should be noted that when the website access is displayed according to the website access image fed back by the rendering end, the displayed website webpage is not a real website webpage, so that in order to ensure that the corresponding response can still be performed according to the clicking operation of the user under the display in this way, the clicking operation of the user in the website access image can be monitored, and the page area corresponding to the clicking operation is obtained when the clicking operation of the user in the website access image is detected.
Step S50: and sending the page area to the remote browser, so that the remote browser simulates clicking operation according to the page area, and feeding back a changed page image.
It can be understood that the real website webpage is actually stored in the remote browser, when the page area corresponding to the clicking operation of the user is obtained, the page area can be sent to the remote browser, so that the remote browser simulates the clicking operation at the position corresponding to the page area in the website page, sends a corresponding request to the website for providing the website access page, receives the data fed back by the website based on the request corresponding to the clicking operation, adjusts the website access page, generates a change page image according to the adjusted website access page, and feeds back the change page image to the website access device.
Furthermore, since the request is not sent to the website when clicking is performed on all the areas in the website access page, but when clicking is performed on the button or the module with interaction, the remote browser sends the request to interact with the website, so as to reduce unnecessary data processing and data transmission, the step S50 in this embodiment may include:
Detecting whether the page area is a clickable area;
If yes, the page area is sent to the remote browser, so that the remote browser simulates clicking operation according to the page area, and feeds back a changed page image.
It should be noted that when the remote browser obtains the website access page, the remote browser may parse the page code to obtain a clickable button or module in the page, determine a clickable area in the website access image according to the clickable button or module after generating the website access image, and then send the website access image and the clickable area to the website access device together, where after obtaining the page area corresponding to the clicking operation, the website access device may check whether the page area is a clickable area.
In a specific implementation, detecting whether the page area is a clickable area may be detecting whether an intersection exists between the page area and the clickable area, and if so, determining that the page area is a clickable area; if not, it may be determined that the page area is not a clickable area.
It can be appreciated that if the page area is a clickable area, clicking on a location corresponding to the page area in the website access page may cause interaction between the remote browser and the website, which may cause a change in the website access page, so that the page area may be sent to the remote browser. If the page area is not a clickable area, clicking the position corresponding to the page area in the website access page is indicated, interaction between the remote browser and the website is not caused, the website access page is maintained as it is, and at this time, processing is not required.
Step S60: and carrying out access page display according to the received change page image.
It will be appreciated that the web site access device, upon receiving the change page image, may present the change page image on a browser in the web site access device, and the user may then see the change in the page that was caused by the previous click operation.
According to the embodiment, when the click operation of the user in the website access image is detected, a page area corresponding to the click operation is obtained; sending the page area to the remote browser, so that the remote browser simulates clicking operation according to the page area and feeds back a changed page image; and carrying out access page display according to the received change page image. When the website access image is used for displaying the access page, the clicking operation is simulated in the remote browser according to the page area corresponding to the clicking operation executed by the user on the website access image, and the access page is displayed according to the fed-back change page image, so that the user can still operate the website access page when accessing the external website through the remote browser.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a website access program, and the website access program realizes the steps of the website access method when being executed by a processor.
Referring to fig. 6, fig. 6 is a block diagram illustrating a first embodiment of a website accessing apparatus according to the present invention.
As shown in fig. 6, the website accessing apparatus according to the embodiment of the present invention includes:
The request generation module 10 is used for generating a website access request according to the user identity cache and the target access website;
the website access module 20 is configured to send the website access request to a remote browser, so that the remote browser performs website access according to the website access request, and feeds back a website access image;
and the page display module 30 is used for displaying the access page according to the website access image fed back by the remote browser.
Generating a website access request according to user identity cache and a target access website; sending a website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image; and displaying the access page according to the website access image fed back by the remote browser. When the website is accessed, the website access request generated according to the user identity cache and the target access website is sent to the remote browser, so that the loading of the website webpage can be accelerated according to the user identity cache when the remote browser accesses the website, frequent login is avoided, and the convenience of the remote browser is improved.
Further, the request generating module 10 is further configured to obtain user login information when it is detected that the user logs in; and sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information.
Further, the request generating module 10 is further configured to construct a start command parameter according to the user login information; constructing a browser starting instruction based on the starting command parameters; and sending the browser starting instruction to the rendering end so that the rendering end starts a remote browser according to the browser starting instruction, and logging in a user in the remote browser according to starting command parameters in the browser starting instruction.
Further, the request generating module 10 is further configured to obtain a target access website and a current login user identifier input by the user when detecting that the user performs a website access operation; obtaining a cache storage address according to the current login user identifier; and acquiring the user identity cache based on the cache storage address.
Further, the request generating module 10 is further configured to obtain a user access right according to the login user identifier; determining whether the current login user can access the target access website according to the user access authority; and if the target access website can be accessed, acquiring a cache storage address according to the current login user identifier.
Further, the request generating module 10 is further configured to read a website wildcard from the user access right; matching the website wildcard with the target access website; if the matching is successful, the target access website can be accessed.
Further, the request generating module 10 is further configured to obtain an access prohibition list from the user access right; detecting whether a website domain name corresponding to the target access website exists in the forbidden access list; and if the access forbidden list does not exist, executing the step of reading the website wildcard from the user access authority.
Further, the request generating module 10 is further configured to search a corresponding cache decryption key according to the current login user identifier; reading the encrypted cache data corresponding to the cache storage address; and decrypting the encrypted cache data through the cache decryption key to obtain a user identity cache.
Further, the page display module 30 is further configured to send the website access request to a remote browser, so that the remote browser extracts a user identity cache and a target access website from the website access request, updates a local cache in the remote browser according to the user identity cache, accesses the target access website based on the updated local cache, obtains a website access page, and feeds back a website access image according to the website access page.
Further, the page display module 30 is further configured to, when detecting a click operation of a user in the website access image, obtain a page area corresponding to the click operation; sending the page area to the remote browser, so that the remote browser simulates clicking operation according to the page area and feeds back a changed page image; and carrying out access page display according to the received change page image.
Further, the page display module 30 is further configured to detect whether the page area is a clickable area; if yes, the page area is sent to the remote browser, so that the remote browser simulates clicking operation according to the page area, and feeds back a changed page image.
It should be understood that the foregoing is illustrative only and is not limiting, and that in specific applications, those skilled in the art may set the invention as desired, and the invention is not limited thereto.
It should be noted that the above-described working procedure is merely illustrative, and does not limit the scope of the present invention, and in practical application, a person skilled in the art may select part or all of them according to actual needs to achieve the purpose of the embodiment, which is not limited herein.
In addition, technical details not described in detail in this embodiment may refer to the website access method provided in any embodiment of the present invention, which is not described herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. Read Only Memory)/RAM, magnetic disk, optical disk) and including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
The invention discloses A1, a website access method, which comprises the following steps:
generating a website access request according to the user identity cache and the target access website;
sending the website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image;
and displaying the access page according to the website access image fed back by the remote browser.
A2, the website access method as described in A1, before the step of generating a website access request according to the user identity cache and the target access website, further comprises:
when the user is detected to log in, user login information is obtained;
And sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information.
A3, the website access method as described in A2, wherein the step of sending the user login information to a rendering end so that the rendering end starts a remote browser and performs user login in the remote browser according to the user login information comprises the following steps:
constructing starting command parameters according to the user login information;
constructing a browser starting instruction based on the starting command parameters;
And sending the browser starting instruction to the rendering end so that the rendering end starts a remote browser according to the browser starting instruction, and logging in a user in the remote browser according to starting command parameters in the browser starting instruction.
A4, the website access method as described in A1, before the step of generating a website access request according to the user identity cache and the target access website, further comprises:
when detecting that a user executes website access operation, acquiring a target access website input by the user and a current login user identifier;
Obtaining a cache storage address according to the current login user identifier;
And acquiring the user identity cache based on the cache storage address.
A5, the website access method as described in A4, wherein the step of obtaining the cache storage address according to the current login user identifier includes:
Acquiring user access rights according to the login user identification;
determining whether the current login user can access the target access website according to the user access authority;
And if the target access website can be accessed, acquiring a cache storage address according to the current login user identifier.
A6, the website access method as described in A5, wherein the step of determining whether the current login user can access the target access website according to the user access authority comprises the following steps:
Reading a website wildcard from the user access right;
Matching the website wildcard with the target access website;
if the matching is successful, the target access website can be accessed.
A7, the website access method as described in A6, before the step of reading the website wildcard from the user access right, further comprising:
Acquiring a forbidden access list from the user access authority;
detecting whether a website domain name corresponding to the target access website exists in the forbidden access list;
And if the access forbidden list does not exist, executing the step of reading the website wildcard from the user access authority.
A8, the website access method as described in A4, wherein the step of obtaining the user identity cache based on the cache storage address comprises the following steps:
searching a corresponding cache decryption key according to the current login user identifier;
Reading the encrypted cache data corresponding to the cache storage address;
and decrypting the encrypted cache data through the cache decryption key to obtain a user identity cache.
A9, the website access method as set forth in A1, wherein the step of sending the website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image includes:
And sending the website access request to a remote browser, so that the remote browser extracts a user identity cache and a target access website from the website access request, updates a local cache in the remote browser according to the user identity cache, accesses the target access website based on the updated local cache, obtains a website access page, and feeds back a website access image according to the website access page.
A10, the website access method as set forth in any one of A1-A9, wherein after the step of performing access page presentation according to the website access image fed back by the remote browser, the method further includes:
When detecting click operation of a user in the website access image, acquiring a page area corresponding to the click operation;
Sending the page area to the remote browser, so that the remote browser simulates clicking operation according to the page area and feeds back a changed page image;
and carrying out access page display according to the received change page image.
A11, the website access method as set forth in A10, wherein the step of sending the page area to the remote browser, so that the remote browser simulates clicking operation according to the page area and feeds back a changed page image includes:
Detecting whether the page area is a clickable area;
If yes, the page area is sent to the remote browser, so that the remote browser simulates clicking operation according to the page area, and feeds back a changed page image.
The invention also discloses a B12 and a website access device, wherein the website access device comprises the following modules:
the request generation module is used for generating a website access request according to the user identity cache and the target access website;
the website access module is used for sending the website access request to a remote browser so that the remote browser can access websites according to the website access request and feed back website access images;
and the page display module is used for displaying the access page according to the website access image fed back by the remote browser.
B13, the website access device as described in B12, wherein the request generation module is further configured to obtain user login information when detecting that a user logs in; and sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information.
The website access device as described in B14, the request generation module is further configured to construct a start command parameter according to the user login information; constructing a browser starting instruction based on the starting command parameters; and sending the browser starting instruction to the rendering end so that the rendering end starts a remote browser according to the browser starting instruction, and logging in a user in the remote browser according to starting command parameters in the browser starting instruction.
The website access device as described in B15, wherein the request generating module is further configured to obtain a target access website and a current login user identifier input by a user when detecting that the user performs a website access operation; obtaining a cache storage address according to the current login user identifier; and acquiring the user identity cache based on the cache storage address.
The website access device as described in B16, wherein the request generation module is further configured to obtain a user access right according to the login user identifier; determining whether the current login user can access the target access website according to the user access authority; and if the target access website can be accessed, acquiring a cache storage address according to the current login user identifier.
B17, the website accessing device of B16, the said request generating module, is used for reading the address wildcard from the said user's access right; matching the website wildcard with the target access website; if the matching is successful, the target access website can be accessed.
B18, the website access device of B17, the request generating module is further configured to obtain a forbidden access list from the user access rights; detecting whether a website domain name corresponding to the target access website exists in the forbidden access list; and if the access forbidden list does not exist, executing the step of reading the website wildcard from the user access authority.
The invention also discloses C19, a website access device, the website access device includes: the system comprises a processor, a memory and a website access program stored on the memory and capable of running on the processor, wherein the website access program realizes the steps of the website access method when being executed by the processor.
The invention also discloses D20 and a computer readable storage medium, wherein the computer readable storage medium stores a website access program, and the website access program realizes the steps of the website access method when being executed.

Claims (10)

1. A web site access method, characterized in that the web site access method comprises the steps of:
generating a website access request according to the user identity cache and the target access website;
sending the website access request to a remote browser, so that the remote browser performs website access according to the website access request and feeds back a website access image;
and displaying the access page according to the website access image fed back by the remote browser.
2. The method for accessing a website as recited in claim 1, wherein prior to the step of generating a website access request based on the user identity cache and the target access website, further comprising:
when the user is detected to log in, user login information is obtained;
And sending the user login information to a rendering end so that the rendering end starts a remote browser, and carrying out user login in the remote browser according to the user login information.
3. The method for accessing a website according to claim 2, wherein the step of sending the user login information to a rendering end to enable the rendering end to start a remote browser and to perform user login in the remote browser according to the user login information comprises:
constructing starting command parameters according to the user login information;
constructing a browser starting instruction based on the starting command parameters;
And sending the browser starting instruction to the rendering end so that the rendering end starts a remote browser according to the browser starting instruction, and logging in a user in the remote browser according to starting command parameters in the browser starting instruction.
4. The method for accessing a website as recited in claim 1, wherein prior to the step of generating a website access request based on the user identity cache and the target access website, further comprising:
when detecting that a user executes website access operation, acquiring a target access website input by the user and a current login user identifier;
Obtaining a cache storage address according to the current login user identifier;
And acquiring the user identity cache based on the cache storage address.
5. The web site access method of claim 4 wherein the step of obtaining a cache memory address based on the current login user identification comprises:
Acquiring user access rights according to the login user identification;
determining whether the current login user can access the target access website according to the user access authority;
And if the target access website can be accessed, acquiring a cache storage address according to the current login user identifier.
6. The web site access method of claim 5 wherein said step of determining whether a currently logged-in user is available to access said target access site based on said user access rights comprises:
Reading a website wildcard from the user access right;
Matching the website wildcard with the target access website;
if the matching is successful, the target access website can be accessed.
7. The web site access method of claim 6 wherein prior to the step of reading a web site wild card from the user access right, further comprising:
Acquiring a forbidden access list from the user access authority;
detecting whether a website domain name corresponding to the target access website exists in the forbidden access list;
And if the access forbidden list does not exist, executing the step of reading the website wildcard from the user access authority.
8. A website accessing apparatus, comprising:
the request generation module is used for generating a website access request according to the user identity cache and the target access website;
the website access module is used for sending the website access request to a remote browser so that the remote browser can access websites according to the website access request and feed back website access images;
and the page display module is used for displaying the access page according to the website access image fed back by the remote browser.
9. A website accessing apparatus, characterized in that the website accessing apparatus comprises: a processor, a memory and a website accessing program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the website accessing method of any of claims 1-7.
10. A computer-readable storage medium, wherein a website accessing program is stored on the computer-readable storage medium, which when executed implements the steps of the website accessing method according to any one of claims 1 to 7.
CN202211550923.5A 2022-12-05 2022-12-05 Website access method, device, equipment and storage medium Pending CN118157878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211550923.5A CN118157878A (en) 2022-12-05 2022-12-05 Website access method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211550923.5A CN118157878A (en) 2022-12-05 2022-12-05 Website access method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118157878A true CN118157878A (en) 2024-06-07

Family

ID=91287510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211550923.5A Pending CN118157878A (en) 2022-12-05 2022-12-05 Website access method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118157878A (en)

Similar Documents

Publication Publication Date Title
US11799984B2 (en) Installable web applications
JP5057475B2 (en) Service access authentication data management system
CN111191221B (en) Configuration method and device of authority resources and computer readable storage medium
US10440111B2 (en) Application execution program, application execution method, and information processing terminal device that executes application
US9195849B2 (en) Cloud application installed in client terminal connected to cloud server
US20190073475A1 (en) Ransomware Mitigation System
US10650153B2 (en) Electronic document access validation
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
RU2742700C1 (en) Method, apparatus and a client terminal device for realizing a web site logon with a fingerprint
CN112118238B (en) Method, device, system, equipment and storage medium for authenticating login
CN111222153B (en) Application program authority management method and device and storage medium
CN113469866A (en) Data processing method and device and server
US9665732B2 (en) Secure Download from internet marketplace
CN112187747A (en) Remote container login method and device and electronic equipment
CN109040284B (en) Information display and information push method, device, equipment and storage medium
US9397995B2 (en) Information processing apparatus and user authentication method
CN108418809B (en) Chat data processing method and device, computer equipment and storage medium
CN113742023A (en) Authority configuration method and device, computer equipment and storage medium
JP2015088122A (en) Information management apparatus and program
CN118157878A (en) Website access method, device, equipment and storage medium
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN112860355B (en) Application program running and issuing method and device, computer equipment and storage medium
CN113051299A (en) Proxy information processing method, proxy information processing device, computer equipment and storage medium
CN112528339A (en) Data desensitization method based on Cach é database and electronic equipment
CN107517177B (en) Interface authorization method and device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination