CN107666393B - Method for controlling website access by portable router and portable router - Google Patents
Method for controlling website access by portable router and portable router Download PDFInfo
- Publication number
- CN107666393B CN107666393B CN201610601851.0A CN201610601851A CN107666393B CN 107666393 B CN107666393 B CN 107666393B CN 201610601851 A CN201610601851 A CN 201610601851A CN 107666393 B CN107666393 B CN 107666393B
- Authority
- CN
- China
- Prior art keywords
- website
- blacklist
- white list
- address
- list
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000010295 mobile communication Methods 0.000 claims description 34
- 238000012544 monitoring process Methods 0.000 claims description 6
- 230000009191 jumping Effects 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 3
- 241000700605 Viruses Species 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1442—Charging, metering or billing arrangements for data wireline or wireless communications at network operator level
- H04L12/145—Charging, metering or billing arrangements for data wireline or wireless communications at network operator level trading network capacity or selecting route based on tariff
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/56—Routing software
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for controlling website access by a portable router, which comprises the following steps: generating a list selection instruction according to the cost property of the current network data package of the portable router; when the list selection instruction indicates to call the blacklist, acquiring the blacklist to be called currently; when a request for accessing the website initiated by the mobile internet access equipment is received, refusing to access the website specified by any identification code in the blacklist; when the list selection instruction indicates to call the white list, acquiring the white list to be called currently; when a request for accessing the website initiated by the mobile internet device is received, only allowing access to the website specified by the identification code in the white list; the white list comprises identification codes of one or more websites. Correspondingly, the invention also discloses a portable router. The method and the system can enable the user to browse only the interested content or prevent the user from accessing the malicious website in the internet surfing process, thereby improving the user experience.
Description
Technical Field
The invention relates to the field of mobile communication, in particular to a method for controlling website access by a portable router and the portable router.
Background
More and more tourists are going out of the country, and when the foot of the trip steps into foreign countries, the mobile communication during the trip becomes a big problem. Portable routers for providing global mobile network services have been developed. The portable router converts local mobile communication networks into WiFi signals by connecting with local network operators, and provides global roaming service for users.
The portable router can greatly reduce the cost of surfing the Internet abroad, and a user can provide WiFi signals for a plurality of devices by purchasing a network data package without worrying about the compatibility of a mobile phone network system and a local network system. However, international roaming charges are always relatively expensive, but the charge collection mode of the existing network data package is relatively single and cannot be customized according to the needs and interests of users, once a user performs misoperation, such as mistakenly clicking some large-flow websites, or inadvertently downloading a virus file which can be downloaded or transmitted in a silent mode, huge charge cost may be paid, but the network content which is interested by the user cannot be obtained, and the user experience is still insufficient.
Disclosure of Invention
The invention aims to provide a method for controlling website access by a portable router and the portable router, so that a toll collector can customize a network data package according to the requirements and interests of users, the cost of the charges paid by the users for obtaining interested network contents is reduced, and the user experience is improved.
In order to achieve the above object, the present invention provides a method for controlling website access by a portable router, comprising:
generating a list selection instruction according to the cost property of the current network data package of the portable router;
when the list selection instruction indicates to call the blacklist, acquiring the blacklist to be called currently; when a request for accessing the website initiated by the mobile internet equipment is received, refusing to access the website specified by any identification code in the blacklist; the blacklist comprises identification codes of one or more websites; the mobile internet equipment is in wireless connection with the portable router and accesses a mobile communication network through the portable router to acquire website data;
when the list selection instruction indicates to call a white list, acquiring the white list to be called currently; when a request for accessing the website initiated by the mobile internet equipment is received, only allowing to access the website specified by the identification code in the white list; wherein the white list includes identification codes of one or more websites.
The implementation of the invention has the following beneficial effects:
according to the method for controlling website access by the portable router, provided by the invention, the portable router can only access websites in a white list or limit access to all websites in the black list by setting the black and white list, and the mode for controlling website access is determined by the tariff property of the network data package, so that the method provides technical support for customizing the network data package according to the user requirement and interest, a toll collector can design the network data package according to the generation condition of a black and white list selection instruction, and various network data packages are provided for the user to select; the user can only browse the interested contents or prevent from visiting a malicious website in the online process by selecting the network data package, so that the cost of the user for acquiring the interested network contents is reduced, and the user experience is improved.
Further, the blacklist includes a primary blacklist and a secondary blacklist;
the generating of the list selection instruction according to the cost property of the current network data package of the portable router comprises:
detecting the cost property of the current network data package of the portable router;
if the network data package is a package for limiting data traffic, monitoring the data traffic service condition of the mobile internet access equipment; when the usage amount of the data traffic is smaller than a preset first threshold value, generating a list selection instruction for instructing to call the primary blacklist; and when the usage amount of the data traffic is greater than or equal to the first threshold and less than a preset second threshold, generating a list selection instruction for instructing to call the secondary blacklist.
In a further scheme, when a user purchases a package for limiting data traffic, the portable router limits network access through a first-level blacklist, and ensures that the user does not consume a large amount of traffic innocently. When the user usage traffic reaches a certain threshold, such as 80% of the total traffic in the data package, a secondary blacklist may be used, possibly limiting more web sites. The flow is protected through the two-stage blacklist, so that a user can reasonably use the flow, and the user experience is improved.
Further, the generating a list selection instruction according to the tariff property of the current network data package of the portable router further includes:
and when the usage amount of the data traffic is greater than or equal to the second threshold value, generating a list selection instruction indicating to call a white list.
In a further scheme, when the usage flow of the user reaches a higher threshold, for example, 90% of the total flow in the data package, a white list is called, and at this time, the user can only access the website in the white list, so that the website access is further limited; or when the total traffic has been exhausted, the user may have free access to the content of some white-listed websites. By utilizing the property, a toll collector can customize the data package according to the interest of the user, different packages point to different white lists, and the effect of diversified data package selection is fully exerted.
Further, the generating a list selection instruction according to the tariff property of the current network data package of the portable router further includes:
and if the network data package is an unpaid package, generating a list selection instruction for indicating to call a white list.
Preferably, the identification codes stored in the black list and the white list are IP addresses;
when a request for accessing a website initiated by the mobile internet access device is received, denying access to the website specified by any identification code in the blacklist specifically includes:
when a request for accessing the website initiated by the mobile internet equipment is received, acquiring the IP address of the website which is requested to be accessed currently; judging whether the IP address of the website is in the blacklist or not;
if the IP address of the website is in the blacklist, accessing a server of a pre-designated website through the mobile communication network so as to return pre-designated website data to the mobile internet access equipment;
if the website IP address is not in the blacklist, accessing a server corresponding to the website IP address through the mobile communication network so as to return website data corresponding to the website IP address to the mobile internet access device;
when receiving a request for accessing a website initiated by the mobile internet access device, the method only allows access to the website specified by the identification code in the white list, and specifically includes:
when a request for accessing the website initiated by the mobile internet access equipment is received, acquiring the IP address of the website requested to be accessed currently, and judging whether the IP address of the website is in the white list or not;
if the website IP address is in the white list, accessing a server corresponding to the website IP address through the mobile communication network so as to return website data corresponding to the website IP address to the mobile internet access device;
and if the IP address of the website is not in the white list, accessing a server of a pre-designated website through the mobile communication network so as to return pre-designated website data to the mobile internet access equipment.
In a preferred scheme, information for forbidding access is fed back to the user by jumping to a specified website.
Preferably, the obtaining of the currently called blacklist specifically includes:
downloading a specified blacklist from a background server according to a list selection instruction to serve as a blacklist to be called currently;
if the blacklist updating information pushed by the background server is received, downloading the updated blacklist from the background server to be used as the blacklist to be called currently;
the obtaining of the white list to be called currently specifically includes:
downloading a specified white list from a background server according to the list selection instruction to serve as the white list to be called currently;
and if the white list updating information pushed by the background server is received, downloading the updated white list from the background server to be used as the current white list to be called.
In the preferred scheme, the portable router automatically initiates a request for downloading the black-and-white list to the background server, and can update the black-and-white list, so that the user can effectively prevent malicious websites in time.
Correspondingly, the invention also provides a portable router, comprising:
the instruction generation module is used for generating a list selection instruction according to the cost property of the current network data package of the portable router;
the blacklist limiting module is used for acquiring a blacklist to be called currently when the list selection instruction indicates to call the blacklist; when a request for accessing the website initiated by the mobile internet equipment is received, refusing to access the website specified by any identification code in the blacklist; the blacklist comprises identification codes of one or more websites; the mobile internet equipment is in wireless connection with the portable router and accesses a mobile communication network through the portable router to acquire website data;
the white list limiting module is used for acquiring a white list to be called currently when the list selection instruction indicates to call the white list; when a request for accessing the website initiated by the mobile internet equipment is received, only allowing to access the website specified by the identification code in the white list; wherein the white list includes identification codes of one or more websites.
Further, the blacklist includes a primary blacklist and a secondary blacklist;
the instruction generation module comprises:
the detection unit is used for detecting the cost property of the current network data package of the portable router;
the traffic limiting unit is used for monitoring the data traffic service condition of the mobile internet access equipment if the network data package is a package for limiting data traffic; when the usage amount of the data traffic is smaller than a preset first threshold value, generating a list selection instruction for instructing to call the primary blacklist; when the usage amount of the data traffic is greater than or equal to the first threshold and less than a preset second threshold, generating a list selection instruction for instructing to call the secondary blacklist; and when the usage amount of the data traffic is greater than or equal to the second threshold value, generating a list selection instruction indicating to call a white list.
And the unpaid data providing unit is used for generating a list selection instruction for indicating to call a white list if the network data package is an unpaid package.
Preferably, the identification codes stored in the black list and the white list are IP addresses;
the blacklist restriction module includes:
the first judgment unit is used for acquiring the IP address of the website requested to be accessed currently when the request for accessing the website initiated by the mobile internet access equipment is received; judging whether the IP address of the website is in the blacklist or not;
a first skip unit, configured to access a server of a pre-designated website through the mobile communication network if the website IP address is in the blacklist, so as to return pre-designated website data to the mobile internet access device;
a first access unit, configured to access, if the website IP address is not in the blacklist, a server corresponding to the website IP address through the mobile communication network, so as to return website data corresponding to the website IP address to the mobile internet access device;
the white list restriction module includes:
a second judging unit, configured to, when receiving a request for accessing a website initiated by the mobile internet access device, obtain an IP address of the website currently requested to be accessed, and judge whether the IP address of the website is in the white list;
a second access unit, configured to access, if the website IP address is in the white list, a server corresponding to the website IP address through the mobile communication network, so as to return website data corresponding to the website IP address to the mobile internet access device;
and the second jumping unit is used for accessing a server of a pre-designated website through the mobile communication network if the website IP address is not in the white list so as to return pre-designated website data to the mobile internet device.
Preferably, the blacklist restriction module further comprises:
the initial blacklist acquisition module is used for downloading a specified blacklist from the background server according to the list selection instruction to serve as the blacklist to be called currently;
the blacklist updating module is used for downloading the updated blacklist from the background server to be used as the blacklist to be called currently if blacklist updating information pushed by the background server is received;
the white list restriction module further comprises:
the initial white list acquisition module is used for downloading the specified white list from the background server according to the list selection instruction to serve as the white list to be called currently;
and the white list updating module is used for downloading the updated white list from the background server to be used as the current called white list if the white list updating information pushed by the background server is received.
Drawings
FIG. 1 is a flow chart of a first embodiment of a method of a portable router of the present invention for controlling access to a web site;
FIG. 2 is a flow chart of a second embodiment of the method of the present invention for a portable router to control access to a web site;
FIG. 3 is a flow chart of denying access to websites in a blacklist in a second embodiment of a method of the present invention;
FIG. 4 is a flow chart of a second embodiment of the method of the present invention for allowing access to only web sites in a whitelist;
fig. 5 is a block diagram of a portable router according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, it is a flowchart of a first embodiment of the method for controlling website access by a portable router of the present invention, comprising:
s11, generating a list selection instruction according to the cost property of the current network data package of the portable router;
s12, when the list selection instruction indicates to call the blacklist, acquiring the blacklist to be called currently; when a request for accessing the website initiated by the mobile internet equipment is received, refusing to access the website specified by any identification code in the blacklist; the blacklist comprises identification codes of one or more websites; the mobile internet equipment is in wireless connection with the portable router and accesses a mobile communication network through the portable router to acquire website data;
s13, when the list selection instruction indicates to call the white list, acquiring the white list to be called currently; when a request for accessing the website initiated by the mobile internet equipment is received, only allowing to access the website specified by the identification code in the white list; wherein the white list includes identification codes of one or more websites.
In specific implementation, various blacklists and white lists can be configured, different black-and-white list selection instructions are flexibly generated according to the content of the network data package, for example, the blacklists can include a primary blacklist and a secondary blacklist, when a user purchases the package for limiting the data traffic, the portable router can limit network access through the primary blacklist, for example, access to some video websites, cloud disk websites or websites where virus files are detected in the primary blacklist is forbidden, and it is ensured that the user does not consume a large amount of traffic innocently. When user usage traffic reaches a certain threshold, such as 80% of the total traffic in a data package, a secondary blacklist may be used, possibly restricting more web sites, such as shopping sites, advertising sites, which some users are not interested in. The flow is protected through the two-stage blacklist, so that a user can reasonably use the flow, and the user experience is improved. Namely, step S11 includes:
detecting the cost property of the current network data package of the portable router;
if the network data package is a package for limiting data traffic, monitoring the data traffic service condition of the mobile internet access equipment; when the usage amount of the data traffic is smaller than a preset first threshold value, generating a list selection instruction for instructing to call the primary blacklist; and when the usage amount of the data traffic is greater than or equal to the first threshold and less than a preset second threshold, generating a list selection instruction for instructing to call the secondary blacklist.
Furthermore, the white list can be used for realizing traffic protection, when the user usage traffic reaches a higher threshold, for example, 90% of the total traffic in the data package, the white list is called, and at this time, the user can only access some daily necessary websites in the white list, so that the website access is further limited. Namely, step S11 further includes:
and when the usage amount of the data traffic is greater than or equal to the second threshold value, generating a list selection instruction indicating to call a white list.
In specific implementation, various white lists can be configured, and the network data package is customized according to the requirements and interests of the user. For example, the network data package can be classified into a health information type, a news type or a social type according to the interests of the user, the user who likes to travel and share the network data package can select the social type network data package, and when the portable router detects that the data package is the social type network data package, a list selection instruction for calling a white list of the social type is generated, only some social platforms are allowed to be accessed, so that the user can share the own travel picture and experience at any time without worrying about traffic running.
The user can experience the portable router free of charge by configuring the white list, for example, when the user runs out of traffic or does not purchase a network data package for payment, the method can be used for generating a list selection instruction for instructing to call the white list, so that the user can use the portable router without paying. Namely, step S11 further includes:
and if the network data package is an unpaid package, generating a list selection instruction for indicating to call a white list.
By the method for controlling website access by the portable router, provided by the invention, network data packages can be designed according to the generation condition of the black and white list selection instruction, and various network data packages are provided for users to select by combining the black list and the white list; the user can only browse the interested contents or prevent from visiting a malicious website in the online process by selecting the network data package, so that the cost of the user for acquiring the interested network contents is reduced, and the user experience is improved.
Referring to fig. 2, it is a flowchart of a second embodiment of the method for controlling website access by a portable router of the present invention. On the basis of the first embodiment, the present embodiment further improves the obtaining of the black list to be called currently in step S12 and the obtaining of the white list to be called currently in step S13. In this embodiment, step S12 includes:
s121, when the list selection instruction indicates to call the blacklist, downloading a specified blacklist from a background server according to the list selection instruction to serve as the currently called blacklist;
s122, if the blacklist updating information pushed by the background server is received, downloading the updated blacklist from the background server to be used as the blacklist to be called currently;
s123, when a request for accessing the website initiated by the mobile internet device is received, denying access to the website specified by any identification code in the blacklist
Step S113 includes:
s131, downloading a specified white list from the background server according to the list selection instruction to serve as the white list to be called currently;
and S132, if the white list updating information pushed by the background server is received, downloading the updated white list from the background server to be used as the current white list to be called.
S133, when a request for accessing the website initiated by the mobile internet device is received, only the website specified by the identification code in the white list is allowed to be accessed.
In this embodiment, the portable router automatically initiates a request for downloading the black-and-white list to the background server, and can update the black-and-white list, so that the user can effectively prevent malicious websites in time. Specifically, the identification codes in the black list and the white list are information that can identify the website, such as an IP address or a domain name. The configuration of the black and white list is mainly completed by a background, the configuration format is that the format of a header is list ID, and the format of content is domain name + port or IP address + port. The format of the content can be more accurately locked to the corresponding website, so that the control of the black and white list is more accurate.
When the identification code in the black and white list needs to be increased or decreased, only the list ID and the corresponding content need to be increased or decreased, if the content of the black and white list needs to be modified, the list ID does not need to be modified, only the content of the corresponding list ID needs to be directly modified, the background server pushes the modified update list to the portable router, and the portable router can automatically update the needed black and white list. In order to improve the accuracy and effectiveness of the black-and-white list, the portable router downloads the black list or the white list from the background server, and the method specifically comprises the following steps:
sending a request for downloading a blacklist or a white list to a background server;
if the network is smooth, downloading a black list or a white list; if the network is not smooth, waiting for the network, and if the time threshold is exceeded and the network is not recovered, automatically restarting the portable router;
checking the MD5 code of the downloaded blacklist or white list, judging whether the code is consistent with the MD5 code provided by the background server, and if so, decompressing and reading the blacklist or white list as the blacklist or white list to be called currently; and if the numbers are inconsistent, the blacklist or the white list is downloaded again.
Preferably, the identification codes stored in the black list and the white list are IP addresses;
referring to fig. 3, which is a flowchart illustrating a method for denying access to websites in a blacklist in a second embodiment of the method of the present invention, step S23 specifically includes:
when a request for accessing the website initiated by the mobile internet equipment is received, acquiring the IP address of the website which is requested to be accessed currently; judging whether the IP address of the website is in the blacklist or not;
if the IP address of the website is in the blacklist, accessing a server of a pre-designated website through the mobile communication network so as to return pre-designated website data to the mobile internet access equipment;
if the website IP address is not in the blacklist, accessing a server corresponding to the website IP address through the mobile communication network so as to return website data corresponding to the website IP address to the mobile internet access device;
referring to fig. 4, which is a flowchart of the method according to the second embodiment of the present invention, in which access to only websites in the white list is allowed, step S33 specifically includes:
when a request for accessing the website initiated by the mobile internet access equipment is received, acquiring the IP address of the website requested to be accessed currently, and judging whether the IP address of the website is in the white list or not;
if the website IP address is in the white list, accessing a server corresponding to the website IP address through the mobile communication network so as to return website data corresponding to the website IP address to the mobile internet access device;
and if the IP address of the website is not in the white list, accessing a server of a pre-designated website through the mobile communication network so as to return pre-designated website data to the mobile internet access equipment.
It should be noted that most of network communications are based on the TCP/IP protocol, and the TCP/IP protocol is based on the IP address, so the mobile device can only identify the IP address and cannot identify the domain name when performing communications on the network, therefore, the identification codes in the black list and the white list are preferably IP addresses, and when receiving a request for accessing a website initiated by the mobile internet device, the portable router needs to resolve the website domain name sent by the mobile internet device into a corresponding IP address through DNS, or when initiating a request for accessing the website, the mobile internet device needs to resolve the website domain name into a corresponding IP address through DNS and send the corresponding IP address to the portable router. If the identification codes in the black list and the white list are not IP addresses but domain names, the domain names need to be resolved into corresponding IP addresses for communication. When a user accesses a certain website on a mobile phone, the domain name is sent to the portable router, whether the website is in a black list or a white list is judged according to the domain name, and then the domain name is analyzed into an IP address so that the user can access a website server through a mobile communication network.
Accordingly, the present invention further provides a portable router, and referring to fig. 5, the portable router provided in the present invention is a structural block diagram, including:
the instruction generating module 11 is configured to generate a list selection instruction according to the cost property of the current network data package of the portable router;
the blacklist limiting module 12 is configured to, when the list selection instruction indicates that a blacklist is to be called, obtain a blacklist to be called currently; when a request for accessing the website initiated by the mobile internet equipment is received, refusing to access the website specified by any identification code in the blacklist; the blacklist comprises identification codes of one or more websites; the mobile internet equipment is in wireless connection with the portable router and accesses a mobile communication network through the portable router to acquire website data;
a white list limiting module 13, configured to obtain a currently called white list when the list selection instruction indicates to call the white list; when a request for accessing the website initiated by the mobile internet equipment is received, only allowing to access the website specified by the identification code in the white list; wherein the white list includes identification codes of one or more websites.
Further, the blacklist includes a primary blacklist and a secondary blacklist;
the instruction generation module comprises:
the detection unit is used for detecting the cost property of the current network data package of the portable router;
the traffic limiting unit is used for monitoring the data traffic service condition of the mobile internet access equipment if the network data package is a package for limiting data traffic; when the usage amount of the data traffic is smaller than a preset first threshold value, generating a list selection instruction for instructing to call the primary blacklist; when the usage amount of the data traffic is greater than or equal to the first threshold and less than a preset second threshold, generating a list selection instruction for instructing to call the secondary blacklist; and when the usage amount of the data traffic is greater than or equal to the second threshold value, generating a list selection instruction indicating to call a white list.
And the unpaid data providing unit is used for generating a list selection instruction for indicating to call a white list if the network data package is an unpaid package.
Preferably, the identification codes stored in the black list and the white list are IP addresses;
the blacklist restriction module includes:
the first judgment unit is used for acquiring the IP address of the website requested to be accessed currently when the request for accessing the website initiated by the mobile internet access equipment is received; judging whether the IP address of the website is in the blacklist or not;
a first skip unit, configured to access a server of a pre-designated website through the mobile communication network if the website IP address is in the blacklist, so as to return pre-designated website data to the mobile internet access device;
a first access unit, configured to access, if the website IP address is not in the blacklist, a server corresponding to the website IP address through the mobile communication network, so as to return website data corresponding to the website IP address to the mobile internet access device;
the white list restriction module includes:
a second judging unit, configured to, when receiving a request for accessing a website initiated by the mobile internet access device, obtain an IP address of the website currently requested to be accessed, and judge whether the IP address of the website is in the white list;
a second access unit, configured to access, if the website IP address is in the white list, a server corresponding to the website IP address through the mobile communication network, so as to return website data corresponding to the website IP address to the mobile internet access device;
and the second jumping unit is used for accessing a server of a pre-designated website through the mobile communication network if the website IP address is not in the white list so as to return pre-designated website data to the mobile internet device.
Preferably, the blacklist restriction module further comprises:
the initial blacklist acquisition module is used for downloading a specified blacklist from the background server according to the list selection instruction to serve as the blacklist to be called currently;
the blacklist updating module is used for downloading the updated blacklist from the background server to be used as the blacklist to be called currently if blacklist updating information pushed by the background server is received;
the white list restriction module further comprises:
the initial white list acquisition module is used for downloading the specified white list from the background server according to the list selection instruction to serve as the white list to be called currently;
and the white list updating module is used for downloading the updated white list from the background server to be used as the current called white list if the white list updating information pushed by the background server is received.
According to the method for controlling website access by the portable router and the portable router provided by the invention, the portable router can only access websites in a white list or limit access to all websites in a black list by setting the black and white list, and the mode for controlling website access is determined by the tariff property of the network data package, so that the method provides technical support for customizing the network data package according to the user requirement and interest, a toll collector can design the network data package according to the generation condition of a black and white list selection instruction, and various network data packages are provided for the user to select; the user can only browse the interested contents or prevent from visiting a malicious website in the online process by selecting the network data package, so that the cost of the user for acquiring the interested network contents is reduced, and the user experience is improved.
The foregoing is a preferred embodiment of the present invention, and it should be noted that modifications and variations can be made by those skilled in the art without departing from the principle of the present invention, and these modifications and variations are also considered as the protection scope of the present invention.
Claims (9)
1. A method for controlling website access by a portable router is characterized by comprising the following steps:
generating a list selection instruction according to the cost property of the current network data package of the portable router;
when the list selection instruction indicates to call the blacklist, acquiring the blacklist to be called currently; when a request for accessing the website initiated by the mobile internet equipment is received, refusing to access the website specified by any identification code in the blacklist; the blacklist comprises identification codes of one or more websites; the mobile internet equipment is in wireless connection with the portable router and accesses a mobile communication network through the portable router to acquire website data;
when the list selection instruction indicates to call a white list, acquiring the white list to be called currently; when a request for accessing the website initiated by the mobile internet equipment is received, only allowing to access the website specified by the identification code in the white list; the white list comprises identification codes of one or more websites;
the blacklist comprises a primary blacklist and a secondary blacklist;
the generating of the list selection instruction according to the cost property of the current network data package of the portable router comprises:
detecting the cost property of the current network data package of the portable router;
if the network data package is a package for limiting data traffic, monitoring the data traffic service condition of the mobile internet access equipment; when the usage amount of the data traffic is smaller than a preset first threshold value, generating a list selection instruction for instructing to call the primary blacklist; and when the usage amount of the data traffic is greater than or equal to the first threshold and less than a preset second threshold, generating a list selection instruction for instructing to call the secondary blacklist.
2. The method as claimed in claim 1, wherein the step of generating the shortlist selection command according to the tariff property of the current network data package of the portable router further comprises:
and when the usage amount of the data traffic is greater than or equal to the second threshold value, generating a list selection instruction indicating to call a white list.
3. The method as claimed in claim 1, wherein the step of generating the shortlist selection command according to the tariff property of the current network data package of the portable router further comprises:
and if the network data package is an unpaid package, generating a list selection instruction for indicating to call a white list.
4. The method of any of claims 1 to 3, wherein the identification codes stored in the blacklist and the whitelist are IP addresses;
when a request for accessing a website initiated by the mobile internet access device is received, denying access to the website specified by any identification code in the blacklist specifically includes:
when a request for accessing the website initiated by the mobile internet equipment is received, acquiring the IP address of the website which is requested to be accessed currently; judging whether the IP address of the website is in the blacklist or not;
if the IP address of the website is in the blacklist, accessing a server of a pre-designated website through the mobile communication network so as to return pre-designated website data to the mobile internet access equipment;
if the website IP address is not in the blacklist, accessing a server corresponding to the website IP address through the mobile communication network so as to return website data corresponding to the website IP address to the mobile internet access device;
when receiving a request for accessing a website initiated by the mobile internet access device, the method only allows access to the website specified by the identification code in the white list, and specifically includes:
when a request for accessing the website initiated by the mobile internet access equipment is received, acquiring the IP address of the website requested to be accessed currently, and judging whether the IP address of the website is in the white list or not;
if the website IP address is in the white list, accessing a server corresponding to the website IP address through the mobile communication network so as to return website data corresponding to the website IP address to the mobile internet access device;
and if the IP address of the website is not in the white list, accessing a server of a pre-designated website through the mobile communication network so as to return pre-designated website data to the mobile internet access equipment.
5. The method as claimed in any of claims 1 to 3, wherein said obtaining the currently called blacklist specifically includes:
downloading a specified blacklist from a background server according to a list selection instruction to serve as a blacklist to be called currently;
if the blacklist updating information pushed by the background server is received, downloading the updated blacklist from the background server to be used as the blacklist to be called currently;
the obtaining of the white list to be called currently specifically includes:
downloading a specified white list from a background server according to the list selection instruction to serve as the white list to be called currently;
and if the white list updating information pushed by the background server is received, downloading the updated white list from the background server to be used as the current white list to be called.
6. A portable router, comprising:
the instruction generation module is used for generating a list selection instruction according to the cost property of the current network data package of the portable router;
the blacklist limiting module is used for acquiring a blacklist to be called currently when the list selection instruction indicates to call the blacklist; when a request for accessing the website initiated by the mobile internet equipment is received, refusing to access the website specified by any identification code in the blacklist; the blacklist comprises identification codes of one or more websites; the mobile internet equipment is in wireless connection with the portable router and accesses a mobile communication network through the portable router to acquire website data;
the white list limiting module is used for acquiring a white list to be called currently when the list selection instruction indicates to call the white list; when a request for accessing the website initiated by the mobile internet equipment is received, only allowing to access the website specified by the identification code in the white list; the white list comprises identification codes of one or more websites;
the blacklist comprises a primary blacklist and a secondary blacklist;
the instruction generation module comprises:
the detection unit is used for detecting the cost property of the current network data package of the portable router;
the traffic limiting unit is used for monitoring the data traffic service condition of the mobile internet access equipment if the network data package is a package for limiting data traffic; when the usage amount of the data traffic is smaller than a preset first threshold value, generating a list selection instruction for instructing to call the primary blacklist; and when the usage amount of the data traffic is greater than or equal to the first threshold and less than a preset second threshold, generating a list selection instruction for instructing to call the secondary blacklist.
7. The portable router of claim 6, wherein the portable router further comprises an unpaid data providing unit; wherein,
the unpaid data providing unit is used for generating a list selection instruction for indicating to call a white list if the network data package is an unpaid package;
the traffic limiting unit is further configured to generate a list selection instruction indicating to invoke a white list when the usage amount of the data traffic is greater than or equal to the second threshold.
8. The portable router of claim 6 or 7, wherein the identification codes stored in the blacklist and whitelist are IP addresses;
the blacklist restriction module includes:
the first judgment unit is used for acquiring the IP address of the website requested to be accessed currently when the request for accessing the website initiated by the mobile internet access equipment is received; judging whether the IP address of the website is in the blacklist or not;
a first skip unit, configured to access a server of a pre-designated website through the mobile communication network if the website IP address is in the blacklist, so as to return pre-designated website data to the mobile internet access device;
a first access unit, configured to access, if the website IP address is not in the blacklist, a server corresponding to the website IP address through the mobile communication network, so as to return website data corresponding to the website IP address to the mobile internet access device;
the white list restriction module includes:
a second judging unit, configured to, when receiving a request for accessing a website initiated by the mobile internet access device, obtain an IP address of the website currently requested to be accessed, and judge whether the IP address of the website is in the white list;
a second access unit, configured to access, if the website IP address is in the white list, a server corresponding to the website IP address through the mobile communication network, so as to return website data corresponding to the website IP address to the mobile internet access device;
and the second jumping unit is used for accessing a server of a pre-designated website through the mobile communication network if the website IP address is not in the white list so as to return pre-designated website data to the mobile internet device.
9. The portable router of claim 6 or 7, wherein said blacklist restriction module further comprises:
the initial blacklist acquisition module is used for downloading a specified blacklist from the background server according to the list selection instruction to serve as the blacklist to be called currently;
the blacklist updating module is used for downloading the updated blacklist from the background server to be used as the blacklist to be called currently if blacklist updating information pushed by the background server is received;
the white list restriction module further comprises:
the initial white list acquisition module is used for downloading the specified white list from the background server according to the list selection instruction to serve as the white list to be called currently;
and the white list updating module is used for downloading the updated white list from the background server to be used as the current called white list if the white list updating information pushed by the background server is received.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610601851.0A CN107666393B (en) | 2016-07-27 | 2016-07-27 | Method for controlling website access by portable router and portable router |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610601851.0A CN107666393B (en) | 2016-07-27 | 2016-07-27 | Method for controlling website access by portable router and portable router |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107666393A CN107666393A (en) | 2018-02-06 |
CN107666393B true CN107666393B (en) | 2020-09-08 |
Family
ID=61115364
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610601851.0A Active CN107666393B (en) | 2016-07-27 | 2016-07-27 | Method for controlling website access by portable router and portable router |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107666393B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213220B (en) * | 2018-12-26 | 2022-03-04 | 腾讯科技(深圳)有限公司 | Method and device for detecting flow data, electronic equipment and computer storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924696A (en) * | 2009-06-09 | 2010-12-22 | 索尼公司 | Be used for effectively realizing the system and method for enhanced router device |
CN102404706A (en) * | 2011-11-24 | 2012-04-04 | 中兴通讯股份有限公司 | Method for managing tariff safety and mobile terminal |
CN103297617A (en) * | 2013-05-10 | 2013-09-11 | 广东欧珀移动通信有限公司 | A method and device for intercepting network behavior |
CN105338072A (en) * | 2015-10-20 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | HTTP (hyper text transport protocol) redirecting method and routing equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI249330B (en) * | 2003-10-28 | 2006-02-11 | Far Eastone Telecomm Co Ltd | Mobile network content based charging and access control system |
-
2016
- 2016-07-27 CN CN201610601851.0A patent/CN107666393B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924696A (en) * | 2009-06-09 | 2010-12-22 | 索尼公司 | Be used for effectively realizing the system and method for enhanced router device |
CN102404706A (en) * | 2011-11-24 | 2012-04-04 | 中兴通讯股份有限公司 | Method for managing tariff safety and mobile terminal |
CN103297617A (en) * | 2013-05-10 | 2013-09-11 | 广东欧珀移动通信有限公司 | A method and device for intercepting network behavior |
CN105338072A (en) * | 2015-10-20 | 2016-02-17 | 上海斐讯数据通信技术有限公司 | HTTP (hyper text transport protocol) redirecting method and routing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107666393A (en) | 2018-02-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108353462B (en) | Configuration file downloading method and related equipment and system | |
US8254915B2 (en) | System and method for enabling subscribers of a communications carrier to access a network of other subscribers | |
EP3068152A1 (en) | Method and terminal for data service transmission | |
US20140348152A1 (en) | Terminal and a manager for discovering and accessing local services via wifi hotspots | |
EP3197213B1 (en) | Network access method and mobile communication terminal | |
US10659913B2 (en) | Location based access control for artificial conversational entities | |
CN108200192B (en) | Method and device for controlling binding of terminal equipment | |
US9591485B2 (en) | Provisioning subscriptions to user devices | |
WO2014172884A1 (en) | Method and apparatus for distributing information, and network system | |
US20150003299A1 (en) | Method and apparatus for performing charging control to a sponsored data application | |
CN105791963B (en) | Processing method, device, TV and the intelligent server of order | |
CN104619045A (en) | Access control method and device for mobile terminal | |
CN104424241A (en) | Website link processing method, device and system based on two-dimension code | |
CN106254528A (en) | A kind of resource downloading method and buffer memory device | |
JP5875051B2 (en) | Authentication server and authentication method using authentication server | |
CN104519560A (en) | Mobile terminal request intercepting method and mobile terminal | |
CN104619039A (en) | Terminal equipment interconnection method and system in wireless local area network (WLAN) and terminal equipment | |
CN111049822B (en) | Short message verification code sending method and device, short message server and storage medium | |
CN107666393B (en) | Method for controlling website access by portable router and portable router | |
GB2531743A (en) | Application download notification in hierarchical groups of consumer users of mobile devices | |
CN109218375B (en) | Application interaction method and device | |
CN111787642B (en) | Third-party application based authentication networking method and device | |
CN114978748A (en) | Login control method and device, readable storage medium and electronic equipment | |
CN106879008B (en) | Wireless communication network information acquisition method and electronic equipment | |
CN108111561B (en) | Data downloading method and equipment thereof |
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 |