Data transmission and filtering method, device, electronic device and storage medium
By setting up network zones and configuring data transmission security rules on the server side, the security and confidentiality issues of cross-device clipboard data transmission are resolved, enabling data synchronization and risk control between devices across network zones.
Patent Information
- Application Number
- CN202210822481.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-12
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-07-12
AI Technical Summary
Existing methods for cross-device clipboard data transmission cannot guarantee the security and confidentiality of data transmission, especially when transmitting data across devices and over the public network, which poses risks to data security and confidentiality.
By setting up network zones on the server side, clipboard data synchronization between devices across network zones can be achieved using private servers with account authentication. Clipboard data transmission security rules and data anonymization policies can be configured, including operations such as permission verification and anonymization filtering.
It improves the security and confidentiality of cross-device data transmission and enables risk control of clipboard data synchronization between devices across network regions.
Smart Images

Figure CN115396421B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data transmission and filtering method, device, electronic equipment and storage medium. Background Art
[0002] With the rapid development of Internet technology, people can obtain various information resources, and the files obtained often need to be transferred across devices. The existing clipboard technology for file data transfer operations is divided into two types: one is local single device clipboard transfer, that is, after the user copies or cuts a file through the clipboard on one device, it cannot be pasted to another device, and cross-device clipboard data transfer cannot be achieved; the other is cross-device data transfer through the public network cloud clipboard, but this method cannot be privately deployed and needs to be connected to the public network to transfer data. The data entering and leaving the device cannot be controlled and audited, and there are certain risks in data security and confidentiality.
[0003] It can be seen that the existing method of implementing cross-device clipboard data transmission has certain defects and cannot guarantee the security and confidentiality of cross-device data transmission. Summary of the invention
[0004] In view of the above, it is necessary to provide a data transmission and filtering method for realizing clipboard data synchronization and data security control across devices.
[0005] To achieve the above object, the present invention provides a data transmission and filtering method, which is applied to a server, wherein the server is communicatively connected with a terminal, and the method comprises:
[0006] receiving data change information sent by the first terminal when detecting that the clipboard data has changed, and sending the data change information to a second terminal corresponding to the first terminal;
[0007] receiving a data acquisition instruction sent by the second terminal, and sending the data acquisition instruction to the first terminal;
[0008] Receiving the clipboard data sent by the first terminal, and verifying the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result, wherein the data transmission permission includes a permission verification result of a data input permission and a permission verification result of a data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission;
[0009] When the permission check result is to allow transmission, the clipboard data is sent to the second terminal; when the permission check result is to desensitize transmission, the clipboard data is desensitized and filtered according to pre-set desensitization rules and then sent to the second terminal; when the permission check result is to prohibit transmission, an insufficient authority reminder message is sent to the second terminal.
[0010] Optionally, the second terminal is a terminal that logs into the server with the same account as the first terminal at the same time; before the step of receiving the data change information sent by the first terminal when detecting that the clipboard data has changed, the method further includes:
[0011] Pre-setting a plurality of network areas, each network area including one or more terminals connected to the server for communication;
[0012] One or more IP addresses or IP address segments corresponding to each network area are preset, and the IP addresses or IP address segments are allocated to terminals in the network area that communicate with the server.
[0013] Optionally, before the step of receiving the data change information sent by the first terminal when detecting that the clipboard data has changed, the step includes:
[0014] After the first terminal logs into the server account, the first terminal detects the state of the clipboard of the first terminal in real time;
[0015] When the first terminal detects that data on the clipboard of the first terminal has changed, the data change information is sent to the server to be forwarded to the second terminal.
[0016] Optionally, before the step of receiving the data acquisition instruction sent by the second terminal, the method further includes:
[0017] After receiving the data change information from the first terminal sent by the server, the second terminal displays a prompt message of clipboard data transmission on a display interface of the second terminal, obtains ownership of the clipboard of the second terminal and detects input instructions in real time;
[0018] If a clipboard paste instruction is received, the second terminal sends a data acquisition instruction to the first terminal through the server;
[0019] If other instructions are received, the second terminal releases the ownership of the clipboard of the second terminal, and then performs corresponding data operations according to the other instructions received.
[0020] Optionally, the verifying the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result includes:
[0021] Pre-setting a data permission table for each network area, the data permission table includes data transmission permissions of terminals in each network area to terminals in other network areas;
[0022] After receiving the clipboard data sent by the first terminal, determining the first network area where the first terminal is located according to the IP address or IP address segment of the first terminal, and determining the second network area where the second terminal is located according to the IP address or IP address segment of the second terminal;
[0023] Determining whether the first network area and the second network area are the same network area;
[0024] If yes, the permission check result is to allow transmission;
[0025] If not, the data transmission authority of the terminal in the first network area to the terminal in the second network area is obtained according to the data authority table to obtain the authority verification result of the first terminal performing data transmission to the second terminal.
[0026] Optionally, the desensitized transmission includes multiple types, and the pre-set desensitization rules include desensitized data matching rules and the image desensitization strategies and text desensitization strategies adopted therein, and the desensitized data matching rules are the image desensitization strategies and text desensitization strategies corresponding to each type of desensitized transmission.
[0027] Optionally, after performing corresponding data operations according to the verification results, the server generates a corresponding data transmission notification according to the data operation results and returns it to the first terminal, and archives and records the clipboard data transmission process and related information.
[0028] In addition, to achieve the above-mentioned purpose, the present invention also provides a data transmission and filtering device, the device comprising:
[0029] A data change module, configured to receive data change information sent by a first terminal when detecting that clipboard data has changed, and send the data change information to a second terminal corresponding to the first terminal;
[0030] A data acquisition module, configured to receive a data acquisition instruction sent by the second terminal, and send the data acquisition instruction to the first terminal;
[0031] a data filtering module, configured to receive the clipboard data sent by the first terminal, and verify the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result, wherein the data transmission permission includes a permission verification result of a data input permission and a permission verification result of a data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission;
[0032] A data transmission module is used to send the clipboard data to the second terminal when the permission check result is to allow transmission; when the permission check result is to desensitize transmission, the clipboard data is desensitized and filtered according to pre-set desensitization rules and then sent to the second terminal; when the permission check result is to prohibit transmission, send insufficient permission reminder information to the second terminal.
[0033] In addition, to achieve the above object, the present invention further provides an electronic device, the electronic device comprising:
[0034] a memory storing at least one computer program; and
[0035] The processor executes the program stored in the memory to implement the above-mentioned data transmission and filtering method.
[0036] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the above-mentioned data transmission and filtering method.
[0037] The present invention realizes clipboard data synchronization between devices across network areas by presetting different network areas and deploying private servers that have passed account authentication; clipboard data transmission security rules and data desensitization strategies are configured based on network areas, thereby realizing risk control of clipboard data synchronization between devices across network areas, and improving the security and confidentiality of the data transmission process. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A flow chart of an embodiment of a data transmission and filtering method of the present invention;
[0039] Figure 2 A schematic diagram of an electronic device according to an embodiment of the present invention;
[0040] Figure 3 It is a schematic diagram of an embodiment of a data transmission and filtering device of the present invention.
[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0043] It should be noted that the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0044] like Figure 1 FIG. 1 is a flow chart of an embodiment of a data transmission and filtering method of the present invention. The data transmission and filtering method includes steps S1-S4.
[0045] S1. Receive data change information sent by a first terminal when detecting that clipboard data has changed, and send the data change information to a second terminal corresponding to the first terminal.
[0046] Specifically, the second terminal is a terminal that logs into the server with the same account as the first terminal at the same time. The second terminal may be one or more terminals that meet the above conditions.
[0047] In one embodiment, before the step of receiving the data change information sent by the first terminal when detecting a change in the clipboard data, the server pre-sets multiple network areas, each network area includes one or more terminals that are communicatively connected to the server, and pre-sets one or more IP addresses or IP address segments corresponding to each network area, and allocates the IP addresses or IP address segments to the terminals in the network area that are communicatively connected to the server.
[0048] In one embodiment, after receiving the data change information sent by the first terminal, the server obtains the terminals of all accounts currently logged in to the first terminal, and uses the obtained one or more terminals as second terminals, and executes the other steps of the data transmission and filtering method of the present invention for each second terminal.
[0049] In one embodiment, the network area includes but is not limited to: production area, isolation area, office area, VPN access area, development and testing area. The server configures the network area and IP address for each terminal and stores the IP addresses contained in each network area; when communicating with the terminal, the network area corresponding to the terminal is confirmed according to the IP address of the terminal when connecting to the server for account login.
[0050] In one embodiment, the server provides account login services for terminals in each network area. Specifically, multiple terminals can log in to the same account on the server to perform clipboard data transmission, and a single terminal cannot log in to multiple accounts at the same time.
[0051] In one embodiment, after logging into the server account, the first terminal detects the status of the clipboard of the first terminal in real time; when the first terminal receives a clipboard copy instruction and executes a clipboard copy operation, the first terminal detects that the data on the clipboard of the first terminal has changed, and sends the data change information to the server to be forwarded to the second terminal.
[0052] Specifically, when the server receives the data change information sent by the first terminal, it identifies the second terminal corresponding to the first terminal according to the server account currently logged in by the first terminal, and sends the data change information to the second terminal; if the second terminal corresponding to the first terminal is not detected, it returns a prompt message that there is no data transmission object to the first terminal.
[0053] S2. Receive a data acquisition instruction sent by the second terminal, and send the data acquisition instruction to the first terminal.
[0054] Specifically, after receiving the data change information from the first terminal sent by the server, the second terminal displays the prompt information of the clipboard data transmission on the terminal display interface of the second terminal, obtains the ownership of the clipboard of the second terminal and detects the input instruction in real time; if a clipboard paste instruction is received, the second terminal sends a data acquisition instruction to the first terminal through the server; if other instructions are received, the second terminal releases the ownership of the clipboard of the second terminal, and then performs corresponding data operations according to the other instructions received.
[0055] S3. Receive the clipboard data sent by the first terminal, and verify the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result, wherein the data transmission permission includes a permission verification result of data input permission and a permission verification result of data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission.
[0056] Specifically, after receiving the data acquisition instruction sent by the server, the first terminal reads the clipboard data of the clipboard of the first terminal and sends it to the server. In one embodiment, the first terminal compresses and packages the clipboard data and sends it to the server.
[0057] In one embodiment, the server pre-sets a data permission table for each network area, and the data permission table includes the data transmission permission of the terminal in each network area to the terminal in other network areas. After receiving the clipboard data sent by the first terminal, the server first determines the first network area where the first terminal is located according to the IP address or IP address segment of the first terminal, and determines the second network area where the second terminal is located according to the IP address or IP address segment of the second terminal; then determines whether the first network area and the second network area are the same network area; if so, the permission check result is to allow transmission; if not, the data transmission permission of the terminal in the first network area to the terminal in the second network area is obtained according to the data permission table to obtain the permission check result for the first terminal to perform data transmission from the second terminal.
[0058] In one embodiment, the data permission table also includes data transmission permissions between terminals in the same network area, and the permission verification results of the data transmission permissions are all to allow transmission. When the server determines that the first network area and the second network area are the same network area, the permission verification result of allowing transmission is obtained according to the data transmission permissions between terminals in the same network area in the data permission table.
[0059] S4. When the permission check result is that transmission is allowed, the clipboard data is sent to the second terminal; when the permission check result is that transmission is desensitized, the clipboard data is desensitized and filtered according to a pre-set desensitization rule and then sent to the second terminal; when the permission check result is that transmission is prohibited, an insufficient permission reminder message is sent to the second terminal.
[0060] In one embodiment, after the server performs corresponding data operations according to the verification result, it generates a corresponding data transmission notification according to the data operation result and returns it to the first terminal, wherein the data operation result is data transmission success or data transmission failure.
[0061] In one embodiment, the server archives the clipboard data transmission process and related information in a table in a database to generate a text flow record. Specifically, the text flow record includes the time, account, upload platform (i.e., the first network area), upload terminal (i.e., the IP address of the first terminal), data type (including text and / or pictures), content, download record (including the second network area and the IP address of the second terminal), and hit rule (i.e., the desensitized data matching rule used for this data transmission).
[0062] In one embodiment, the desensitized transmission includes multiple types, and the pre-set desensitization rules include desensitized data matching rules and the image desensitization strategy and text desensitization strategy adopted by them.
[0063] Specifically, the image desensitization strategy includes but is not limited to image encryption, image coding, and image replacement; the text desensitization strategy includes but is not limited to text encryption, text coding, and text replacement. The desensitized data matching rules are the image desensitization strategies and text desensitization strategies corresponding to each type of desensitized transmission, for example: the image desensitization strategy corresponding to Type I desensitized transmission is image encryption, and the text desensitization strategy is text replacement; the image desensitization strategy corresponding to Type II desensitized transmission is image coding, and the text desensitization strategy is text encryption. The desensitized data matching rules can be stored in the server in the form of a relationship mapping table of [desensitized transmission type-desensitization strategy combination].
[0064] In one embodiment, if the second terminal receives data sent by the server, the data is written to the clipboard of the second terminal, and the data in the clipboard of the second terminal is pasted according to the clipboard paste instruction received previously. If the second terminal receives insufficient authority reminder information sent by the server, the insufficient authority reminder information is displayed on the terminal display interface of the second terminal and the clipboard ownership is released.
[0065] It can be seen from the above embodiments that the data transmission and filtering method proposed in the present invention realizes clipboard data synchronization between devices across network areas by presetting different network areas and deploying private servers that have passed account authentication; clipboard data transmission security rules and data desensitization strategies are configured based on network areas, thereby realizing risk control of clipboard data synchronization between devices across network areas, and improving the security and confidentiality of the data transmission process.
[0066] like Figure 2, which is a schematic diagram of an embodiment of an electronic device of the present invention. The electronic device 1 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The electronic device 1 can be a computer, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computer sets.
[0067] In this embodiment, the electronic device 1 includes, but is not limited to, a memory 11, a processor 12, and a network interface 13 that can be interconnected and communicated via a system bus. The memory 11 stores a data transmission and filtering program 10, which can be executed by the processor 12. Figure 3 Only the electronic device 1 having the components 11-13 and the data transmission and filtering program 10 is shown, and it can be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation on the electronic device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0068] Among them, the memory 11 includes a memory and at least one type of readable storage medium. The memory provides a cache for the operation of the electronic device 1; the readable storage medium can be volatile or non-volatile. Specifically, the readable storage medium can be a storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the readable storage medium can be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the storage medium can also be an external storage device of the electronic device 1, such as a plug-in hard disk equipped on the electronic device 1, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. In this embodiment, the readable storage medium of the memory 11 mainly includes a program storage area and a data storage area, wherein the program storage area is generally used to store an operating system and various application software installed on the electronic device 1, such as storing the code of the data transmission and filtering program 10 in an embodiment of the present invention; the data storage area can store data created according to the use of the blockchain node, such as various types of data that have been output or are to be output.
[0069] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 12 is generally used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with other devices. In this embodiment, the processor 12 is used to run the program code stored in the memory 11 or process data, such as running the data transmission and filtering program 10.
[0070] The network interface 13 may include a wireless network interface or a wired network interface, and the network interface 13 is used to establish a communication connection between the electronic device 1 and a client (not shown in the figure).
[0071] Optionally, the electronic device 1 may further include a user interface, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an organic light-emitting diode (Organic Light-Emitting Diode, OLED) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0072] In one embodiment of the present invention, the data transmission and filtering program 10 implements the following steps S1-S4 when executed by the processor 12.
[0073] S1. receiving data change information sent by a first terminal when detecting that clipboard data has changed, and sending the data change information to a second terminal corresponding to the first terminal;
[0074] S2. Receive a data acquisition instruction sent by the second terminal, and send the data acquisition instruction to the first terminal;
[0075] S3. receiving the clipboard data sent by the first terminal, and verifying the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result, wherein the data transmission permission includes a permission verification result of a data input permission and a permission verification result of a data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission;
[0076] S4. When the permission check result is that transmission is allowed, the clipboard data is sent to the second terminal; when the permission check result is that transmission is desensitized, the clipboard data is desensitized and filtered according to a pre-set desensitization rule and then sent to the second terminal; when the permission check result is that transmission is prohibited, an insufficient permission reminder message is sent to the second terminal.
[0077] The specific operation steps implemented by the above steps S1-S4 are substantially the same as those of the first embodiment of the data transmission and filtering method of the present invention, and will not be repeated here.
[0078] In other embodiments, the data transmission and filtering program 10 can also be divided into one or more modules, one or more modules are stored in the memory 11, and are executed by one or more processors (processor 12 in this embodiment) to complete the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which are used to describe the execution process of the data transmission and filtering program 10 in the electronic device 1.
[0079] like Figure 3 FIG. 1 is a schematic diagram of an embodiment of a data transmission and filtering device according to the present invention.
[0080] In the first embodiment of the present invention, the data transmission and filtering device 10 includes a data change module 110, a data acquisition module 120, a data filtering module 130 and a data transmission module 140. Exemplarily:
[0081] The data change module 110 is used to receive data change information sent by the first terminal when detecting that the clipboard data has changed, and send the data change information to a second terminal corresponding to the first terminal;
[0082] The data acquisition module 120 is used to receive a data acquisition instruction sent by the second terminal, and send the data acquisition instruction to the first terminal;
[0083] The data filtering module 130 is used to receive the clipboard data sent by the first terminal, and verify the data transmission permission of the clipboard data according to the preset data permission table to obtain a permission verification result, wherein the data transmission permission includes the permission verification result of the data input permission and the permission verification result of the data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission;
[0084] The data transmission module 140 is used to send the clipboard data to the second terminal when the permission check result is to allow transmission; when the permission check result is to desensitize transmission, desensitize and filter the clipboard data according to pre-set desensitization rules and then send it to the second terminal; when the permission check result is to prohibit transmission, send insufficient permission reminder information to the second terminal.
[0085] The specific operation steps implemented when the data change module 110, the data acquisition module 120, the data filtering module 130 and the data transmission module 140 are executed are substantially the same as those in the above embodiment and will not be repeated here.
[0086] In addition, the embodiment of the present invention further proposes a computer-readable storage medium, which can be volatile or non-volatile. Specifically, the computer-readable storage medium can be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium stores a data transmission and filtering program 10.
[0087] When the data transmission and filtering program 10 is executed by the processor, the following operations are implemented:
[0088] A1. receiving data change information sent by a first terminal when detecting that clipboard data has changed, and sending the data change information to a second terminal corresponding to the first terminal;
[0089] A2. Receive a data acquisition instruction sent by the second terminal, and send the data acquisition instruction to the first terminal;
[0090] A3. receiving the clipboard data sent by the first terminal, and verifying the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result, wherein the data transmission permission includes a permission verification result of a data input permission and a permission verification result of a data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission;
[0091] A4. When the permission check result is that transmission is allowed, the clipboard data is sent to the second terminal; when the permission check result is that transmission is desensitized, the clipboard data is desensitized and filtered according to a pre-set desensitization rule and then sent to the second terminal; when the permission check result is that transmission is prohibited, an insufficient permission reminder message is sent to the second terminal.
[0092] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0093] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods 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 invention, 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 a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0095] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A data transmission and filtering method, applied to a server, wherein the server is connected to a terminal for communication, characterized in that: The method comprises: receiving data change information sent by the first terminal when detecting that the clipboard data has changed, and sending the data change information to a second terminal corresponding to the first terminal; receiving a data acquisition instruction sent by the second terminal, and sending the data acquisition instruction to the first terminal; Receiving the clipboard data sent by the first terminal, and verifying the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result, wherein the data transmission permission includes a permission verification result of a data input permission and a permission verification result of a data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission; When the permission check result is to allow transmission, the clipboard data is sent to the second terminal; when the permission check result is to desensitize transmission, the clipboard data is desensitized and filtered according to pre-set desensitization rules and then sent to the second terminal; when the permission check result is to prohibit transmission, an insufficient authority reminder message is sent to the second terminal.
2. The data transmission and filtering method according to claim 1, characterized in that: The second terminal is a terminal that logs into the server with the same account as the first terminal at the same time; Before the step of receiving the data change information sent by the first terminal when detecting that the clipboard data has changed, the step further includes: Pre-setting a plurality of network areas, each network area including one or more terminals connected to the server for communication; One or more IP addresses or IP address segments corresponding to each network area are preset, and the IP addresses or IP address segments are allocated to terminals in the network area that communicate with the server.
3. The data transmission and filtering method according to claim 1, characterized in that: Before the step of receiving the data change information sent by the first terminal when detecting that the clipboard data has changed, the method includes: After the first terminal logs into the server account, the first terminal detects the state of the clipboard of the first terminal in real time; When the first terminal detects that data on the clipboard of the first terminal has changed, the data change information is sent to the server to be forwarded to the second terminal.
4. The data transmission and filtering method according to claim 1, characterized in that: Before the step of receiving the data acquisition instruction sent by the second terminal, the method includes: After receiving the data change information from the first terminal sent by the server, the second terminal displays a prompt message of clipboard data transmission on a display interface of the second terminal, obtains ownership of the clipboard of the second terminal and detects input instructions in real time; If a clipboard paste instruction is received, the second terminal sends a data acquisition instruction to the first terminal through the server; If other instructions are received, the second terminal releases the ownership of the clipboard of the second terminal, and then performs corresponding data operations according to the other instructions received.
5. The data transmission and filtering method according to claim 1, characterized in that: The step of verifying the data transmission permission of the clipboard data according to the preset data permission table to obtain the permission verification result includes: Pre-setting a data permission table for each network area, the data permission table includes data transmission permissions of terminals in each network area to terminals in other network areas; After receiving the clipboard data sent by the first terminal, determining the first network area where the first terminal is located according to the IP address or IP address segment of the first terminal, and determining the second network area where the second terminal is located according to the IP address or IP address segment of the second terminal; Determining whether the first network area and the second network area are the same network area; If yes, the permission check result is to allow transmission; If not, the data transmission authority of the terminal in the first network area to the terminal in the second network area is obtained according to the data authority table to obtain the authority verification result of the first terminal performing data transmission to the second terminal.
6. The data transmission and filtering method according to claim 1, characterized in that: The desensitized transmission includes multiple types, and the pre-set desensitization rules include desensitized data matching rules and the image desensitization strategy and text desensitization strategy adopted by them. The desensitized data matching rules are the image desensitization strategy and text desensitization strategy corresponding to each type of desensitized transmission.
7. The data transmission and filtering method according to claim 1, characterized in that: After the server performs corresponding data operations according to the verification results, it generates a corresponding data transmission notification according to the data operation results and returns it to the first terminal, and archives and records the clipboard data transmission process and related information.
8. A data transmission and filtering device, characterized in that: The device comprises: A data change module, configured to receive data change information sent by a first terminal when detecting that clipboard data has changed, and send the data change information to a second terminal corresponding to the first terminal; A data acquisition module, configured to receive a data acquisition instruction sent by the second terminal, and send the data acquisition instruction to the first terminal; a data filtering module, configured to receive the clipboard data sent by the first terminal, and verify the data transmission permission of the clipboard data according to a preset data permission table to obtain a permission verification result, wherein the data transmission permission includes a permission verification result of a data input permission and a permission verification result of a data output permission, and the permission verification result includes allowing transmission, desensitizing transmission, and prohibiting transmission; A data transmission module is used to send the clipboard data to the second terminal when the permission check result is to allow transmission; when the permission check result is to desensitize transmission, the clipboard data is desensitized and filtered according to pre-set desensitization rules and then sent to the second terminal; when the permission check result is to prohibit transmission, send insufficient permission reminder information to the second terminal.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the data transmission and filtering method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data transmission and filtering method according to any one of claims 1 to 7 is implemented.
