CN106302851B - A method of judging that server is accessed by which kind of network type - Google Patents

A method of judging that server is accessed by which kind of network type Download PDF

Info

Publication number
CN106302851B
CN106302851B CN201610647772.3A CN201610647772A CN106302851B CN 106302851 B CN106302851 B CN 106302851B CN 201610647772 A CN201610647772 A CN 201610647772A CN 106302851 B CN106302851 B CN 106302851B
Authority
CN
China
Prior art keywords
address
server
client
network
serverip
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
CN201610647772.3A
Other languages
Chinese (zh)
Other versions
CN106302851A (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.)
XIAMEN TIPRAY TECHNOLOGY Co Ltd
Original Assignee
XIAMEN TIPRAY 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 XIAMEN TIPRAY TECHNOLOGY Co Ltd filed Critical XIAMEN TIPRAY TECHNOLOGY Co Ltd
Priority to CN201610647772.3A priority Critical patent/CN106302851B/en
Publication of CN106302851A publication Critical patent/CN106302851A/en
Application granted granted Critical
Publication of CN106302851B publication Critical patent/CN106302851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses

Abstract

The present invention relates to a kind of methods that judgement server is accessed by which kind of network type, comprising the following steps: configures different types of address list in the address configuration device of server end;Client call service device communication interface or access webpage;Server records the address url in request request, and the address serverip of active client access server is parsed from the address url;Address differentiation is carried out with the address list in address configuration device behind the server acquisition address serverip;The network environment access mode that the client uses is judged according to matched address subordinate relation after differentiating successfully;Server returns to corresponding network environment information.The method that a kind of judgement server of the invention is accessed by which kind of network type, compatibility is high, when judging client network type, is neither influenced by client computer system environments, is not also limited by client release.

Description

