Method and system for connecting internet
Technical Field
The invention belongs to the field of digital information transmission, and particularly relates to a method and a system for connecting the Internet.
Background
When a user uses a mobile terminal (a mobile phone, a notebook computer, an iPad and the like) to connect with a public network (the Internet) through Internet access equipment (a router, a gateway and the like), the user can be redirected to a Portal webpage by the Internet access equipment to verify, the user needs to pay attention to a specified WeChat public number, an APP program for installing a specified iOS or an APK program for an android and the like according to the prompt operation of the Portal webpage, and after the prompt requirement of the Portal webpage is met, a Portal server can give out an instruction to allow a specific device to pass through, and the user is allowed to connect with the public network (the Internet) to carry out Internet surfing.
After the user is connected to the internet, if the user cancels the concerned appointed WeChat public number, unloads the appointed APP program of the installed iOS or the android APK program, the internet access equipment and the Portal server end cannot know the canceling behavior or the unloading behavior of the user in time, namely the Portal server cannot send an instruction to the internet access equipment to disconnect the internet connection of the user, and only when the user is connected with the public network (internet) through the internet access equipment again and is redirected to the Portal webpage again for verification, the Portal server end can know the canceling behavior or the unloading behavior of the user.
Disclosure of Invention
In view of this, the present invention provides a method and a system for connecting to the internet, so as to solve the technical problem that the Portal server end in the prior art cannot timely acquire the cancelling behavior or the uninstalling behavior of the user.
The embodiment of the invention is realized in such a way that a method for connecting the internet comprises the following steps:
the Internet access equipment connects the terminal to a Portal server according to Internet access request information sent by the terminal;
the Portal server side connects the terminal to a verification server side;
the terminal acquires the Internet access authority through access verification according to the prompt of the verification server;
after the terminal acquires the Internet access authority, the verification server stores a verification identifier of the terminal and sends verification passing information to the Portal server, and the verification identifier is automatically deleted after the terminal completes reverse access verification;
and the Portal server accesses the terminal to the Internet according to the verification passing information.
The embodiment of the invention also provides a system for connecting the internet, which comprises:
the terminal is used for sending Internet access request information to the Internet access equipment, accessing the Portal server end, accessing the verification server end, obtaining Internet access permission through access verification according to the prompt of the verification server end, and accessing the Internet through the Portal server end;
the Internet access equipment is used for connecting the terminal and connecting the terminal to a Portal server end;
the Portal server end is used for connecting with the terminal, connecting the terminal to the verification server end, receiving verification passing information sent by the verification server end, and accessing the terminal to the Internet according to the verification passing information;
and the verification server end is used for connecting with the terminal, providing a verification prompt for the terminal, storing a verification identifier of the terminal after the terminal acquires the Internet access authority, and sending verification passing information to the Portal server end, wherein the verification identifier is automatically deleted after the terminal completes reverse access verification.
According to the embodiment of the invention, the Internet access equipment connects the terminal to the Portal server side according to the Internet access request information sent by the terminal, the Portal server side connects the terminal to the verification server side, the terminal acquires the Internet access authority through access verification according to the prompt of the verification server side, after the access verification is passed, the verification server side stores the verification identification of the terminal and sends the verification passing information to the Portal server side, and the Portal server side accesses the terminal to the Internet according to the verification passing information, so that the Portal server side can timely acquire the information of reverse access verification of the terminal, and the benefit of an operator is well maintained.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a system for connecting internet according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for connecting to the Internet according to an embodiment of the invention;
fig. 3 is a block diagram of a system for connecting to the internet according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example one
Fig. 1 is a schematic structural diagram of a system for connecting internet according to an embodiment of the present invention, including: the terminal 1 sends internet connection request information to the internet connection equipment 2, the internet connection equipment 2 connects the terminal 1 to the Portal server end 3 according to the internet connection request information, the Portal server end 3 connects the terminal 1 to the verification server end 4, the terminal 1 carries out internet access verification according to the prompt of the verification server 4, the verification server 4 stores the verification identification of the terminal 1 after the terminal 1 passes the verification, and sends verification passing information to the Portal server end 3, and the Portal server end 3 accesses the terminal 1 to the internet according to the verification passing information.
Example two
Fig. 2 is a flowchart of an internet connection method according to an embodiment of the present invention, where the method includes the following steps:
step S201, the Internet access equipment connects the terminal to a Portal server according to the Internet access request information sent by the terminal.
In the embodiment of the present invention, a terminal first sends internet access request information to an internet connection device, where the internet connection device includes but is not limited to: the internet access device connects the terminal to the Portal server end according to the internet access request information after receiving the internet access request information sent by the terminal, wherein the terminal includes but is not limited to: a mobile terminal (such as a mobile phone and a tablet computer) or a fixed terminal (such as a personal computer).
It should be noted that, during the process of accessing the terminal to the Portal server end by the internet access device, bidirectional real-time communication is performed between the internet access device and the Portal server end, and the bidirectional communication process uses the prior art and is not described herein.
And step S202, the Portal server connects the terminal to a verification server.
In the embodiment of the invention, after the terminal is connected to the Portal server, the Portal server connects the terminal to the verification server so that the terminal can verify the access right of the Internet at the verification server.
It should be noted that, in the process of accessing the terminal to the verification server end, the Portal server end performs bidirectional real-time communication with the verification server end, and the bidirectional communication process uses the prior art and is not described herein.
And step S203, the terminal acquires the Internet access authority through access verification according to the prompt of the verification server.
In the embodiment of the present invention, after the terminal is connected to the authentication server, the terminal performs access authentication for accessing the internet according to the prompt of the authentication server, and acquires the right to access the internet after passing the access authentication, wherein the access authentication includes but is not limited to:
paying attention to a specified account of a specified application program; or,
the specified application is installed.
And step S204, after the terminal acquires the Internet access authority, the verification server side stores the verification identification of the terminal and sends verification passing information to the Portal server side, and the verification identification is automatically deleted after the terminal completes reverse access verification.
In the embodiment of the invention, after the terminal acquires the right to access the internet through the access authentication, the authentication server side stores the authentication identifier of the terminal in a local database, and the authentication identifier can be stored in the database in a list form. And sending the information passing the verification to a Portal server, wherein the verification identifier is automatically deleted after the terminal completes the reverse access verification. The reverse access authentication includes but is not limited to:
canceling the specific account concerning the specific application: or,
the specified application is uninstalled.
The authentication identities include, but are not limited to: a mobile phone number, an IMEI (International mobile equipment Identity, abbreviated as mobile equipment International Identity), or a MAC address identifier on the mobile equipment.
And S205, the Portal server accesses the terminal to the Internet according to the verification passing information.
In the embodiment of the invention, after receiving the verification passing information sent by the verification server, the Portal server accesses the terminal to the Internet according to the verification passing information.
According to the embodiment of the invention, the Internet access equipment connects the terminal to the Portal server side according to the Internet access request information sent by the terminal, the Portal server side connects the terminal to the verification server side, the terminal acquires the Internet access authority through access verification according to the prompt of the verification server side, after the access verification is passed, the verification server side stores the verification identification of the terminal and sends the verification passing information to the Portal server side, and the Portal server side accesses the terminal to the Internet according to the verification passing information, so that the Portal server side can timely acquire the information of reverse access verification of the terminal, and the benefit of an operator is well maintained.
As an optional embodiment of the present invention, after the step of the Portal server accessing the terminal to the internet according to the verification passing information, the method further comprises the following steps:
after the terminal completes the reverse access verification, the verification server side deletes the verification identification and sends access cancelling information to the Portal server side;
and the Portal server side disconnects the Internet connection of the terminal according to the access canceling information.
In the embodiment of the invention, if the terminal carries out reverse access verification, after the reverse access verification is finished, the verification server side deletes the verification identification stored in the local database and sends the access canceling information to the Portal server side, and the Portal server side disconnects the internet connection of the terminal.
For example, the following steps are carried out:
user A (the user micro signal is represented by AAA) is connected to the public network (Internet) through specific equipment and is redirected to a Portal webpage by the specific equipment for verification, after paying attention to a WeChat public account B according to the prompt operation of the Portal webpage, after the WeChat public platform server obtains the information that B is paid attention to by AAA, the information is sent to a data interaction server, the data interaction server performs corresponding operation, after user data table information is mapped, the information is fed back to the Portal server, after the user A is informed that the prompt requirement of the Portal webpage is met, the Portal server gives out an instruction to allow the specific equipment to release, the user is allowed to connect to the public network (Internet) for surfing, the Portal authentication process is finished, the user is successfully connected to the public network (Internet), and the public network (Internet) can be accessed.
But the user A cancels the just concerned WeChat public account B after being able to access the public network (Internet), at the moment, the data interaction server knows from the WeChat public platform server, in the user list of the concerned B WeChat public account, the user AAA cancels the attention, the user's micro signal AAA disappears from the concerned B, the WeChat public platform server feeds back the disappearance of the user AAA in the WeChat public account B to the data interaction server, the data interaction server remaps the user data table information in the WeChat public account B to the data interaction server for comparison, finds that the user AAA in the last mapping user data table is inconsistent with the user data table mapped at the time, and feeds back to the Portal server to inform the user that the prompt requirement of Portal webpage is not met, the Portal server informs a specific device, forbids the user to connect the public network (Internet), when the Portal authentication interception process is finished, the user fails to connect the public network (Internet) and cannot access the public network (Internet).
EXAMPLE III
Fig. 3 is a block diagram of a system for connecting internet according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, including:
the terminal 301 is used for sending internet access request information to the internet access equipment 302, accessing to the Portal server terminal 303, accessing to the verification server terminal 304, obtaining internet access permission through access verification according to the prompt of the verification server terminal 304, and accessing to the internet through the Portal server terminal 303;
the internet access equipment 302 is used for connecting with the terminal 301 and connecting the terminal 301 to a Portal server terminal 303;
a Portal server 303, configured to connect to the terminal 301, connect the terminal 301 to a verification server 304, receive verification passing information sent by the verification server 304, and access the terminal 301 to the internet according to the verification passing information;
the verification server end 304 is configured to connect with the terminal 301, provide a verification prompt for the terminal 301, store a verification identifier of the terminal 301 after the terminal 301 obtains an internet access right, and send verification passing information to the Portal server end 303, where the verification identifier is automatically deleted after the terminal completes reverse access verification.
In the embodiment of the present invention, a terminal first sends internet access request information to an internet connection device, where the internet connection device includes but is not limited to: the internet access device connects the terminal to the Portal server end according to the internet access request information after receiving the internet access request information sent by the terminal, wherein the terminal includes but is not limited to: a mobile terminal (such as a mobile phone and a tablet computer) or a fixed terminal (such as a personal computer).
After the terminal is connected to the Portal server, the Portal server connects the terminal to the verification server so that the terminal can verify the access right of the Internet at the verification server.
It should be noted that, during the process of accessing the terminal into the Portal server side by the internet access device, during the process of accessing the terminal into the verification server side by the Portal server side, both the internet access device and the Portal server side, and both the Portal server side and the verification server side perform bidirectional real-time communication, and the bidirectional real-time communication process uses the prior art and is not described herein any further.
After the terminal is connected to the authentication server, the terminal performs access authentication for accessing the internet according to the prompt of the authentication server, and acquires the right of accessing the internet after passing the access authentication, wherein the access authentication includes but is not limited to:
paying attention to a specified account of a specified application program; or,
the specified application is installed.
After the terminal acquires the right of accessing the Internet through access verification, the verification server end stores the verification identifier of the terminal in a local database and sends the information passing the verification to the Portal server end, wherein the verification identifier is automatically deleted after the terminal completes reverse access verification. The reverse access authentication includes but is not limited to:
canceling the specific account concerning the specific application: or,
the specified application is uninstalled.
The authentication identities include, but are not limited to: a mobile phone number or an IMEI (International mobile equipment Identity, abbreviated as mobile equipment International Identity).
After receiving the verification passing information sent by the verification server, the Portal server accesses the terminal to the Internet according to the verification passing information.
According to the embodiment of the invention, the Internet access equipment connects the terminal to the Portal server side according to the Internet access request information sent by the terminal, the Portal server side connects the terminal to the verification server side, the terminal acquires the Internet access authority through access verification according to the prompt of the verification server side, after the access verification is passed, the verification server side stores the verification identification of the terminal and sends the verification passing information to the Portal server side, and the Portal server side accesses the terminal to the Internet according to the verification passing information, so that the Portal server side can timely acquire the information of reverse access verification of the terminal, and the benefit of an operator is well maintained.
As another alternative embodiment of the present invention, the system further comprises:
the terminal 301 is further configured to perform reverse access authentication;
the verification server end 304 is further configured to delete the verification identifier and send information of canceling access to the Portal server end 303;
the Portal server 303 is further configured to receive the access cancellation information, and disconnect the internet connection of the terminal 301 according to the access cancellation information.
Those skilled in the art can understand that each unit included in the third embodiment is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It will be further understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.