CN105577666A - Method and system for verifying network server - Google Patents
Method and system for verifying network server Download PDFInfo
- Publication number
- CN105577666A CN105577666A CN201510994032.2A CN201510994032A CN105577666A CN 105577666 A CN105577666 A CN 105577666A CN 201510994032 A CN201510994032 A CN 201510994032A CN 105577666 A CN105577666 A CN 105577666A
- Authority
- CN
- China
- Prior art keywords
- server
- authorization message
- correct
- checking
- address
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and system for verifying a network server. The method comprises following steps: generating a server IP authorization file through an encryption algorithm according to IP authorization information; starting and initialing a server, loading the server IP authorization file in a memory; decrypting the server IP authorization file according to the verification code corresponding to the encryption algorithm, thus obtaining the IP authorization information; wherein if the IP authorization information is verified to be correct, the server is initialized successfully, and the server is started normally. The invention also discloses a system for verifying the network server. In application of the embodiment of the invention, whether the network server is an official server can be verified, thus ensuring the normal process of the online game.
Description
Technical field
The application relates to field of computer technology, more specifically, relates to a kind of method and system verifying the webserver.
Background technology
In the operation process of online game, need the server version that the operator to various regions and nations provides different, also need irregularly to provide various server version for same operator.If not Control Server version in addition, just may be set up server by lawless person privately.
Private clothes are authorized without copyright owner, the webserver set up after illegal acquisition server end installation procedure.Authorize without copyright owner for official's server, belonging to the one of network piracy, is piratic behavior.The main purpose that private clothes exist is the same with official's server, is all to make a profit to player's charge.
The normal operation that there is severe jamming official server of private clothes in prior art, the owner of online game cannot verify whether game server is private clothes.
Summary of the invention
The embodiment of the present invention proposes a kind of method verifying the webserver, can verify whether the webserver is official's server, thus guarantee normally carrying out of online game.
The embodiment of the present invention also proposes a kind of system verifying the webserver, can verify whether the webserver is official's server, thus guarantee normally carrying out of online game.
The technical scheme of the embodiment of the present invention is as follows:
Verify a method for the webserver, described method comprises:
According to IP authorization message by cryptographic algorithm generation server IP authority;
Startup of server initialization, load server IP authority in internal memory;
The check code decryption server IP authority corresponding by cryptographic algorithm, obtains IP authorization message;
Checking IP authorization message is correct, then server initiation success, server normally starts.
Described IP authorization message comprises: IP address and port;
Described checking IP authorization message correctly comprises: checking IP address and port are all correct, then IP authorization message is correct.
Described IP authorization message comprises: IP address, port and the term of validity;
Described checking IP authorization message correctly comprises: checking IP address and port are all correct, and IP authorization message before the deadline, then IP authorization message is correct.
Comprise further after described server normally starts: record the remaining term of validity.
Described cryptographic algorithm comprises: md5 algorithm.
Described method comprises further: the failure of checking IP authorization message, then record failure cause.
Described method comprises further: regular update server ip authority.
Verify a system for the webserver, described system comprises:
Control module, for passing through cryptographic algorithm generation server IP authority according to IP authorization message;
Server, during for starting initialization, load server IP authority in internal memory; The check code decryption server IP authority corresponding by cryptographic algorithm, obtains IP authorization message; Checking IP authorization message is correct, then initialization success, normally starts.
Described IP authorization message comprises: IP address and port;
Described server is further used for, and checking IP address and port are all correct, then IP authorization message is correct.
Described IP authorization message comprises: IP address, port and the term of validity;
Described server is further used for, and checking IP address and port are all correct, and IP authorization message before the deadline, then IP authorization message is correct.
As can be seen from technique scheme, pass through cryptographic algorithm generation server IP authority according to IP authorization message in embodiments of the present invention; Startup of server initialization, load server IP authority in internal memory; The check code decryption server IP authority corresponding by cryptographic algorithm, obtains IP authorization message; Checking IP authorization message is correct, then server initiation success, server normally starts.Owing to can verify the webserver according to IP authorization message, be proved to be successful, the webserver is official's server, thus guarantees normally carrying out of online game.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram of the checking webserver;
Fig. 2 is the system configuration schematic diagram of the checking webserver.
Embodiment
Express clearly clear for making the object, technical solutions and advantages of the present invention, below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
In embodiments of the present invention, by the IP authorization message checking webserver, after being proved to be successful, then this webserver is official's server, thus guarantees normally carrying out of online game.
See the method flow schematic diagram that accompanying drawing 1 is the checking webserver, specifically comprise the following steps:
101, cryptographic algorithm generation server IP authority is passed through according to IP authorization message.
The IP authorization message provided according to operator is by cryptographic algorithm generation server IP authority.In order to solve the problem that clear text file is easy to be modified, carry out encryption IP authorization message by md5 algorithm.
IP authorization message can comprise: IP address and port.IP authorization message can also comprise: IP address, port and the term of validity.
102, startup of server initialization, load server IP authority in internal memory.
During startup of server initialization, load server IP authority in memory buffer.Just can be verified by load server IP authority when server initiation like this.
103, by the check code decryption server IP authority that cryptographic algorithm is corresponding, IP authorization message is obtained.
Cryptographic algorithm has corresponding check code, when cryptographic algorithm is md5, by check code decryption server IP authority corresponding to md5, can obtain IP authorization message.
104, verify that IP authorization message is correct, then server initiation success, server normally starts.
IP authorization message comprises: IP address and port.Checking IP authorization message is correct, and namely verify when startup of server that whether the IP address in IP authorization message is consistent with server local ip address, whether the port in IP authorization message is consistent with Service-Port.
If the address of the local IP of IP address and server is consistent, and port in Port IP authorization message is consistent with Service-Port, and correctly, then explanation server is official's server to checking IP authorization message; Otherwise the failure of checking IP authorization message, then illustrate the unofficial server of server.
The game server that operator needs unlatching one new, all can generate corresponding server ip authority according to IP authorization message.
Because IP authority is difficult to crack, the effect preventing lawless person from setting up private clothes can be played to a certain extent.If but utilized IP to map, just IP address of internal network could be changed into authorized IP address, so just cannot limit other outer net IP address, amount to a bypass checking IP address.
In order to avoid the generation of above-mentioned situation, IP authorization message can also comprise: IP address, port and the term of validity.
Checking IP authorization message is correct, and namely verify when startup of server that whether the IP address in IP authorization message is consistent with server local ip address, whether the port in IP authorization message is consistent with Service-Port, and before the deadline whether IP authorization message simultaneously.
If the address of the local IP of IP address and server is consistent, and port in Port IP authorization message is consistent with Service-Port, and IP authorization message before the deadline simultaneously, and correctly, then explanation server is official's server to checking IP authorization message; Otherwise the failure of checking IP authorization message, then illustrate the unofficial server of server.
Checking IP authorization message is correct, the remaining term of validity of record IP authorization message, is convenient to legal server operation personnel and understands when need contact developer update server IP authority timely and effectively.
If the failure of checking IP authorization message, server is unofficial server, and server initiation failure, exits server processes.Because legal server is also likely because some other reasons cause server ip authority authentication failed, therefore, record failure cause is needed to be convenient to investigation problem during server ip authority authentication failed.
In addition, all right regular update server ip authority, object upgrades the term of validity, and server to ensure that legitimate can normally run.The term of validity of server ip authority can be arranged to 1 month, legal server ip authority every the renewal carrying out a term of validity 2-3 week, so neither can be affected to legal server and normally runs, also prevent to a great extent setting up private clothes.
See the system configuration schematic diagram that accompanying drawing 2 is checking webservers, specifically comprise control module 201 and server 202.
Control module 202, for passing through cryptographic algorithm generation server IP authority according to IP authorization message;
Server 202, during for starting initialization, load server IP authority in internal memory; The check code decryption server IP authority corresponding by cryptographic algorithm, obtains IP authorization message; Checking IP authorization message is correct, then initialization success, normally starts.
When IP authorization message comprises: IP address and port; Server 202 is further used for, and checking IP address and port are all correct, then IP authorization message is correct.
When IP authorization message comprises: IP address, port and the term of validity; Server 202 is further used for, and checking IP address and port are all correct, and IP authorization message before the deadline, then IP authorization message is correct.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. verify a method for the webserver, it is characterized in that, described method comprises:
According to IP authorization message by cryptographic algorithm generation server IP authority;
Startup of server initialization, load server IP authority in internal memory;
The check code decryption server IP authority corresponding by cryptographic algorithm, obtains IP authorization message;
Checking IP authorization message is correct, then server initiation success, server normally starts.
2. verify the method for the webserver according to claim 1, it is characterized in that, described IP authorization message comprises: IP address and port;
Described checking IP authorization message correctly comprises: checking IP address and port are all correct, then IP authorization message is correct.
3. verify the method for the webserver according to claim 1, it is characterized in that, described IP authorization message comprises: IP address, port and the term of validity;
Described checking IP authorization message correctly comprises: checking IP address and port are all correct, and IP authorization message before the deadline, then IP authorization message is correct.
4. verify the method for the webserver according to claim 3, it is characterized in that, comprise further after described server normally starts: record the remaining term of validity.
5. verify the method for the webserver according to claim 1, it is characterized in that, described cryptographic algorithm comprises: md5 algorithm.
6. verify the method for the webserver according to claim 1, it is characterized in that, described method comprises further: the failure of checking IP authorization message, then record failure cause.
7. verify the method for the webserver according to claim 1, it is characterized in that, described method comprises further: regular update server ip authority.
8. verify a system for the webserver, it is characterized in that, described system comprises:
Control module, for passing through cryptographic algorithm generation server IP authority according to IP authorization message;
Server, during for starting initialization, load server IP authority in internal memory; The check code decryption server IP authority corresponding by cryptographic algorithm, obtains IP authorization message; Checking IP authorization message is correct, then initialization success, normally starts.
9. verify the system of the webserver according to claim 8, it is characterized in that, described IP authorization message comprises: IP address and port;
Described server is further used for, and checking IP address and port are all correct, then IP authorization message is correct.
10. verify the system of the webserver according to claim 8, it is characterized in that, described IP authorization message comprises: IP address, port and the term of validity;
Described server is further used for, and checking IP address and port are all correct, and IP authorization message before the deadline, then IP authorization message is correct.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510994032.2A CN105577666A (en) | 2015-12-25 | 2015-12-25 | Method and system for verifying network server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510994032.2A CN105577666A (en) | 2015-12-25 | 2015-12-25 | Method and system for verifying network server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105577666A true CN105577666A (en) | 2016-05-11 |
Family
ID=55887323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510994032.2A Pending CN105577666A (en) | 2015-12-25 | 2015-12-25 | Method and system for verifying network server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105577666A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106203005A (en) * | 2016-07-11 | 2016-12-07 | 福建方维信息科技有限公司 | A kind of various dimensions authorization encryption method based on WEB platform software and system |
CN118133271A (en) * | 2024-05-06 | 2024-06-04 | 欢乐互娱(上海)科技股份有限公司 | Protection method for preventing game code leakage from becoming private clothes |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100083354A1 (en) * | 2008-09-30 | 2010-04-01 | Qualcomm Incorporated | Third party validation of internet protocol addresses |
CN103745139A (en) * | 2013-12-29 | 2014-04-23 | 国云科技股份有限公司 | Software authorization control method |
CN104717192A (en) * | 2013-12-16 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Validity verification method and intermediate server |
-
2015
- 2015-12-25 CN CN201510994032.2A patent/CN105577666A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100083354A1 (en) * | 2008-09-30 | 2010-04-01 | Qualcomm Incorporated | Third party validation of internet protocol addresses |
CN104717192A (en) * | 2013-12-16 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Validity verification method and intermediate server |
CN103745139A (en) * | 2013-12-29 | 2014-04-23 | 国云科技股份有限公司 | Software authorization control method |
Non-Patent Citations (1)
Title |
---|
段善荣: "软件保护技术的分析及实现", 《武汉理工大学学报信息与管理工程版》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106203005A (en) * | 2016-07-11 | 2016-12-07 | 福建方维信息科技有限公司 | A kind of various dimensions authorization encryption method based on WEB platform software and system |
CN118133271A (en) * | 2024-05-06 | 2024-06-04 | 欢乐互娱(上海)科技股份有限公司 | Protection method for preventing game code leakage from becoming private clothes |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI741041B (en) | Unified programming environment for programmable devices | |
CN107615292B (en) | System and method for managing installation of application packages requiring high risk permission access | |
US8296561B2 (en) | Certifying device, verifying device, verifying system, computer program and integrated circuit | |
TWI436236B (en) | Method and system for securely updating field upgradeable units | |
CN104904228B (en) | For handling content of multimedia to realize the equipment of multiple virtual machines | |
JP6357158B2 (en) | Secure data processing with virtual machines | |
US8909919B2 (en) | Authentication system and method for digital televisions | |
CN101777105B (en) | Computer booting anti-counterfeit authentication method based on BIOS | |
CN108399329A (en) | A method of improving trusted application safety | |
US8683214B2 (en) | Method and device that verifies application program modules | |
CN106355081A (en) | Android program start verification method and device | |
CN103888252A (en) | UID, PID, and APPID-based control application access permission method | |
CN103685138A (en) | Method and system for authenticating application software of Android platform on mobile internet | |
CN103827881A (en) | Method and system for dynamic platform security in a device operating system | |
CN103051451A (en) | Encryption authentication of security service execution environment | |
US20090287917A1 (en) | Secure software distribution | |
CN110175466B (en) | Security management method and device for open platform, computer equipment and storage medium | |
CN110795126A (en) | Firmware safety upgrading system | |
CN110414248B (en) | Method for debugging microprocessor and microprocessor | |
CN102833745B (en) | Method, communication equipment and communication system that a kind of software security is upgraded | |
JP6387908B2 (en) | Authentication system | |
CN106384042A (en) | Electronic device and security system | |
EP3001341B1 (en) | NFC device, software installation method, software uninstallation method, computer program and article of manufacture | |
CN102930184A (en) | Functional component loading method and device | |
CN107784206A (en) | Method for protecting software and device and software verification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160511 |
|
RJ01 | Rejection of invention patent application after publication |