A method of judging that server is accessed by which kind of network type
Technical field
The present invention relates to the internet communications fields, are accessed more particularly to a kind of judgement server by which kind of network type Method.
Background technique
Currently, handling official business dependent on Internet more and more, with the rapid development of network technology for file carrying side Just, disparate networks document file management system emerges one after another, and people are no longer limited to that only file is stored in respective terminal computer. In order to improve the working efficiency and information security of enterprise (unit) employee, most of enterprise's (unit) is all to the office document of employee Carry out certain control, inevitably may require that and local terminal file is uploaded/backuped to server, at the same needs when It waits, downloading/recovery is got off from server-side.It is had the following problems at present from client from server-side downloading files:
Firstly, our common most of document file management systems are that have client, server, file repository three parts group At often being communicated two-by-two between them.It just needs in general, client wants will carry out communicating with file repository from server Get correct access address (address ftp, port, account, password etc.).So server passes to the information of client Be it is very important, for technical development of computer with rapid changepl. never-ending changes and improvements, sometimes the network environment of client is changeable, access Server mode multiplicity, at this time server obtain client network type be difficult, especially have multiple file storehouses In the case where the address of library, accurately learn that the network environment of client can accurately just return to the required information of client, such as: The ftp access address of file storage and port etc., client can just be carried out corresponding by these information threaded file warehouses ftp The operation such as file upload/downloading.
Secondly, we may sometimes have to different network type access webpages it can be seen that different content pages Demand, at this moment, server is essential to need to be accurately judged to the different network type of accession page object, returns according to demand Corresponding interface, text, image etc. are returned, webpage strong flexibility is made.
Furthermore with the development of the future network communication technology, there will be new network access mode constantly to be createed, These modes also need to be identified by careful differentiation.
And existing scheme is that the address terminal i p of client object is corresponded to by server request request, is utilized Network segment division judges whether this client ip belongs to internal address, distinguishes whether client uses outer net or Intranet to access clothes with this Business device.
But existing scheme cannot be distinguished whether client is to access server with channel vpn or other means, and not Enough accurate, when client terminal computer exists simultaneously multiple network interface cards, the address ip that server is got is likely to occur mistake Accidentally.Likewise, server can not lead to when server supports the access address of multiple same-types (intranet and extranet, vpn and other) Cross the information that the above method is got carry out determine return client in requisition for information.
In view of this, the present inventor specially devises a kind of safety access method of application system, thus this case generates.
Summary of the invention
The purpose of the present invention is to provide a kind of safety access methods of application system, and compatibility is high, judge client When network type, is neither influenced by client computer system environments, also do not limited by client release.
To achieve the goals above, the technical solution adopted by the present invention are as follows:
A method of judging that server is accessed by which kind of network type, comprising the following steps:
S01: different types of address list is configured in the address configuration device of server end;
S02: client call service device communication interface or access webpage;
S03: server records the address url in request request, and parses existing customer from the address url The address serverip of end access server;
S04: address differentiation is carried out with the address list in address configuration device behind the server acquisition address serverip, is differentiated The network environment access mode that the client uses is judged according to matched address subordinate relation after success;
S05: server returns to corresponding network environment information.
Address list in the step S01 includes network type, address properties and other information, wherein network type Including Intranet, public network and vpn, address properties include the address ip of the address Intranet ip, the address public network ip and vpn, and address properties Be String character string type data, step S04 server obtain behind the address serverip with the address in address configuration device List comparison carries out network environment differentiation, mainly by the String character string type data and address column in the address serverip The String character string type data of address properties are compared differentiation in table.
The address serverip differentiate successfully with address properties after according to read address list in corresponding network type Judge the network environment access mode that the client uses.
Network environment information in the step S05 includes Intranet, public network and vpn.
The present invention has following advantages compared with existing scheme:
1) accuracy does not depend on client but collects client address information by server communications, so that The url information that gets is reliable from request request, can be one by one the case where for more network interface cards or more access modes It is corresponding;
2) versatility, obtaining request information is that web programs a common technology, for the number of upper application software It is transmitted according to network layer will be passed through;
3) compatibility is high, for judging client network type, is neither influenced by client computer system environments, also not by Client release limitation.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the method for the present invention flow chart.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
As shown in Figure 1, the present invention provides a kind of method that judgement server is accessed by which kind of network type, including following step It is rapid:
S01: different types of address list is configured in the address configuration device of server end;
S02: client call service device communication interface or access webpage;
S03: server records the address url in request request, and parses existing customer from the address url The address serverip of end access server;
S04: address differentiation is carried out with the address list in address configuration device behind the server acquisition address serverip, is differentiated The network environment access mode that the client uses is judged according to matched address subordinate relation after success;
S05: server returns to corresponding network environment information.
Address list in the step S01 includes network type, address properties and other information, wherein network type Including Intranet, public network and vpn, address properties include the address ip of the address Intranet ip, the address public network ip and vpn, and address properties Be String character string type data, step S04 server obtain behind the address serverip with the address in address configuration device List comparison carries out address differentiation, mainly will be in the String character string type data and address list in the address serverip The String character string type data of address properties are compared differentiation.
The address serverip differentiate successfully with address properties after according to read address list in corresponding network type Judge the network environment access mode that the client uses.
Network environment information in the step S05 includes Intranet, public network and vpn.
Specifically, as shown in table 1, address list includes network type, address properties and other information, wherein network class Type includes Intranet, public network and vpn, and address properties include the address ip of the address Intranet ip, the address public network ip and vpn, and address belongs to Property be String character string type data, client call service device communication interface or access webpage when, server can obtain One request request, the request have recorded the agreement and content of client access server, and server extracts request The address url (generally being formed by accessing the address ip+suffix) in request content, and extracted from the address url and parse access Ip address field, as the address serverip of active client access server, by the String word in the address serverip It accords with string type data and is compared differentiation with the String character string type data of address properties in address list, after differentiating successfully The network environment access mode for judging that the client uses according to corresponding network type in address list is read, server return Corresponding network environmental information is Intranet, public network or vpn.
Network type Address properties (ip) Other information
Intranet 192.168.1.9 Access port is 8800
Public network 210.193.5.12 Access port is 8180
vpn 157.54.0.1 Access port is 1723
Table 1
The present invention has following advantages compared with existing scheme:
1) accuracy does not depend on client but collects client address information by server communications, so that The url information that gets is reliable from request request, can be one by one the case where for more network interface cards or more access modes It is corresponding;
2) versatility, obtaining request information is that web programs a common technology, for the number of upper application software It is transmitted according to network layer will be passed through;
3) compatibility is high, for judging client network type, is neither influenced by client computer system environments, also not by Client release limitation.
The preferred embodiment of the present invention has shown and described in above description, as previously described, it should be understood that the present invention is not office Be limited to form disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, modification and Environment, and can be changed within that scope of the inventive concept describe herein by the above teachings or related fields of technology or knowledge It is dynamic.And changes and modifications made by those skilled in the art do not depart from the spirit and scope of the present invention, then it all should be appended by the present invention In scope of protection of the claims.

Claims (3)

