CN109302387B - Domain name shielding method, device and storage medium based on wireless connection - Google Patents

Domain name shielding method, device and storage medium based on wireless connection Download PDF

Info

Publication number
CN109302387B
CN109302387B CN201811083511.9A CN201811083511A CN109302387B CN 109302387 B CN109302387 B CN 109302387B CN 201811083511 A CN201811083511 A CN 201811083511A CN 109302387 B CN109302387 B CN 109302387B
Authority
CN
China
Prior art keywords
wireless hotspot
information
domain name
shielded
hotspot
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.)
Active
Application number
CN201811083511.9A
Other languages
Chinese (zh)
Other versions
CN109302387A (en
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.)
Shanghai Zhangmen Science and Technology Co Ltd
Original Assignee
Shanghai Zhangmen Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN201811083511.9A priority Critical patent/CN109302387B/en
Publication of CN109302387A publication Critical patent/CN109302387A/en
Application granted granted Critical
Publication of CN109302387B publication Critical patent/CN109302387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

The invention discloses a method, equipment and a storage medium for shielding a domain name based on wireless connection, and belongs to the technical field of wireless communication. The method comprises the following steps: the device sends a wireless hotspot connection request to the router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded; the device is connected with the target wireless hotspot and adds the corresponding domain name information to be shielded to the system domain name shielding file; and the equipment displays the successful connection information of the wireless hotspot with the shielded domain name. According to the invention, when the wireless hotspot is connected, the corresponding domain name and the network address corresponding to the domain name are shielded, so that a user is prevented from being influenced by advertisements, other webpage information and the like in the internet surfing process, the internet surfing experience is improved, and the healthy internet surfing of children is effectively ensured.

Description