1. a kind of method that judgement server is accessed by which kind of network type, which comprises the following steps:
S01: different types of address list is configured in the address configuration device of server end;
S02: client call service device communication interface or access webpage;
S03: server records the address url in request request, and active client visit is parsed from the address url Ask the address serverip of server;
S04: address differentiation is carried out with the address list in address configuration device behind the server acquisition address serverip, is differentiated successfully Network environment access mode that the client uses is judged according to matched address subordinate relation afterwards;
S05: server returns to corresponding network environment information;
Address list in the step S01 includes network type, address properties and other information, and wherein network type includes Intranet, public network and vpn, address properties include the address ip of the address Intranet ip, the address public network ip and vpn, and address properties are String character string type data, step S04 server obtain the address serverip after with the address list in address configuration device Address differentiation is carried out, mainly by the String character string type data in the address serverip and address properties in address list String character string type data be compared differentiation.
2. a kind of method that judgement server is accessed by which kind of network type according to claim 1, it is characterised in that: institute It states and the client is judged according to corresponding network type in reading address list after the address serverip differentiates successfully with address properties Hold the network environment access mode used.
3. a kind of method that judgement server is accessed by which kind of network type according to claim 1, it is characterised in that: institute Stating the network environment information in step S05 includes Intranet, public network and vpn.
CN201610647772.3A 2016-08-09 2016-08-09 A method of judging that server is accessed by which kind of network type Active CN106302851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610647772.3A CN106302851B (en) 2016-08-09 2016-08-09 A method of judging that server is accessed by which kind of network type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610647772.3A CN106302851B (en) 2016-08-09 2016-08-09 A method of judging that server is accessed by which kind of network type

Publications (2)

Publication Number Publication Date
CN106302851A CN106302851A (en) 2017-01-04
CN106302851B true CN106302851B (en) 2019-08-02

Family

ID=57667052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610647772.3A Active CN106302851B (en) 2016-08-09 2016-08-09 A method of judging that server is accessed by which kind of network type

Country Status (1)

Country Link
CN (1) CN106302851B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111901163A (en) * 2020-07-16 2020-11-06 江苏神彩科技股份有限公司 Method for accessing system in different network segments

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634304A (en) * 2013-11-18 2014-03-12 四川长虹电器股份有限公司 Method for realizing quick WEB authentication on smart television
CN103678652A (en) * 2013-12-23 2014-03-26 山东大学 Information individualized recommendation method based on Web log data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8699499B2 (en) * 2010-12-08 2014-04-15 At&T Intellectual Property I, L.P. Methods and apparatus to provision cloud computing network elements

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634304A (en) * 2013-11-18 2014-03-12 四川长虹电器股份有限公司 Method for realizing quick WEB authentication on smart television
CN103678652A (en) * 2013-12-23 2014-03-26 山东大学 Information individualized recommendation method based on Web log data

Also Published As

Publication number Publication date
CN106302851A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN102098331B (en) Method and system for reducing WEB type application contents
CN103295145B (en) Mobile phone advertising method based on user consumption feature vector
CN102436564A (en) Method and device for identifying falsified webpage
CN109063138B (en) Method, apparatus, and storage medium for searching data in a blockchain as a service platform
CN103428309B (en) Quick Response Code redirect processing method
CN103118007B (en) A kind of acquisition methods of user access activity and system
CN102868719A (en) Network access method and server based on cache
CN105608134A (en) Multithreading-based web crawler system and web crawling method thereof
CN102065147A (en) Method and device for obtaining user login information based on enterprise application system
CN102077201A (en) System and method for dynamic and real-time categorization of webpages
CN103617266A (en) Personalized extension search method, device and system
CN104125121A (en) Network hijacking behavior detecting system and method
CN102622553A (en) Method and device for detecting webpage safety
Zhang et al. A new anti‐collision algorithm for RFID tag
CN103905379A (en) Method for identifying internet users and device thereof
CN107835132B (en) Method and device for tracking flow source
CN108063833A (en) HTTP dns resolutions message processing method and device
CN104657435A (en) Storage management method for application data and network management system
CN106302851B (en) A method of judging that server is accessed by which kind of network type
CN101599857A (en) Detect method, device and the network measuring system that inserts number of host of sharing
CN109857923A (en) A kind of news intelligent recommendation method and system based on area media
EP3438870B1 (en) Method and system for analyzing unstructured data for compliance enforcement
CN103577585A (en) Method and device for identifying users in internet
CN104363309B (en) Pan-domain name identification processing unit and method
Munk et al. Data preprocessing dependency for web usage mining based on sequence rule analysis

Legal Events

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