Domain name shielding method, device and storage medium based on wireless connection
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a method, an apparatus, and a storage medium for shielding a domain name based on wireless connection.
Background
Today, the dependence of people on mobile devices such as mobile phones is more and more obvious due to the rapid development of internet technology, and people browse news, work, shopping, games and the like through the mobile devices, so that great convenience is brought to the life of people. However, in the process of browsing the web pages, people often find that a large number of advertisements, other web page information and other contents are displayed in the web pages, people are dazzling, and a feeling of opposition is generated, so that the internet surfing experience is reduced; meanwhile, for children, the children can easily log in some bad websites along with the contents such as advertisements displayed on the pages, other webpage information and the like, and worry is increased for parents.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a domain name shielding method, a device and a storage medium based on wireless connection.
In a first aspect, the present invention provides a domain name shielding method based on wireless connection for a device side, including:
sending a wireless hotspot connection request to a router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
connecting the target wireless hotspot, and adding corresponding domain name information to be shielded to a system domain name shielding file;
and displaying the successful connection information of the wireless hotspot with the shielded domain name.
Optionally, before sending the wireless hotspot connection request to the router, the method further includes:
sending a wireless hotspot information query request to a server and synchronously acquiring domain name information to be shielded corresponding to the wireless hotspots, wherein the wireless hotspot information query request comprises identification information of each scanned wireless hotspot;
and receiving wireless hotspot information returned by the server and corresponding domain name information to be shielded, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information.
Optionally, after receiving the wireless hotspot information returned by the server and the corresponding domain name information to be shielded, the method further includes:
determining a target wireless hotspot in the wireless hotspots with the wireless hotspot accessible prompting information and/or the wireless hotspot connection authentication prompting information;
and sending an access information acquisition request of the target wireless hotspot to a server, and receiving access information returned by the server.
Optionally, before sending the wireless hotspot connection request to the router, the method further includes:
sending a wireless hotspot information query request to a server, and receiving wireless hotspot information returned by the server; the wireless hotspot information inquiry request comprises identification information of each scanned wireless hotspot;
when the wireless hotspot information contains accessible prompt information, determining that a target wireless hotspot with the accessible prompt information exists;
responding to a target wireless hotspot connecting instruction, sending an access information acquisition request of the target wireless hotspot to a server, synchronously acquiring domain name information to be shielded corresponding to the target wireless hotspot, and receiving access information and corresponding domain name information to be shielded returned by the server;
when the wireless hotspot information contains connection authentication prompt information, determining a target wireless hotspot with the connection authentication prompt information;
responding to a target wireless hotspot connecting instruction, sending a target wireless hotspot connecting authentication request to a server, synchronously acquiring domain name information to be shielded corresponding to the target wireless hotspot, and receiving the connecting authentication information and the corresponding domain name information to be shielded returned by the server;
when the wireless hotspot information comprises open hotspot prompt information, determining a target wireless hotspot with the open hotspot prompt information;
responding to a target wireless hotspot connecting instruction, sending a request for acquiring the domain name information to be shielded corresponding to the target wireless hotspot to a server, and receiving the domain name information to be shielded returned by the server.
Optionally, the adding the corresponding domain name information to be masked to the system domain name masking file includes:
searching a system main file, and adding a corresponding domain name to be shielded and a network address corresponding to the domain name to be shielded into the system main file;
or searching an HTTP proxy configuration file, and adding the corresponding domain name to be shielded and the network address corresponding to the domain name to be shielded into the HTTP proxy configuration file;
or searching a DNS server configuration file, and adding the corresponding domain name to be shielded and the network address corresponding to the domain name to be shielded into the DNS server configuration file.
In a second aspect, the present invention provides a domain name shielding method based on wireless connection for a server, including:
receiving a wireless hotspot information query request from equipment and a domain name information acquisition request to be shielded corresponding to a wireless hotspot, wherein the wireless hotspot information query request comprises identification information of a scanned wireless hotspot; the method comprises the steps that when a wireless hotspot information query request from equipment is received, a domain name information acquisition request to be shielded corresponding to a wireless hotspot from an equipment end can be synchronously received;
according to the identification information of the wireless hotspot, searching wireless hotspot information corresponding to the wireless hotspot and corresponding domain name information to be shielded;
and returning the searched wireless hotspot information and the corresponding domain name information to be shielded to the equipment, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information.
Optionally, the method further includes:
receiving an access information acquisition request of a target wireless hotspot, which is sent by equipment and has wireless hotspot accessible prompt information or wireless hotspot connection authentication prompt information, wherein the access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot;
the method comprises the steps that when receiving an access information acquisition request of a target wireless hotspot sent by equipment, the domain name information acquisition request to be shielded corresponding to the target wireless hotspot sent by the equipment can be synchronously received;
searching access information of the target wireless hotspot and corresponding domain name information to be shielded according to the identification information of the target wireless hotspot;
and returning the found access information of the target wireless hotspot and the corresponding domain name information to be shielded to the equipment.
In a third aspect, the present invention provides a domain name shielding method based on wireless connection, including:
the method comprises the steps that equipment sends an access information acquisition request of a target wireless hotspot to a server and synchronously sends a domain name information acquisition request to be shielded corresponding to the target wireless hotspot, wherein the target wireless hotspot information query request comprises identification information of the target wireless hotspot;
the server receives an access information acquisition request of a target wireless hotspot sent by the equipment and a domain name information acquisition request to be shielded corresponding to the target wireless hotspot;
the server searches access information of the target wireless hotspot and corresponding domain name information to be shielded according to the identification information of the target wireless hotspot;
the server returns the found access information of the target wireless hotspot and the corresponding domain name information to be shielded to the equipment;
the device sends a wireless hotspot connection request to a router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
the equipment is connected with the target wireless hotspot and adds corresponding domain name information to be shielded to a system domain name shielding file;
and the equipment displays the successful connection information of the wireless hotspot with the shielded domain name.
In a fourth aspect, the present invention provides a domain name shielding method based on wireless connection, including:
the method comprises the steps that equipment sends a wireless hotspot information query request to a server and synchronously sends a domain name information acquisition request to be shielded corresponding to a wireless hotspot, wherein the wireless hotspot information query request comprises identification information of each scanned wireless hotspot;
the server receives a wireless hotspot information query request from equipment and a domain name information acquisition request to be shielded corresponding to a wireless hotspot;
the server searches the wireless hotspot information of each wireless hotspot and the corresponding domain name information to be shielded according to the identification information of each wireless hotspot;
the server returns the searched wireless hotspot information and the corresponding domain name information to be shielded to the equipment, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information;
the equipment receives wireless hotspot information returned by the server and corresponding domain name information to be shielded;
the device determines a target wireless hotspot in the wireless hotspots with the wireless hotspot accessible prompting message and/or the wireless hotspot connection authentication prompting message;
the device sends an access information acquisition request of a target wireless hotspot to the server, wherein the access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot;
the server receives an access information acquisition request of a target wireless hotspot sent by the equipment;
the server searches the access information of the target wireless hotspot according to the identification information of the target wireless hotspot;
the server returns the access information of the searched target wireless hotspot to the equipment;
the device sends a wireless hotspot connection request to a router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
the equipment is connected with the target wireless hotspot and adds corresponding domain name information to be shielded to a system domain name shielding file;
and the equipment displays the successful connection information of the wireless hotspot with the shielded domain name.
In a fifth aspect, the present invention provides an advertisement shielding device based on wireless connection, including:
one or more processors, storage devices to store one or more programs;
the one or more programs, when executed by the one or more processors, implement the method of any of the first to fourth aspects of the present invention.
In a sixth aspect, the invention proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of the first to fourth aspects of the invention.
The invention has the advantages that:
according to the invention, when the user connects the wireless hotspot, the corresponding domain name and the network address corresponding to the domain name are shielded, so that the page does not show the contents of advertisements, other webpage information and the like in the online process of browsing the webpage, playing games and the like after the user succeeds in wireless connection, thereby ensuring that the user is not influenced by the advertisements, other webpage information and the like in the online process and improving the online experience of the user; meanwhile, for the children, the method can effectively avoid logging in bad websites, ensure the healthy surfing of the children, and effectively avoid the worry of parents.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a domain name shielding method based on wireless connection for a device end according to the present invention;
fig. 2 is a flowchart of a domain name shielding method based on wireless connection for a server according to the present invention;
fig. 3 is a flowchart of a domain name shielding method based on wireless connection according to the present invention;
fig. 4 is a flowchart of another domain name shielding method based on wireless connection according to the present invention;
fig. 5 is a block diagram of a domain name screening system based on wireless connection according to the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
According to an embodiment of the present invention, there is provided a domain name screening method based on wireless connection for a device, as shown in fig. 1, including:
step 101: sending a wireless hotspot connection request to a router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
optionally, step 101 further includes:
step A1: sending a wireless hotspot information query request to a server and synchronously acquiring domain name information to be shielded corresponding to the wireless hotspots, wherein the wireless hotspot information query request comprises identification information of each scanned wireless hotspot;
the identification information is specifically: a hotspot name and/or SSID (Service Set Identifier) and/or BSSID (Basic Service Set Identifier).
Step A2: and receiving wireless hotspot information and corresponding domain name information to be shielded returned by the server, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information. The wireless hotspot accessible prompt message is specifically a prompt message for inputting a connection password, and the wireless hotspot connection authentication prompt message is specifically a prompt message for authenticating the connection password.
According to the embodiment of the present invention, after the step a2, the method further includes:
step B1: determining a target wireless hotspot in the wireless hotspots with the wireless hotspot accessible prompting information and/or the wireless hotspot connection authentication prompting information;
step B2: and sending an access information acquisition request of the target wireless hotspot to the server, and receiving access information returned by the server.
The access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot; the access information of the target wireless hotspot is specifically a connection password of the target wireless hotspot.
Optionally, step 101 further includes:
sending a wireless hotspot information query request to a server, and receiving wireless hotspot information returned by the server; the wireless hotspot information inquiry request comprises identification information of each scanned wireless hotspot;
when the received wireless hotspot information contains the accessible prompt information, determining that a target wireless hotspot with the accessible prompt information exists;
responding to a target wireless hotspot connecting instruction, sending an access information acquisition request of a target wireless hotspot to a server, synchronously acquiring domain name information to be shielded corresponding to the target wireless hotspot, and receiving access information and corresponding domain name information to be shielded returned by the server;
when the received wireless hotspot information contains connection authentication prompt information, determining a target wireless hotspot with the connection authentication prompt information;
responding to a target wireless hotspot connecting instruction, sending a target wireless hotspot connecting authentication request to a server, synchronously acquiring domain name information to be shielded corresponding to the target wireless hotspot, and receiving the connecting authentication information and the corresponding domain name information to be shielded returned by the server;
when the received wireless hotspot information contains open hotspot prompt information, determining a target wireless hotspot with the open hotspot prompt information;
responding to the target wireless hotspot connecting instruction, sending a request for acquiring the domain name information to be shielded corresponding to the target wireless hotspot to the server, and receiving the domain name information to be shielded returned by the server.
That is, in the present invention, the device may acquire the domain name information to be shielded corresponding to each wireless hotspot when querying the scanned wireless hotspot information of each wireless hotspot; the domain name information to be shielded corresponding to the target wireless hotspot can be acquired when the access information of the target wireless hotspot is acquired; the information of the domain name to be shielded comprises the domain name to be shielded and a network address corresponding to the domain name to be shielded.
Furthermore, in the invention, the target wireless hotspot can be selected by the user, namely, the equipment displays the identification information of each scanned wireless hotspot to the user and receives the identification information selected by the user; the device can also be self-determined, that is, the device selects a target wireless hotspot from the scanned wireless hotspots.
Furthermore, in the invention, when the router receives the wireless connection request, whether the access information contained in the received wireless connection request is correct is judged, and when the access information contained in the received wireless connection request is judged to be correct, the domain name information to be shielded contained in the wireless connection request is stored, and response data is returned to the equipment;
correspondingly, after the step 101 of sending the wireless connection request to the router, the method further includes: and receiving response data returned by the router.
Step 102: connecting the target wireless hotspot, and adding the corresponding domain name information to be shielded to a system domain name shielding file;
wherein, connect the target and connect wireless hotspot, include: when the received wireless hotspot information contains open hotspot prompt information, namely when the target wireless hotspot is an open hotspot, directly connecting the target wireless hotspot; and when the received wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information, namely when the target wireless hotspot is a non-open hotspot, connecting the target wireless hotspot according to the acquired access information.
According to the embodiment of the invention, adding the corresponding domain name information to be shielded to a system domain name shielding file comprises the following steps:
searching a system main file, and adding the corresponding domain name to be shielded and the network address corresponding to the domain name to be shielded into the searched system main file;
or searching an HTTP proxy configuration file, and adding the corresponding domain name to be shielded and the network address corresponding to the domain name to be shielded into the searched HTTP proxy configuration file;
or searching a DNS configuration file, and adding the corresponding domain name to be shielded and the network address corresponding to the domain name to be shielded into the searched DNS configuration file.
The system main file is specifically a Host file.
According to the invention, when the wireless hotspot is connected, the domain name corresponding to the wireless hotspot and the network address corresponding to the domain name are shielded, so that after the wireless connection is successful, the page does not show corresponding contents such as advertisements and webpage information in the online processes such as webpage browsing, game playing and the like, thereby ensuring that the user is not influenced by the advertisements and other webpage information in the online process, and improving the online experience of the user; meanwhile, for the children, the method can effectively avoid logging in bad websites, ensure the healthy surfing of the children, and effectively avoid the worry of parents.
Step 103: and displaying the successful connection information of the wireless hotspot with the shielded domain name.
According to an embodiment of the present invention, a domain name screening method based on wireless connection for a server is further provided, as shown in fig. 2, including:
step 201: receiving a wireless hotspot information query request from equipment and a domain name information acquisition request to be shielded corresponding to a wireless hotspot, wherein the wireless hotspot information query request comprises identification information of the scanned wireless hotspot;
the method comprises the steps that when a wireless hotspot information query request from equipment is received, a domain name information acquisition request to be shielded corresponding to a wireless hotspot from an equipment end can be synchronously received;
step 202: and searching the wireless hotspot information corresponding to the wireless hotspot and the corresponding domain name information to be shielded according to the identification information of the wireless hotspot.
The domain name information to be shielded comprises: the domain name to be shielded and the network address corresponding to the domain name to be shielded.
Step 203: and returning the searched wireless hotspot information and the corresponding domain name information to be shielded to the equipment, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information.
According to an embodiment of the invention, the method further comprises:
receiving an access information acquisition request of a target wireless hotspot, which is sent by equipment and has wireless hotspot accessible prompt information or wireless hotspot connection authentication prompt information, wherein the access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot;
the method comprises the steps that when receiving an access information acquisition request of a target wireless hotspot sent by equipment, the domain name information acquisition request to be shielded corresponding to the target wireless hotspot sent by the equipment can be synchronously received;
searching access information of the target wireless hotspot and corresponding domain name information to be shielded according to the identification information of the target wireless hotspot;
and returning the found access information of the target wireless hotspot and the corresponding domain name information to be shielded to the equipment.
According to an embodiment of the present invention, a domain name shielding method based on wireless connection is further provided, as shown in fig. 3, including:
step 301: the device sends an access information acquisition request of a target wireless hotspot to a server and synchronously sends a domain name information acquisition request to be shielded corresponding to the target wireless hotspot, wherein the target wireless hotspot information query request comprises identification information of the target wireless hotspot;
for example, the target wireless hotspot information query request includes a hotspot name wifi03 of the target wireless hotspot.
Step 302: the method comprises the steps that a server receives an access information acquisition request of a target wireless hotspot sent by equipment and a domain name information acquisition request to be shielded corresponding to the target wireless hotspot;
step 303: the server searches the access information of the target wireless hotspot and the corresponding domain name information to be shielded according to the received identification information of the target wireless hotspot;
for example, the server finds that the connection password of the target wireless hotspot is 123456 according to the received hotspot name wifi03, and the corresponding domain name information to be shielded includes: the domain name to be masked is 12345-abc.com, and the network address 129.45.255.255 corresponding to the domain name to be masked is 12345-abc.com.
Step 304: the server returns the found access information of the target wireless hotspot and the corresponding domain name information to be shielded to the equipment;
step 305: the device sends a wireless hotspot connection request to the router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
for example, the wireless hotspot connection request includes: the hotspot name wifi03 of the target hotspot is connected with the password 123456, the domain name 12345-abc.com to be shielded, and the network address 129.45.255.255 corresponding to the domain name 12345-abc.com to be shielded.
Step 306: the device is connected with the target wireless hotspot and adds the corresponding domain name information to be shielded to the system domain name shielding file;
specifically, the device connects a target wireless hotspot with a hotspot name of wifi03 according to a connection password of 123456, and writes a domain name 12345-abc.com to be shielded and a corresponding network address 129.45.255.255 into a Host file.
Step 307: and the equipment displays the successful connection information of the wireless hotspot with the shielded domain name.
According to an embodiment of the present invention, a domain name shielding method based on wireless connection is further provided, as shown in fig. 4, including:
step 401: the method comprises the steps that equipment sends a wireless hotspot information query request to a server and synchronously sends a domain name information acquisition request to be shielded corresponding to a wireless hotspot, wherein the wireless hotspot information query request comprises identification information of each scanned wireless hotspot;
for example, the wireless hotspot information query request comprises the scanned hotspot names wifi01, wifi02 and wifi03 of each wireless hotspot, the wireless hotspot corresponding to the hotspot name wifi03 is used as the wireless hotspot to be connected, and a domain name acquisition request containing the hotspot name wifi03 and password query information is generated and sent to the server.
Step 402: the method comprises the steps that a server receives a wireless hotspot information query request from equipment and a domain name information acquisition request to be shielded corresponding to a wireless hotspot;
step 403: the server searches the wireless hotspot information of each wireless hotspot and the corresponding domain name information to be shielded according to the identification information of each wireless hotspot;
for example, the server finds that the wireless hotspot information corresponding to the hotspot name wifi01 is prompt information that the wireless hotspot can be accessed, the corresponding domain name information to be shielded comprises a domain name 1234-abcd.com to be shielded, and the corresponding network address is 139.45.255.256; the wireless hotspot information corresponding to the hotspot name wifi02 is prompt information that the wireless hotspot can be accessed, the corresponding domain name information to be shielded comprises a domain name 123-abcde.com to be shielded, and the corresponding network address is 129.255.255.256; the wireless hotspot information corresponding to the hotspot name wifi03 is prompt information that the wireless hotspot is accessible, the corresponding domain name information to be shielded comprises domain names 12345-abc.com to be shielded, and the corresponding network address is 129.45.255.255.
Step 404: the server returns the searched wireless hotspot information and the corresponding domain name information to be shielded to the equipment, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information;
for example, the server returns the found information to the device.
Step 405: the equipment receives wireless hotspot information returned by the server and corresponding domain name information to be shielded;
step 406: the device determines a target wireless hotspot in the wireless hotspots with the wireless hotspot accessible prompting information and/or the wireless hotspot connection authentication prompting information;
for example, the device determines that the wireless hotspot corresponding to the hotspot name wifi03 is the target wireless hotspot.
Step 407: the device sends an access information acquisition request of a target wireless hotspot to the server, wherein the access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot;
for example, the access information acquisition request of the target wireless hotspot includes a hotspot name wifi03 of the target wireless hotspot.
Step 408: the server receives an access information acquisition request of a target wireless hotspot sent by equipment;
step 409: the server searches the access information of the target wireless hotspot according to the identification information of the target wireless hotspot;
for example, the server finds that the corresponding connection password is 123456 according to the received hotspot name wifi 03.
Step 410: the server returns the access information of the searched target wireless hotspot to the equipment;
step 411: the device sends a wireless hotspot connection request to the router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
for example, the wireless hotspot connection request comprises a hotspot name wifi03 of the target wireless hotspot, a connection password 123456, a domain name 12345-abc.com to be masked, and a network address 129.45.255.255 corresponding to the domain name 12345-abc.com to be masked.
Step 412: the device is connected with the target wireless hotspot and adds the corresponding domain name information to be shielded to the system domain name shielding file;
specifically, the device connects a target wireless hotspot with a hotspot name of wifi03 according to a connection password of 123456, and writes a domain name 12345-abc.com to be shielded and a corresponding network address 129.45.255.255 into a Host file.
Step 413: and the equipment displays the successful connection information of the wireless hotspot with the shielded domain name.
According to an embodiment of the present invention, there is also provided a domain name screening system based on wireless connection, as shown in fig. 5, including: a device and a server;
wherein, equipment includes:
a first sending module, configured to send a wireless hotspot connection request to the router, where the wireless hotspot connection request includes access information of a target wireless hotspot and corresponding domain name information to be shielded
The connection module is used for connecting the target wireless hotspot;
the shielding module is used for adding the domain name information to be shielded corresponding to the target wireless hotspot connected with the connecting module into a system domain name shielding file;
the display module is used for displaying the connection success information of the shielded domain name;
the server includes:
the first receiving module is used for receiving a wireless hotspot information query request from equipment and a domain name information acquisition request to be shielded corresponding to a wireless hotspot, wherein the wireless hotspot information query request comprises identification information of the scanned wireless hotspot; the method comprises the steps that when a wireless hotspot information query request from equipment is received, a domain name information acquisition request to be shielded corresponding to a wireless hotspot from an equipment end can be synchronously received;
the searching module is used for searching the wireless hotspot information corresponding to the wireless hotspot and the corresponding domain name information to be shielded according to the identification information of the wireless hotspot received by the first receiving module;
and the second sending module is used for returning the wireless hotspot information searched by the searching module and the corresponding domain name information to be shielded to the equipment.
According to an embodiment of the invention, the apparatus further comprises: a scanning module;
and the scanning module is used for scanning surrounding wireless hotspots.
Optionally, the apparatus further comprises: the device comprises a third sending module, a second receiving module and a first determining module;
the third sending module is used for sending a wireless hotspot information query request to the server and synchronously acquiring the domain name information to be shielded corresponding to the wireless hotspot, wherein the wireless hotspot information query request comprises the identification information of each wireless hotspot scanned by the scanning module;
the second receiving module is used for receiving wireless hotspot information returned by the server and corresponding domain name information to be shielded, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information;
the first determining module is used for determining a target wireless hotspot in the wireless hotspots with the wireless hotspot accessible prompt message and/or the wireless hotspot connection authentication prompt message;
the third sending module is also used for sending an access information acquisition request of the target wireless hotspot to the server;
and the second receiving module is also used for receiving the access information returned by the server.
Optionally, the apparatus further comprises: a fourth sending module and a third receiving module;
the fourth sending module is used for sending a wireless hotspot information query request to the server, wherein the wireless hotspot information query request comprises the identification information of each wireless hotspot scanned by the scanning module;
the third receiving module is used for receiving the wireless hotspot information returned by the server;
when the wireless hotspot information received by the third receiving module includes the accessible prompt message, the device further includes: a second determination module;
the second determination module is used for determining a target wireless hotspot with accessible prompt information;
correspondingly, the fourth sending module is further configured to: sending an access information acquisition request of a target wireless hotspot to a server and synchronously acquiring domain name information to be shielded corresponding to the target wireless hotspot;
correspondingly, the third receiving module is further configured to: receiving access information and corresponding domain name information to be shielded returned by a server;
when the wireless hotspot information received by the third receiving module includes the connection authentication prompt information, the device further includes: a third determination module;
the third determining module is used for determining a target wireless hotspot with connection authentication prompt information;
correspondingly, the fourth sending module is further configured to send a connection authentication request of the target wireless hotspot to the server and synchronously acquire domain name information to be shielded corresponding to the target wireless hotspot;
correspondingly, the third receiving module is also used for receiving the connection authentication information returned by the server and the corresponding domain name information to be shielded;
when the wireless hotspot information received by the third receiving module includes the open hotspot prompt information, the device further includes: a fourth determination module;
the fourth determining module is used for determining the target wireless hotspot with the open hotspot prompt message;
correspondingly, the fourth sending module is further configured to: sending a request for acquiring the domain name information to be shielded corresponding to the target wireless hotspot to a server;
and the third sending module is also used for receiving the domain name information to be shielded, which is returned by the server.
According to an embodiment of the invention, the shielding module is specifically configured to:
searching a system main file, and adding a domain name to be shielded corresponding to a connected target wireless hotspot and a network address corresponding to the domain name to be shielded into the system main file;
or searching an HTTP proxy configuration file, and adding the domain name to be shielded corresponding to the connected target wireless hotspot and the network address corresponding to the domain name to be shielded into the HTTP proxy configuration file;
or searching a DNS server configuration file, and adding the domain name to be shielded corresponding to the connected target wireless hotspot and the network address corresponding to the domain name to be shielded into the DNS server configuration file.
According to an embodiment of the present invention, the first receiving module is further configured to: receiving an access information acquisition request of a target wireless hotspot, which is sent by equipment and has wireless hotspot accessible prompt information or wireless hotspot connection authentication prompt information, wherein the access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot; the method comprises the steps that when receiving an access information acquisition request of a target wireless hotspot sent by equipment, the domain name information acquisition request to be shielded corresponding to the target wireless hotspot sent by the equipment can be synchronously received;
correspondingly, the searching module is further configured to: searching access information of the target wireless hotspot and corresponding domain name information to be shielded according to the identification information of the target wireless hotspot;
correspondingly, the second sending module is further configured to: and returning the access information of the target wireless hotspot searched by the searching module and the corresponding domain name information to be shielded to the equipment.
According to an embodiment of the present invention, there is also provided a domain name shielding device based on wireless connection, including:
one or more processors, storage devices to store one or more programs; the one or more programs, when executed by the one or more processors, implement the steps of the wireless connection based domain name screening method as described above.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the wireless connection based domain name screening method as described above.
According to the invention, when the wireless hotspot is connected, the corresponding domain name and the network address corresponding to the domain name are shielded, so that after the wireless connection is successful, the page does not show the contents of advertisements, other webpage information and the like in the online process of browsing the webpage, playing games and the like, thereby ensuring that the user is not influenced by the advertisements, other webpage information and the like in the online process, and improving the online experience of the user; meanwhile, for the children, the method can effectively avoid logging in bad websites, ensure the healthy surfing of the children, and effectively avoid the worry of parents.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A domain name shielding method based on wireless connection for a device end is characterized by comprising the following steps:
sending a wireless hotspot information query request to a server and synchronously acquiring domain name information to be shielded corresponding to the wireless hotspots, wherein the wireless hotspot information query request comprises identification information of each scanned wireless hotspot;
receiving wireless hotspot information returned by the server and corresponding domain name information to be shielded, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information;
sending a wireless hotspot connection request to a router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
connecting the target wireless hotspot, and adding corresponding domain name information to be shielded to a system domain name shielding file;
and displaying the successful connection information of the wireless hotspot with the shielded domain name.
2. The method according to claim 1, wherein after receiving the wireless hotspot information and the corresponding domain name information to be masked returned by the server, the method further comprises:
determining a target wireless hotspot in the wireless hotspots with the wireless hotspot accessible prompting information and/or the wireless hotspot connection authentication prompting information;
and sending an access information acquisition request of the target wireless hotspot to a server, and receiving access information returned by the server.
3. The method of claim 1, wherein before sending the wireless hotspot connection request to the router, the method further comprises:
sending a wireless hotspot information query request to a server, and receiving wireless hotspot information returned by the server; the wireless hotspot information inquiry request comprises identification information of each scanned wireless hotspot;
when the wireless hotspot information contains accessible prompt information, determining that a target wireless hotspot with the accessible prompt information exists;
responding to a target wireless hotspot connecting instruction, sending an access information acquisition request of the target wireless hotspot to a server, synchronously acquiring domain name information to be shielded corresponding to the target wireless hotspot, and receiving access information and corresponding domain name information to be shielded returned by the server;
when the wireless hotspot information contains connection authentication prompt information, determining a target wireless hotspot with the connection authentication prompt information;
responding to a target wireless hotspot connecting instruction, sending a target wireless hotspot connecting authentication request to a server, synchronously acquiring domain name information to be shielded corresponding to the target wireless hotspot, and receiving the connecting authentication information and the corresponding domain name information to be shielded returned by the server;
when the wireless hotspot information comprises open hotspot prompt information, determining a target wireless hotspot with the open hotspot prompt information;
responding to a target wireless hotspot connecting instruction, sending a request for acquiring the domain name information to be shielded corresponding to the target wireless hotspot to a server, and receiving the domain name information to be shielded returned by the server.
4. The method according to claim 1, wherein the adding the corresponding domain name information to be masked to a system domain name mask file comprises:
searching a system main file, and adding a corresponding domain name to be shielded and a network address corresponding to the domain name to be shielded into the system main file;
or searching an HTTP proxy configuration file, and adding the corresponding domain name to be shielded and the network address corresponding to the domain name to be shielded into the HTTP proxy configuration file;
or searching a DNS server configuration file, and adding the corresponding domain name to be shielded and the network address corresponding to the domain name to be shielded into the DNS server configuration file.
5. A domain name shielding method based on wireless connection for a server side is characterized by comprising the following steps:
receiving a wireless hotspot information query request from equipment and a domain name information acquisition request to be shielded corresponding to a wireless hotspot, wherein the wireless hotspot information query request comprises identification information of a scanned wireless hotspot; the method comprises the steps that when a wireless hotspot information query request from equipment is received, a domain name information acquisition request to be shielded corresponding to a wireless hotspot from an equipment end can be synchronously received;
according to the identification information of the wireless hotspot, searching wireless hotspot information corresponding to the wireless hotspot and corresponding domain name information to be shielded;
returning the searched wireless hotspot information and the corresponding domain name information to be shielded to the equipment, so that the equipment sends a wireless hotspot connection request to the router to connect a target wireless hotspot, adds the corresponding domain name information to be shielded to a system domain name shielding file, and displays the successful connection information of the wireless hotspot with the shielded domain name; the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information.
6. The method of claim 5, further comprising:
receiving an access information acquisition request of a target wireless hotspot, which is sent by equipment and has wireless hotspot accessible prompt information or wireless hotspot connection authentication prompt information, wherein the access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot;
the method comprises the steps that when receiving an access information acquisition request of a target wireless hotspot sent by equipment, the domain name information acquisition request to be shielded corresponding to the target wireless hotspot sent by the equipment can be synchronously received;
searching access information of the target wireless hotspot and corresponding domain name information to be shielded according to the identification information of the target wireless hotspot;
and returning the found access information of the target wireless hotspot and the corresponding domain name information to be shielded to the equipment.
7. A domain name shielding method based on wireless connection is characterized by comprising the following steps:
the method comprises the steps that equipment sends an access information acquisition request of a target wireless hotspot to a server and synchronously sends a domain name information acquisition request to be shielded corresponding to the target wireless hotspot, wherein the target wireless hotspot information query request comprises identification information of the target wireless hotspot;
the server receives an access information acquisition request of a target wireless hotspot sent by the equipment and a domain name information acquisition request to be shielded corresponding to the target wireless hotspot;
the server searches access information of the target wireless hotspot and corresponding domain name information to be shielded according to the identification information of the target wireless hotspot;
the server returns the found access information of the target wireless hotspot and the corresponding domain name information to be shielded to the equipment;
the device sends a wireless hotspot connection request to a router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
the equipment is connected with the target wireless hotspot and adds corresponding domain name information to be shielded to a system domain name shielding file;
and the equipment displays the successful connection information of the wireless hotspot with the shielded domain name.
8. A domain name shielding method based on wireless connection is characterized by comprising the following steps:
the method comprises the steps that equipment sends a wireless hotspot information query request to a server and synchronously sends a domain name information acquisition request to be shielded corresponding to a wireless hotspot, wherein the wireless hotspot information query request comprises identification information of each scanned wireless hotspot;
the server receives a wireless hotspot information query request from equipment and a domain name information acquisition request to be shielded corresponding to a wireless hotspot;
the server searches the wireless hotspot information of each wireless hotspot and the corresponding domain name information to be shielded according to the identification information of each wireless hotspot;
the server returns the searched wireless hotspot information and the corresponding domain name information to be shielded to the equipment, wherein the wireless hotspot information comprises wireless hotspot accessible prompt information and/or wireless hotspot connection authentication prompt information;
the equipment receives wireless hotspot information returned by the server and corresponding domain name information to be shielded;
the device determines a target wireless hotspot in the wireless hotspots with the wireless hotspot accessible prompting message and/or the wireless hotspot connection authentication prompting message;
the device sends an access information acquisition request of a target wireless hotspot to the server, wherein the access information acquisition request of the target wireless hotspot comprises identification information of the target wireless hotspot;
the server receives an access information acquisition request of a target wireless hotspot sent by the equipment;
the server searches the access information of the target wireless hotspot according to the identification information of the target wireless hotspot;
the server returns the access information of the searched target wireless hotspot to the equipment;
the device sends a wireless hotspot connection request to a router, wherein the wireless hotspot connection request comprises access information of a target wireless hotspot and corresponding domain name information to be shielded;
the equipment is connected with the target wireless hotspot and adds corresponding domain name information to be shielded to a system domain name shielding file;
and the equipment displays the successful connection information of the wireless hotspot with the shielded domain name.
9. An advertisement shielding device based on wireless connection, comprising:
one or more processors, storage devices to store one or more programs;
the one or more programs, when executed by the one or more processors, implement the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201811083511.9A 2018-09-17 2018-09-17 Domain name shielding method, device and storage medium based on wireless connection Active CN109302387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811083511.9A CN109302387B (en) 2018-09-17 2018-09-17 Domain name shielding method, device and storage medium based on wireless connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811083511.9A CN109302387B (en) 2018-09-17 2018-09-17 Domain name shielding method, device and storage medium based on wireless connection

Publications (2)

Publication Number Publication Date
CN109302387A CN109302387A (en) 2019-02-01
CN109302387B true CN109302387B (en) 2021-05-04

Family

ID=65163339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811083511.9A Active CN109302387B (en) 2018-09-17 2018-09-17 Domain name shielding method, device and storage medium based on wireless connection

Country Status (1)

Country Link
CN (1) CN109302387B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162780A (en) * 2015-08-21 2015-12-16 上海斐讯数据通信技术有限公司 URL (Uniform Resource Locator) filter address setting method and URL filter address setting system
WO2016117776A1 (en) * 2015-01-23 2016-07-28 주식회사 플랜티넷 Router-based harmful site blocking system and method therefor
CN106034362A (en) * 2015-03-19 2016-10-19 北京奇虎科技有限公司 WiFi connection method, client, server and system
CN107395628A (en) * 2017-08-23 2017-11-24 上海斐讯数据通信技术有限公司 A kind of wireless router and its domain filter method
CN108040054A (en) * 2017-12-14 2018-05-15 上海斐讯数据通信技术有限公司 A kind of management method of internet behavior, management system and router

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10440025B2 (en) * 2016-06-07 2019-10-08 Gryphon Online Safety, Inc Remotely controlling access to online content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016117776A1 (en) * 2015-01-23 2016-07-28 주식회사 플랜티넷 Router-based harmful site blocking system and method therefor
CN106034362A (en) * 2015-03-19 2016-10-19 北京奇虎科技有限公司 WiFi connection method, client, server and system
CN105162780A (en) * 2015-08-21 2015-12-16 上海斐讯数据通信技术有限公司 URL (Uniform Resource Locator) filter address setting method and URL filter address setting system
CN107395628A (en) * 2017-08-23 2017-11-24 上海斐讯数据通信技术有限公司 A kind of wireless router and its domain filter method
CN108040054A (en) * 2017-12-14 2018-05-15 上海斐讯数据通信技术有限公司 A kind of management method of internet behavior, management system and router

Also Published As

Publication number Publication date
CN109302387A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
US9560617B2 (en) Wireless network access method and apparatus, terminal, and server
US9355410B2 (en) Methods and apparatus for generating a message for a wireless device
KR101956702B1 (en) Method and System for Distributing Business Application and Contents for Mobile Equipment using Application Store and Wireless AP
EP3197213B1 (en) Network access method and mobile communication terminal
US20130279418A1 (en) Providing Easy Access to Radio Networks
CN105682015A (en) Method and device for establishing wireless connection
US20090318171A1 (en) Application Discovery on Mobile Devices
US20160127986A1 (en) System and method of locating wireless connection among a plurality of wireless connections
WO2013131472A1 (en) Message processing method, device and system
CN105472703A (en) Wireless network access method and device
CN107197462B (en) Wireless network type detection method and device and electronic equipment
CN113366815B (en) Network resource request method, device, electronic equipment and storage medium
CN107818046B (en) A/B test method and device for application program page
US20140359738A1 (en) Communication apparatus, method of controlling, and storage medium
CN103581351B (en) The method and apparatus of network access
CN104283895A (en) Compulsive portal authentication control system and method used for wireless router
CN102868758A (en) Portal push method and network equipment
CN105577651A (en) Service providing method and apparatus
CN112929224A (en) Network distribution method and device of equipment, server and computer readable storage medium
WO2007091780A1 (en) Method and apparatus of searching for and acquiring handover information using dynamic host configuration protocol
CN108696561B (en) Resource pushing method and device
CN107534859B (en) Network authentication method, client, terminal equipment and platform
CN109302387B (en) Domain name shielding method, device and storage medium based on wireless connection
CN106933615A (en) The awakening method and device of APP applications
CN110572829B (en) Network connection control method and related product

Legal Events

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