CN106899703A - A kind of IP address modification method and device - Google Patents
A kind of IP address modification method and device Download PDFInfo
- Publication number
- CN106899703A CN106899703A CN201510958936.XA CN201510958936A CN106899703A CN 106899703 A CN106899703 A CN 106899703A CN 201510958936 A CN201510958936 A CN 201510958936A CN 106899703 A CN106899703 A CN 106899703A
- Authority
- CN
- China
- Prior art keywords
- address
- ready
- access request
- client
- real
- 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.)
- Granted
Links
- 238000002715 modification method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 43
- 230000000977 initiatory effect Effects 0.000 claims abstract description 29
- 230000005540 biological transmission Effects 0.000 claims abstract description 12
- 238000012546 transfer Methods 0.000 claims description 72
- 230000008439 repair process Effects 0.000 claims description 4
- 230000009467 reduction Effects 0.000 abstract description 4
- 230000008859 change Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 238000012795 verification Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010009 beating Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 238000004321 preservation Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000000205 computational method Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000002073 mitogenetic effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5053—Lease time; Renewal aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a kind of IP address modification method and device.Methods described includes:In a client access server, the first IP address of the access request that correspondence is sent by the client is obtained;First IP address is obtained by access request by normal routing path;By the nearest content delivery network service device of the client of the distance initiation access request, IP address is got in acquisition ready;The IP address of getting ready gets request acquisition ready according to the access request from the client to the transmission of content distributing network server;Matching primitives are carried out to the IP address and first IP address got ready, the real IP address of the access request is corrected.Achieving can be modified to the first IP address for obtaining, and revised IP address is more agreed with region where the client for initiating access request, and the probability that reduction is deducted fees by mistake reduces the expenses of advertisement putting person.
Description
Technical field
The present invention relates to software technology field, more particularly to a kind of IP address modification method and a kind of IP
Address correction device.
Background technology
With the fast development of communication network in recent years, weight is had become by Web Publishing relevant information
The information published method wanted.Operation platform can provide corresponding network clothes for the issue of the network information
Business, by obtaining the IP address of the user for accessing the network information, to count the click of map network resource
Quantity, and publisher to the network information collects corresponding expense.
Under normal circumstances, by taking advertising platform as an example, the network information is that a point region is issued to operation platform
, for example, advertisement putting person delivers certain web advertisement in Shanghai, the only user in Shanghai accesses and is somebody's turn to do
The web advertisement, advertising platform could access for this time and advertisement is taken off from the account of the advertisement putting person
Dispensing expense.The user of other regions, such as Beijing user, when accessing the web advertisement, advertising platform
It is that can not take off advertisement putting expense in the account of the advertisement putting person, otherwise, this is deducted fees, and violates
The advertisement putting purpose of advertisement putting person, extra button has gone its expense.
But, in actual applications, due to the web advertisement that advertising platform is delivered in web server
May by the internal transfers of other ISP (Internet Service Provider, ISP),
When the web advertisement is clicked on by the ISP, the route of user's correspondence client just there occurs change to so user
Change, then the first IP address that web server is obtained from the access request by transfer is exactly nearest one
The IP address of the ISP of individual transfer, rather than the IP address of client.If now according to the IP address
Go to deduct fees this click, then there may be button by mistake.In such as previous example, advertisement putting person
The web advertisement in Shanghai is delivered, and the client for initiating access request was Pekinese originally, by ISP
Transfer, nearest ISP is Pekinese's IP address, then what web server was obtained from access request
First IP address is exactly Pekinese's IP address, and now advertising platform then thinks that this access is that Pekinese is visited
Ask, therefore it can be deducted fees, so as to produce deduct fees by mistake, the expense for causing advertisement putting person is damaged
Lose.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least portion to provide one kind
The IP address modification method and corresponding IP address correcting device for solving the above problems with dividing.
According to one aspect of the present invention, there is provided a kind of IP address modification method, including:
In a client access server, the access request that correspondence is sent by the client is obtained
First IP address;First IP address is obtained by access request by normal routing path;
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take and get IP address ready;The IP address of getting ready is divided according to the access request from the client to content
The hair webserver sends gets request acquisition ready;
Matching primitives are carried out to the IP address and first IP address got ready, correcting the access please
The real IP address asked.
Preferably, it is described in a client access server, obtain what correspondence was sent by the client
The step of first IP address of access request, includes:
From the access request for receiving, obtain the first IP address and overall identification and recorded;Institute
State overall identification and write the access request when access request is sent by client.
Preferably, the nearest content distributing network of the client by the distance initiation access request
Server, obtains the step of getting IP address ready, including:
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take getting IP address and overall identification ready and being recorded for the access request.
Preferably, it is described that matching primitives are carried out to the IP address and first IP address got ready, repair
The step of real IP address of just described access request, including:
Search and respectively get IP address and each first IP address ready under same overall identification;
Matching primitives are carried out to the IP address and the first IP address got ready, the first IP address correspondence is judged
Access request whether there is transfer;
If there is transfer in the corresponding access request of first IP address, according to getting IP address ready,
Correct the real IP address of the access request.
Preferably, it is described that matching primitives are carried out to the IP address and the first IP address got ready, judge
The step of whether corresponding access request of one IP address there is transfer, including:
Judge each first IP address under the overall identification and whether respectively get IP address ready identical;
If each first IP address under the overall identification with respectively get IP address ready and differ, it is determined that
There is transfer in the corresponding access request of the first IP address.
Preferably, the basis gets IP address ready, corrects the step of the real IP address of the access request
Suddenly, including:
Judgement is respectively got ready in IP address, and whether the same number for getting IP address ready exceedes threshold value;
If in respectively getting IP address ready, the same number for getting IP address ready exceedes threshold value, then exceeding
Threshold value gets real IP address of the IP address as the access request ready.
Preferably, it is described that matching primitives are carried out to the IP address and the first IP address got ready, judge
The step of whether corresponding access request of one IP address there is transfer, including:
Whether part is different from IP address is respectively got ready to judge each first IP address under the overall identification;
If each first IP address under the overall identification is different from IP address part is respectively got ready, really
There is transfer in the access request in fixed first IP address corresponding to the part different from IP address is respectively got ready.
Preferably, the basis gets IP address ready, corrects the step of the real IP address of the access request
Suddenly, including:
For the access request corresponding to part different from IP address is respectively got ready in the first IP address, repair
The real IP address of just described access request be in the first IP address with respectively get IP address same section ready
IP address.
Preferably, matching primitives are carried out to the IP and first IP address of getting ready described, is corrected
After the step of real IP address of the access request, also include:
For the access request that have modified after real IP address, according to real IP address, retrieval and/or
Deliver the web advertisement data based on real IP address.
Preferably, matching primitives are carried out to the IP and first IP address of getting ready described, is corrected
After the step of real IP address of the access request, also include:
For the access request that have modified after real IP address, according to real IP address, recommend with it is described
The corresponding customized information of real IP address.
According to another aspect of the present invention, there is provided a kind of IP address correcting device, including:
First IP address acquisition module, is suitable to, in a client access server, obtain correspondence by institute
State the first IP address of the access request of client transmission;First IP address is passed through by access request
Normal routing path is obtained;
Get IP address acquisition module ready, be suitable to nearest by the client of the distance initiation access request
Content delivery network service device, acquisition get IP address ready;The IP address of getting ready is by the client
Sent to content distributing network server according to the access request and get request acquisition ready;
Real IP address correcting module, is suitable to carry out the IP address and first IP address got ready
Matching primitives, correct the real IP address of the access request.
Preferably, the first IP address acquisition module includes:
First IP address acquisition submodule, is suitable to from the access request for receiving, and obtains IP ground
Location and overall identification are simultaneously recorded;The overall identification is write by client when access request is sent
In the access request.
Preferably, the IP address acquisition module of getting ready includes:
Get IP address acquisition submodule ready, be suitable to by the client apart from the initiation access request most
Near content delivery network service device, obtain the access request gets IP address and overall identification ready simultaneously
Recorded.
Preferably, the IP address acquisition module of getting ready includes:
Get IP address acquisition submodule ready, be suitable to by the client apart from the initiation access request most
Near content delivery network service device, obtain the access request gets IP address and overall identification ready simultaneously
Recorded.
Preferably, the access request judging submodule includes:
First IP address with get IP address judging submodule ready, be suitable to judge each under the overall identification
Whether first IP address is with respectively to get IP address ready identical;
Rotor module in access request, each first IP address being suitable under the overall identification is beaten with each
When point IP address is differed, it is determined that the corresponding access request of the first IP address occurs transfer.
Preferably, the real IP address amendment submodule includes:
Get IP address number judging submodule ready, it is same to get ready in being suitable to judge respectively to get IP address ready
Whether the number of IP address exceedes threshold value;
Real IP address replaces submodule, is suitable in respectively IP address is got ready, same to get IP address ready
Number exceed threshold value when, to get IP address as the real IP of the access request ready more than threshold value
Address.
Preferably, the access request transfer judging submodule includes:
The IP address of part first with get IP address judging submodule ready, under being suitable to judge the overall identification
Each first IP address from respectively get ready IP address whether part it is different;
Rotor module in the access request of part, be suitable to each first IP address under the overall identification with
When respectively getting IP address part difference ready, it is determined that the portion different from IP address is respectively got ready in the first IP address
There is transfer in the access request corresponding to point.
Preferably, the real IP address amendment submodule includes:
Part real IP address amendment submodule, be suitable to in the first IP address with respectively get IP address ready
Access request corresponding to different parts, the real IP address for correcting the access request is an IP
With the IP address for respectively getting IP address same section ready in address.
Preferably, after the real IP address correcting module, also include:
Retrieval putting module, is suitable to for have modified the access request after real IP address, according to true
IP address, the web advertisement data of retrieval and/or dispensing based on real IP address.
Preferably, after the real IP address correcting module, also include:
Recommendation of personalized information module, is suitable to for have modified the access request after real IP address, root
According to real IP address, recommend customized information corresponding with the real IP address.
According to another aspect of the present invention, a kind of IP address corrective is also disclosed, including:
Memory, is loaded with a plurality of executable instruction;
Processor, performs a plurality of executable instruction;The a plurality of instruction includes performing following steps
Method:
In a client access server, the access request that correspondence is sent by the client is obtained
First IP address;First IP address is obtained by access request by normal routing path;
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take and get IP address ready;The IP address of getting ready is divided according to the access request from the client to content
The hair webserver sends gets request acquisition ready;
Matching primitives are carried out to the IP address and first IP address got ready, correcting the access please
The real IP address asked.
IP address modification method and device disclosed in the embodiment of the present invention, are visited by obtaining correspondence client
The first IP address of request is asked, and obtains the content delivery network service device pair nearest apart from the client
That answers client access request gets IP address ready, by correspondence client access request get ready IP address and
First IP address carries out matching primitives, and then corrects the real IP address for corresponding to access request, solves
In first technology, after the access request of client is by some row ISP transfers, cause obtain first
IP address is inaccurate, is deducted fees by mistake so as to be produced to advertisement putting person, causes advertisement putting person's expense damage
The problem of mistake, achieving can be modified to the first IP address for obtaining, and make revised IP address
Region where the client for initiating access request can more be agreed with, the probability that reduction is deducted fees by mistake is reduced
The expenses of advertisement putting person.
Described above is only the general introduction of technical solution of the present invention, of the invention in order to better understand
Technological means, and being practiced according to the content of specification, and in order to allow it is of the invention above-mentioned and
Other objects, features and advantages can become apparent, below especially exemplified by specific embodiment party of the invention
Formula.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantage and benefit for
Those of ordinary skill in the art will be clear understanding.Accompanying drawing is only used for showing the mesh of preferred embodiment
, and it is not considered as limitation of the present invention.And in whole accompanying drawing, with identical with reference to symbol
Number represent identical part.In the accompanying drawings:
The step of Fig. 1 is a kind of IP address modification method provided in an embodiment of the present invention flow chart;
Figure 1A is a kind of principle framework of IP address modification method provided in an embodiment of the present invention;
The step of Fig. 2 is a kind of IP address modification method provided in an embodiment of the present invention flow chart;
Fig. 3 is a kind of structured flowchart of IP address correcting device provided in an embodiment of the present invention;
Fig. 4 is a kind of structured flowchart of IP address correcting device provided in an embodiment of the present invention;And
Fig. 5 is a kind of structured flowchart of IP address corrective provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing in accompanying drawing
The exemplary embodiment of the disclosure is shown, it being understood, however, that may be realized in various forms the disclosure
Without that should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more
Thoroughly understand the disclosure, and can be by the complete technology for conveying to this area of the scope of the present disclosure
Personnel.
Embodiment one
Reference picture 1, shows a kind of IP address modification method embodiment according to an embodiment of the invention
The step of flow chart, specifically may include steps of:
Step S110:In a client access server, obtain what correspondence was sent by the client
First IP address of access request;First IP address is obtained by access request by normal routing path
.
The embodiment of the present invention can apply to the IP for client access request of web server acquisition
Address is modified.
First IP address is the web clothes when web server receives the access request of client transmission
Business device gets the corresponding IP address of client access request.Client is sending visit to web server
Before asking request.Can be serviced according to local dns (Domain Name System, domain name system)
Device obtains the IP address of the web server, and the IP address of foundation web server sends out access request
Deliver to the web server.
The web advertisement that Advertisement Server is delivered in web server may be by other ISP (nternet
Service Provider, ISP) internal transfer, then in client to web server
May then cause that the client route of the access initiated becomes during sending access request
Change, and then cause the client access request to change therewith.It is this hair for example, referring to Figure 1A
A kind of principle Organization Chart of IP address modification method that bright embodiment is provided, client access request it is true
Real IP address is IP-1, after client access request is by transfer, it is possible to change, such as
There occurs n times transfer in Figure 1A, so web server get corresponding to client access request
The first IP address be ISPN IP address IP-N.Send to access to web server in client and ask
During asking, it is possible that once or multiple transfer, and then cause that web server is obtained
The first IP address corresponding to client access request it is inaccurate.Web server will be obtained most
The whole IP address corresponding to client access request as the client access request IP ground
Location.
Web server can be according to the first IP address of client and client access request, to client
End returns to the data corresponding to client access request, and will correspond to the first of client access request
IP address is transmitted to Advertisement Server, to be recorded and be counted, so as to be sent out in obtaining web server
The click volume of each web advertisement of cloth, and to publisher's corresponding expense of deduction of each network information.
Step S120:By the nearest content distributing network of the client of the distance initiation access request
IP address is got in server, acquisition ready;The IP address of getting ready please according to the access by the client
Ask to be sent to content distributing network server and get request acquisition ready.
, when the access request of client is received, Web server can be according to client for web server
First IP address of access request is issued gets notice ready to client, and client gets notice ready receiving
Afterwards, the geographical position CDN server nearest apart from the client is obtained by dns server
The IP address of (Content Delivery Network, content distributing network), and according to CDN service
The IP address of device, sends to CDN server and gets request ready corresponding to client access request.
CDN server receive corresponding to client access request get ready request after, it is possible to
The IP address corresponding to client access request is got, the IP address is and is accessed corresponding to client
Request get IP address ready, this get ready IP address be from client according to access request to CDN service
Device is obtained by sending when getting request ready.
Correspondingly, the CDN server nearest apart from client get corresponding to client access please
Ask get IP address ready after, can by correspond to client access request get ready IP address send to
Advertisement Server, to cause that Advertisement Server is remembered to the IP address of getting ready of each client access request
Record and preservation.
In actual applications, one can be set between CDN server and Advertisement Server and gets receipts ready
Collection server, get collection server reception CDN server transmission ready gets IP address ready, then sends out again
Give Advertisement Server.Reference picture 1A, gets the correspondence for collecting server to acquisition in CDN server ready
It is collected in the IP address of getting ready of client access request, and the IP address of collection is sent to advertisement
In server.
In embodiments of the present invention, client sends HTTPS (Hyper Text Transfer Protocol
Over Secure Socket Layer, Hyper text transfer security protocol) get ready request to CDN service
Device, local CDN server is solved by deploying after HTTPS services to HTTPS request
Analysis, and then IP address is got in acquisition ready.And needed to HTTPS for third-party CDN server
Before request is parsed, authentication is delivered into the encryption unit distribution got ready in request of the HTTPS
Authentication is carried out in server, after Authentication server is verified, then CDN server is allowed
Parse this and get request ready, so as to obtain get IP address ready.
Preferably, step S120 includes:
Sub-step A11, content delivery network service device is received described in the correspondence initiated as the client
Access request gets request ready, and by Authentication server to it is described get request ready and carry out identity test
Card.
, when the access request of client is received, Web server can be according to client for web server
First IP address of access request is issued gets notice ready to client, and client gets notice ready receiving
Afterwards, the CDN server (Content nearest apart from the client is obtained by dns server
Delivery Network, content distributing network) IP address, and according to CDN server IP ground
Location, sends to CDN server and gets request ready corresponding to client access request.
CDN server receive corresponding to client access request get ready request after, it is possible to
The IP address corresponding to client access request is got, the IP address is and is accessed corresponding to client
That asks gets IP address ready.
In actual applications, ask to be the HTTPS according to web server demand because this is got ready
(Hyper Text Transfer Protocol over Secure Socket Layer, Hyper text transfer is assisted safely
View) request form transmission, being disposed in local CDN server can be to HTTPS after HTTPS is serviced
Request is parsed, and then IP address is got in acquisition ready.
Other, needed before being parsed to HTTPS request for third-party CDN server,
It needs the encryption unit distribution got ready in request of the HTTPS to deliver to web server in same
The Authentication server of side gets request ready for the visitor carries out authentication, to client access request
Authenticity verified, and ensure to get ready security of the data in request in transmitting procedure, make
CDN server can normally read the information got ready in request, at present, conventional auth method
Can include:Authentication based on shared key, the authentication based on public key encryption algorithm
Etc., in actual applications, those skilled in the art can go to select rational body according to actual needs
Part verification method, the present invention is not any limitation as to this.
After Authentication server gets client being verified of request ready, to apart from the client
The nearest CDN server in end sends gets the result that request authentication passes through ready for client.
Preferably, the sub-step A11 can include:
Sub-step A111:Content delivery network service device is being received by client initiation correspondence institute
State access request HTTPS get ready request after, by the HTTPS get ready request in authentication letter
Breath is transmitted to Authentication server.
In the embodiment of the present invention, correspondence access request is got request ready and can be included:HTTPS
(Hypertext Transfer Protocol over Secure Socket Layer) gets request ready, and HTTPS can
For the operation being compressed to data and decompress, an information security passage is being provided, it is ensured that number
While according to transmission security, the authenticity of the corresponding client of access request is can also confirm that.
HTTPS get ready request from client to CDN server transmit before, it is necessary to client with
CDN server is once shaken hands, to establish the encrypted message of both sides' encrypted transmission data.
Received corresponding to client access request in the CDN server nearest apart from client
HTTPS is got ready after request, can be got the HTTPS ready authentication informations in request and is transmitted to
Authentication server carries out the checking of identity information to get request ready to HTTPS.
Preferably, the sub-step A111 can include:
Sub-step A1111:Content delivery network service device is receiving what is initiated by the client
After HTTPS gets request ready, get the HTTPS ready client certificates in request and added using public key
Close data forwarding is to Authentication server.
In the embodiment of the present invention, HTTPS can include in getting request ready:Client certificate and use are public
The data of key encryption, the client certificate can be used for verifying the authenticity of client, using public key plus
Close data are meant to ensure that HTTPS gets security of the request in transmitting procedure ready.
In actual applications, after HTTPS request is sent to CDN server by client, CDN clothes
The HTTPS request of the mitogenetic Cheng Xin of encryption unit therein is transmitted to Authentication server, identity by business device
Encryption part in the authentication server HTTPS request new to this is carried out.
Accordingly, can include with the detailed process shaken hands of third party's CDN server for client
Following steps:
Step S1:Client sends connection request to CDN server;The connection request includes client
The information such as certificate;
Step S2:The information such as the certificate in connection request are transmitted to authentication service by CDN server
Device;
Step S3:Authentication server is verified to information such as client certificates;If checking is logical
Cross, and the identity information of Authentication server is returned into CDN server in the form of certificate, should
Certificate can include:Issuing organization of station address, encrypted public key and certificate etc.;If tested
Card does not pass through, then return to the information of authentication failed;
Step S4:If CDN server receives the information of authentication failed, the company of rejection client
Connect;If CDN server receives the information such as certificate, the certificate is returned into client;So
CDN server establishes escape way, i.e. SSL (Secure Sockets Layer condoms with client
Connect layer) protocol channel;
Step S5:Client receive CDN server transmission certificate after, the conjunction to the certificate
Method is verified, when the certificate is legal, client can produce a string of passwords of random number, and adopt
The information and client certificate got ready HTTPS with the encrypted public key in certificate in request are added
It is close;
Step S6:Client gets the HTTPS of encryption ready requests and is sent to CDN server;
Step S7:HTTPS after the encryption that CDN server will be received gets the client in request ready
Certificate and the data using public key encryption, generate new HTTPS request and are transmitted to authentication service
Device;
Step S8;The new HTTPS request that Authentication server sends to CDN, therefrom extracts
Client certificate and verified using the data of public key encryption, the result is then returned into CDN
Server.
For example, referring to Figure 1A, the Authentication server in figure is the identity in the embodiment of the present invention
Authentication server, Authentication server receives the HTTPS after the encryption sent from CDN server
Get the client certificate in request and the data using public key encryption ready, Authentication server is to the visitor
The legitimacy of family end certificate is verified, and when legal, the data to public key encryption are decrypted.
Sub-step A112:The identity that the Authentication server is got ready the HTTPS in request is tested
Card information is verified;If the verification passes, then HTTPS described in content of announcement Distributor gets ready
Requests verification passes through.
Authentication server HTTPS is got ready request in authentication information be verified when,
Then the notice CDN server HTTPS gets being verified for request ready, otherwise notifies CDN server
The HTTPS gets requests verification ready and does not pass through.
Preferably, the sub-step A112 can include:
Sub-step A1121:Authentication server is according to the server certificate and certificate being locally stored
In private key, judge whether client certificate legal, and whether can be to the use public key encryption
Data be decrypted.
In the embodiment of the present invention, Authentication server is beaten in the HTTPS for receiving CDN server transmission
After the authentication information of point request, can be demonstrate,proved according to the server stored in Authentication server
Book is verified to the legitimacy of the client certificate in authentication information, and according to server certificate
In private key test whether the data of the use public key encryption in authentication information can decrypt
Card.
Authentication information checking completion of the Authentication server in request is got HTTPS ready
Afterwards, then the result is returned to CDN server.
Sub-step A113:If content distributing server is received by testing that Authentication server is returned
The result that passes through of card, then from it is described get ready extract the correspondence access request in request get IP address ready
And it is sent to Advertisement Server.
The correspondence for receiving Authentication server return in CDN server gets the authentication of request ready
After the result for passing through, CDN server can be corresponding to getting request ready according to local dns server
Client carries out domain name mapping, IP address is got ready with obtain client, and the client gets IP ground ready
Location is the IP address of getting ready corresponding to client access request, and beating the client access request
Point IP address is sent to Advertisement Server to be counted.
Step S130:Matching primitives are carried out to the IP address and first IP address got ready, is corrected
The real IP address of the access request.
In the embodiment of the present invention, Advertisement Server is receiving beating corresponding to the client access request
After point IP address and the first IP address, IP address can will be got ready corresponding to the client access request
Use certain computational methods to determine whether client access request occurs transfer with the first IP address,
Then corrected accordingly in the event of change, shown in reference picture 1A, can be set in Advertisement Server
Be equipped with corresponding amendment service, with determine corresponding to client access request the first IP address whether be
The real IP address of client access request.For example, each IP that client access request will be corresponded to
Address and respectively get IP address ready and be compared, whether to determine respectively to get ready IP address and each first IP address
Identical, if the same not there is transfer in the client access request, if correspondence client is accessed
First IP address of request is differed with corresponding IP address of getting ready, then during the access request there occurs
Turn, the first IP address of the corresponding client access request that will be stored in web server is carried out accordingly
Amendment.
Will be described in detail in embodiment two for specific matching primitives mode, herein no longer
Described in detail.
In the embodiment of the present invention, carried out by the IP address of the corresponding client access request that will be got
After corresponding amendment, you can obtain the real IP address of correspondence client access request, it is to avoid
The corresponding client access request stored in server change after IP address problem, can make
Server is obtained to obtain and client region more Match IP Address.
Preferably, after the step S130, can also include:
Step S140:For the access request that have modified after real IP address, according to real IP address,
The web advertisement data of retrieval and/or dispensing based on real IP address.
In the embodiment of the present invention, the true of correspondence client access request is have modified in Advertisement Server
After IP address, web server can be based on the network issued in real IP address retrieval ad system
Ad data, and it is wide to deliver the network based on the real IP address to the corresponding client of real IP address
Accuse data.
Accordingly, after the real IP address of correspondence client access request is have modified in Advertisement Server,
Can be according to account of the issue corresponding to the publisher of the web advertisement of client access request in ad system
In family, corresponding expense, corresponding to the web advertisement of the issue of different zones, its expenses standard are deducted
It is different.Such as, advertisement putting person A is being accessed for region A is delivered in the user of certain region A
The web advertisement when, corresponding expense can be just produced to the advertisement putting person of web advertisement A, it is wide from this
The expense of this access is taken off in the advertising accounts for accusing putting person A, and the user of other regions is accessing
Expense will not be produced after the web advertisement that delivered for region A by advertisement putting person A.For example, wide
Putting person A is accused for Beijing user delivers web advertisement A, the user in Shanghai accesses and delivers in Pekinese
That the advertisement putting person of web advertisement A can not be produced to deduct fees during web advertisement A, i.e., can not be
The expense of this access is deducted in the advertising accounts of advertisement putting person A.
The embodiment of the present invention is real IP address by correcting the first IP address of correspondence access request, so
Afterwards i.e. can be according to the real IP address, to corresponding access request, in the advertisement account of advertisement putting person
Deducted fees with real IP address in family.The real IP address of a such as access request is Shanghai,
And it is the web advertisement that advertisement putting person A is delivered in Beijing that the access request is accessed, then then advertisement
Server to this access, does not deduct taking for advertisement putting in the advertising accounts of advertisement putting person A
With.Therefore can avoid producing the advertisement putting person of the web advertisement and deduct fees by mistake, reduce the web advertisement
The expenses of putting person.
Preferably, after the step S130, can also include:
Step S150:For the access request that have modified after real IP address, according to real IP address,
Recommend customized information corresponding with the real IP address.
In the embodiment of the present invention, after the real IP address that have modified correspondence access request, can be to this
The corresponding client of real IP address recommends issue in the network information of the region where the client, example
Such as, the region where the corresponding client of the real IP address of access request is Shanghai, can be to the visitor
Recommend issue in the web advertisement in Shanghai etc. in family end.And then can be provided with the maximized utilization network information
Source, improves the popularization of the network information.Certainly, the customized information may also include and real IP address institute
The related information in possession domain, such as the news information of the region, information etc. of renting a house.
The embodiment of the present invention sends an IP of correspondence access request by obtaining a user end to server
Address, and the content delivery network service device nearest apart from the client is beaten client access request
Point IP address, matching meter is carried out by get ready the IP address and the first IP address of correspondence client access request
Calculate, achieving can be modified to the first IP address for obtaining, and allow revised IP address more
Agree with region where the client for initiating access request, the probability that reduction is deducted fees by mistake reduces advertisement throwing
The expenses of the person of putting.
Embodiment two
Reference picture 2, shows a kind of IP address modification method embodiment according to an embodiment of the invention
The step of flow chart, specifically may include steps of:
Step S210:From the access request for receiving, obtain the first IP address and overall identification is gone forward side by side
Row record;During the overall identification writes the access request by client when access request is sent.
In the embodiment of the present invention, overall identification can be the whole process sent in client access request
The middle unique mark for identifying the client access request, different clients are to that should have different global marks
Know, during the entire process of client sends access request acquisition access request corresponding data, overall situation mark
Knowledge is to be associated binding with client access request, and then is obtaining the access request of client
When, overall identification can be carried out corresponding preservation with the IP address of corresponding client access request, with
When subsequently judging the corresponding IP address of client access request, directly searched according to overall identification
To the first IP address of access request correspondence client access request.
Overall identification be before access request is sent to client, in having been written into the access request,
And then follow access request to send together to web server.
In actual applications, it is its point when the overall identification is user first time access web server
The overall identification matched somebody with somebody.When such as user accesses web server with its ID, web server is it
One unique overall identification of distribution.If certain user accesses web server with visitor's identity,
The hardware informations such as the facility information of the client of the user, such as physical address can be then obtained, this is hard
Part information is unique, and then web server is that the facility information distributes a unique global mark
Know.
Step S220:By the nearest content distributing network of the client of the distance initiation access request
Server, obtains getting IP address and overall identification ready and being recorded for the access request.
In the embodiment of the present invention, web server, can be according to right when client access request is received
Should be issued to client in the first IP address of client access request and get notice ready, to notify client
Got ready in the CDN server nearest apart from client.The local dns server of client can be by
The access request of client navigates to the CDN server nearest apart from client, and the wherein client is beaten
Can include in point request:Overall identification, the overall identification is sent to CDN server in client
Get ready request before be written to get ready request in, with get ready request together send to CDN server.
CDN server is got ready according to the request of getting ready of client in the CDN server row, and obtains
Take this and get the IP address for asking corresponding client access request ready, the IP address is corresponding to client
That holds access request gets IP address ready.Accordingly, CDN server can by should client it is complete
Office's mark and to should the IP address of getting ready of client access request bind, and send to getting receipts ready
Collection server, getting collection server ready can get IP ready by what is collected corresponding to client access request
Address is sent to Advertisement Server to be counted and be recorded.
So as to when the overall identification of correspondence certain client is got, it is possible to get to should
All access requests correspondence of client gets IP address ready.
Step S230:Search and respectively get IP address and each first IP address ready under same overall identification.
In the embodiment of the present invention, Advertisement Server can be according to overall identification and client access request
Binding relationship, when the overall identification corresponding to client access request is got, you can search and obtain
Get under same overall identification corresponding to client access request each get ready IP address and each
First IP address.
Step S240:Matching primitives are carried out to the IP address and the first IP address got ready, first is judged
Whether the corresponding access request of IP address there is transfer.
Advertisement Server being beaten corresponding to each of client access request in the case where same overall identification is got
After point IP address and each first IP address, IP address and the are got ready by correspond to client access request
One IP address is calculated according to calculation set in advance, to judge the corresponding visit of the first IP address
Ask whether request occurs transfer, when the corresponding access request of the first IP address occurs transfer, perform step
Rapid S250.
Preferably, the step S240 can include:
Sub-step S2402:Judge each first IP address under the overall identification and respectively get IP address ready
It is whether identical, if each first IP address under all marks with respectively get IP address ready and differ,
Then perform sub-step S2404;
Sub-step S2404:Determine that the corresponding access request of the first IP address occurs transfer.
The embodiment of the present invention can apply to judge whether the access request of corresponding each client is all sent out
The situation of raw transfer.
Each client in correspondence is obtained according to the overall identification for corresponding to each client access request to access
Request each first IP address and respectively get IP address ready, and then according to overall identification will correspondence certain client
Hold each first IP address of access request and respectively get IP address ready and matched accordingly, for example, for
Customer end A, can correspond to according to the overall identification of the access request corresponding to customer end A, acquisition
First IP address of the access request of customer end A and get IP address ready.And then judgement matches each first
IP address whether with respectively to get IP address ready identical, when each first IP address of matching with respectively get IP ground ready
When location differs, it is determined that during the access request of the corresponding client of each first IP address there occurs
Turn;When each first IP address of matching is identical with IP address is respectively got ready, it is determined that the first IP address pair
Not there is transfer in the access request of the client answered.For example, for the access of certain customer end A
Request, acquisition to should first IP address of each access request of customer end A have IP2, IP3, it is right
Should the IP address of getting ready of access request of customer end A have 2 IP1, then it represents that the visit of customer end A
Ask that request there occurs transfer, otherwise represent that the access request of customer end A does not occur transfer.Again such as,
First IP address of 10 access requests of correspondence customer end A has 10 each IP2, and gets IP address ready
There are 10 IP1, then it is different with the first IP address to get IP address ready, then confirming this 10, access please
Ask transfer.
Certainly, in practical application, it can be determined that get whether IP address belongs to same with the first IP address ready
Region, if belonging to same region, it is considered that during the access request of the first IP address does not occur
Turn;If being not belonging to same region, it is considered that there is transfer in the access request of the first IP address.
The embodiment of the present invention is according to corresponding each first IP address of each client access request and respectively gets IP ready
Whether address is identical, carries out matching judgment one by one, and then judge whether each client access request occurs
The situation of transfer, can be with, and then can as far as possible avoid inaccurate corresponding client in web server
The first IP address of access request is held to exist.
Preferably, the step S240 can also include:
Sub-step S2406:Judge each first IP address under the overall identification and respectively get IP address ready
Whether part is different;If each first IP address under the overall identification with respectively get IP address part ready
Difference, then perform sub-step S2406;
Sub-step S2408:Determine corresponding to different from IP address is respectively got ready parts in the first IP address
Access request occur transfer.
The embodiment of the present invention can apply to correspondence judge in correspondingly each client access request whether part
There occurs the situation of transfer.
The embodiment of the present invention is getting each first IP address of each client access request of correspondence and each is beating
After point IP address, respectively will the different visitors of correspondence according to the overall identification of each client access request of correspondence
Each first IP address of family end access request and respectively get IP address ready and matched one by one, and will match into
Work(get IP address ready and the first IP address is compared, it is corresponding to judge each client access request
First IP address and whether get IP address ready identical, if identical, then it represents which part or whole
There is no transfer in client access request, if it is different, then representing that the client access request there occurs
Transfer.According to the mode of above-mentioned matching judgment, the access request that will be directed to each client corresponding each is beaten
IP address and the first IP address difference matching judgment one by one are put, to judge wherein whether occur in that part
The situation of access request transfer.For example, the corresponding overall identification difference of the access request of customer end A
For:M and N, the first IP address of access request that can obtain correspondence customer end A according to M is
IP1, IP2, IP1 and get IP address IP1, IP1, IP1 ready;By the access request correspondence of customer end A
The first IP address and get IP address ready and be compared, it is known that, the first IP address is the corresponding visitors of IP2
The access request of family end A there occurs transfer.
Accordingly, when whether the access request for each client there is transfer, can be according to upper
Mode is stated according to the corresponding overall identification of each client access request, by each client access request correspondence
The first IP address and respectively get IP address ready and matched one by one and compared, to judge that each client is visited
Ask that the access request of how many number in request there occurs transfer.
It should be understood that when the IP ground of the corresponding client access request preserved in Advertisement Server
The quantity of location than it is larger when, the above method can be used, by access request corresponding IP ground
Location and get IP address ready and matched one by one, and then determine and send out in correspondence certain client access request
The quantity of the access request of raw transfer, and then inaccurate IP address to being preserved in Advertisement Server enters
Row amendment, to reduce the quantity of the inaccurate IP address stored in Advertisement Server.
Each client is accessed and asked by the embodiment of the present invention according to the overall identification of each client access request
Seeking corresponding each first IP address and respectively getting IP address ready carries out the mode of matching judgment, to determine part
Whether access request there occurs the situation of transfer, so can match to certain client access request
Corresponding first IP address makes verification, can save substantial amounts of checking time.
Step S250:According to IP address is got ready, the real IP address of the access request is corrected.
When the corresponding IP address of access request be determined there occurs transfer, can be by web server
Preserve to should access request the first IP address, replace with the access request it is corresponding get ready IP ground
Location, that is, complete the amendment to the IP address that access request occurs.
Preferably, in the case of sub-step S2402- sub-steps S2404, the step S250 can be with
Including:
Sub-step S2502:Judgement is respectively got ready in IP address, and whether the same number for getting IP address ready
More than threshold value;If in respectively getting IP address ready, the same number for getting IP address ready exceedes threshold value, then
Perform sub-step S2504;
Sub-step S2504:To get IP address as the real IP of the access request ready more than threshold value
Address.
The embodiment of the present invention can be used for same beat corresponding to multiple access requests of a certain client
Point IP address is judged.
During client access request sends to the CDN server nearest apart from the client,
It may happen that the phenomenon of client access request transfer, so cause the access request get IP ground ready
Location there occurs change, and then, the access request of the same client of correspondence is nearest apart from the client
The IP address of getting ready that CDN server is obtained is probably different.For example, sent for customer end A visiting
When asking request, the corresponding real IP address of client access request is IP-1, apart from the client
Obtained at nearest CDN server to should client access request get IP address ready it is possible that
IP-1 and IP-2.
In embodiments of the present invention, the access request corresponding to same client corresponding gets IP address ready
It is as same to get IP address ready, there is getting ready IP address not in the access request corresponding to a client
With in the case of, by pre-setting threshold value in the embodiment of the present invention, with judge to should client visit
Ask whether the number of the same IP address of request exceedes the threshold value for pre-setting and judged, wherein
When certain IP address exceedes the threshold value, then using the IP address as the real IP ground of correspondence access request
Location.In embodiments of the present invention how many first IP address just it is corresponding how many get IP address ready.
For example, the threshold value for pre-setting is get IP address sum ready 80%.Such as previous example, web services
Device obtains 200 IP address of IP-N, and gets IP address ready such as:IP-1 has 180, and IP-2 has
15, IP-3 has 5.Advertisement Server determines phase according to sub-step S2402- sub-steps S2404
200 access requests answered are calculated all by transfer, then according to getting IP address ready, and IP-1 is occupied together
Get the 90% of IP address in one ready, then can using IP-1 as to should client access request it is true
IP address.
Accordingly, in actual applications, those skilled in the art can go to set threshold according to actual needs
The size of value, the present invention is not any limitation as to this.
Calculate correspondence client access request it is same get IP address ready and differ when, will be same
It is a kind of get ready exceed threshold value in IP address get real IP of the IP address as the client access request ready
Address.
The embodiment of the present invention gets IP address ready by getting the same of correspondence client access request
The process for being judged, can cause to get correspondence client access request gets IP address ready more
Accurately, so reduce system preservation the inaccurate quantity for getting IP address ready.
Preferably, in the case of sub-step S2406- sub-steps S2408, the step S250 may be used also
To include:
Sub-step S2506:For corresponding to part different from IP address is respectively got ready in the first IP address
Access request, correct the real IP address of the access request in the first IP address with respectively get IP ready
The IP address of address same section.
In the case that the embodiment of the present invention can be used for sending access request for a certain client.Obtaining
Get to should after each first IP address of client access request, by each first IP address with to should
The IP address of respectively getting ready of client access request is compared judgement, wherein, it is phase respectively to get IP address ready
With, in each first IP address with respectively get the IP address of IP address identical first as client ready
The corresponding real IP address of access request, by portion different from IP address is respectively got ready in the first IP address
Point, be modified in the first IP address with the IP address for respectively getting IP address same section ready, as to accessing
The inaccurate IP address of request is corrected.
Such as web server receives 200 access requests, has 100 in corresponding first IP address
Individual IP-1,100 IP-N.And have 200 IP-1 from the IP address of getting ready for getting collection server acquisition ready,
So Advertisement Server determines that 100 access of IP-N please according to sub-step S2406- sub-steps S2408
Ask by transfer, then the first IP address of 100 access requests is modified to IP-1.
The embodiment of the present invention by obtaining the first IP address of correspondence client access request, and obtain away from
Nearest from client content delivery network service device correspondence client access request gets IP ground ready
Location, matching primitives are carried out by get ready the IP address and the first IP address of correspondence client access request, and
And, by designing a series of matching primitives method, and then inaccurate IP address can be accomplished
The amendment of limits, the real IP address of amendment correspondence access request, achieve can to obtain the
One IP address is modified, and revised IP address is more agreed with the client for initiating access request
Place region, the probability that reduction is deducted fees by mistake, reduces the expenses of advertisement putting person.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of action group
Close, but those skilled in the art should know, and the embodiment of the present invention is not suitable by described action
The limitation of sequence, because according to the embodiment of the present invention, some steps can using other orders or simultaneously
Carry out.Secondly, those skilled in the art should also know, embodiment described in this description belongs to
Necessary to preferred embodiment, the involved action not necessarily embodiment of the present invention.
Embodiment three
Reference picture 3, shows a kind of IP address correcting device embodiment according to an embodiment of the invention
Structured flowchart, can specifically include such as lower module:
First IP address acquisition module 310, is suitable in a client access server, obtain correspondence by
First IP address of the access request that the client sends;First IP address is led to by access request
Cross normal routing path acquisition.
Get IP address acquisition module 320 ready, be suitable to by the client apart from the initiation access request most
IP address is got near content delivery network service device, acquisition ready;The IP address of getting ready is by the client
End sends to content distributing network server according to the access request and gets request acquisition ready.
Real IP address correcting module 330, is suitable to get IP address and first IP address ready to described
Matching primitives are carried out, the real IP address of the access request is corrected.
Preferably, after the real IP address correcting module 330, also include:
Retrieval putting module 340, is suitable to for have modified the access request after real IP address, according to true
Real IP address, the web advertisement data of retrieval and/or dispensing based on real IP address.
Preferably, after the real IP address correcting module 330, also include:
Recommendation of personalized information module 350, is suitable to for have modified the access request after real IP address,
According to real IP address, recommend customized information corresponding with the real IP address.
Example IV
Reference picture 4, shows a kind of IP address correcting device embodiment according to an embodiment of the invention
Structured flowchart, can specifically include such as lower module:
First IP address acquisition module 410, is suitable in a client access server, obtain correspondence by
First IP address of the access request that the client sends;First IP address is led to by access request
Cross normal routing path acquisition.
Preferably, the first IP address acquisition module 410 includes:
First IP address acquisition submodule 4102, is suitable to from the access request for receiving, and obtains first
IP address and overall identification are simultaneously recorded;The overall identification is by client when access request is sent
In writing the access request.
Get IP address acquisition module 420 ready, be suitable to by the client apart from the initiation access request most
IP address is got near content delivery network service device, acquisition ready;The IP address of getting ready is by the client
End sends to content distributing network server according to the access request and gets request acquisition ready.
Preferably, the IP address acquisition module 420 of getting ready includes:
Get IP address acquisition submodule 4202 ready, be suitable to be initiated by distance the client of the access request
The nearest content delivery network service device in end, obtain the access request gets IP address and global mark ready
Know and recorded.
Real IP address correcting module 430, is suitable to get IP address and first IP address ready to described
Matching primitives are carried out, the real IP address of the access request is corrected.
Preferably, the real IP address correcting module 430 includes:
IP address search submodule 4302, be suitable to search under same overall identification respectively get ready IP address and
Each first IP address;
Access request transfer judging submodule 4304, is suitable to get IP address and the first IP address ready to described
Matching primitives are carried out, judges whether the corresponding access request of the first IP address occurs transfer;
Real IP address amendment submodule 4306, is suitable to access request corresponding in first IP address
During generation transfer, according to IP address is got ready, the real IP address of the access request is corrected.
Preferably, the access request judging submodule 4304 includes:
First IP address with get IP address judging submodule 43042 ready, be suitable to judge the overall identification
Under each first IP address with whether respectively get IP address ready identical;
Rotor module 43044 in access request, be suitable to each first IP address under the overall identification with
When respectively getting IP address ready and differing, it is determined that the corresponding access request of the first IP address occurs transfer.
The real IP address amendment submodule 4306 includes:
Get IP address number judging submodule 43062 ready, it is same in being suitable to judge respectively to get IP address ready
Whether the number for getting IP address ready is planted more than threshold value;
Real IP address replaces submodule 43064, is suitable in respectively IP address is got ready, same to get ready
When the number of IP address exceedes threshold value, to get IP address as the access request ready more than threshold value
Real IP address.
Preferably, the access request transfer judging submodule 4304 includes:
The IP address of part first with get IP address judging submodule 43046 ready, be suitable to judge the overall situation
Whether part is different from IP address is respectively got ready for each first IP address under mark;
Rotor module 43048 in the access request of part, is suitable to each IP ground under the overall identification
When location is different from IP address part is respectively got ready, it is determined that from respectively to get IP address ready different in the first IP address
Part corresponding to access request occur transfer.
Preferably, the real IP address amendment submodule 4306 includes:
Part real IP address amendment submodule 43066, be suitable to in the first IP address with respectively get ready
Access request corresponding to the different part of IP address, the real IP address for correcting the access request is
With the IP address for respectively getting IP address same section ready in first IP address.
For device embodiment, because it is substantially similar to embodiment of the method, so the ratio of description
Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
Embodiment five
Reference picture 5, shows that a kind of IP address corrective according to an embodiment of the invention 500 is real
The structured flowchart of example is applied, can specifically be included:
Memory 510, is loaded with a plurality of executable instruction;
Processor 520, performs a plurality of executable instruction;The a plurality of instruction includes performing following step
Rapid method:
In a client access server, the access request that correspondence is sent by the client is obtained
First IP address;First IP address is obtained by access request by normal routing path;
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take and get IP address ready;The IP address of getting ready is divided according to the access request from the client to content
The hair webserver sends gets request acquisition ready;
Matching primitives are carried out to the IP address and first IP address got ready, correcting the access please
The real IP address asked.
Preferably, a plurality of executable instruction of the embodiment of the present invention may also include the side of foregoing each step
Method, the embodiment of the present invention is not limited to it.
Provided herein algorithm and display not with any certain computer, virtual system or miscellaneous equipment
It is intrinsic related.Various general-purpose systems can also be used together with based on teaching in this.According to above
Description, the structure constructed required by this kind of system is obvious.Additionally, the present invention is not also directed to
Any certain programmed language.It is understood that, it is possible to use various programming languages realize described here
The content of invention, and the description done to language-specific above is to disclose optimal reality of the invention
Apply mode.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that
Embodiments of the invention can be put into practice in the case of without these details.In some instances,
Known method, structure and technology is not been shown in detail, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and helping understand in each inventive aspect one
Individual or multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention
Sometimes it is grouped together into single embodiment, figure or descriptions thereof.However, should be by
The method of the disclosure is construed to reflect following intention:I.e. the present invention for required protection requirement ratio is at each
The more features of feature being expressly recited in claim.More precisely, as following right will
As asking book to reflect, inventive aspect is all spies less than single embodiment disclosed above
Levy.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment party
Formula, wherein each claim are in itself as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out to the module in the equipment in embodiment
Adaptively change and they are arranged in one or more equipment different from the embodiment.
Module or unit or component in embodiment can be combined into a module or unit or component, and
In addition multiple submodule or subelement or sub-component can be divided into.Except such feature and/or
Outside at least some in process or unit exclude each other, can be using any combinations to this explanation
All features disclosed in book (including adjoint claim, summary and accompanying drawing) and so disclosed
All processes or unit of any method or equipment are combined.Unless expressly stated otherwise, this theory
Each feature disclosed in bright book (including adjoint claim, summary and accompanying drawing) can be by offer phase
The alternative features of same, equivalent or similar purpose replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include
Some included features are rather than further feature, but the feature of different embodiments in other embodiments
Combination mean to be within the scope of the present invention and formed different embodiments.For example, under
In the claims in face, the one of any of embodiment required for protection can be in any combination
Mode is used.
All parts embodiment of the invention can realize with hardware, or with one or more
The software module run on reason device is realized, or is realized with combinations thereof.Those skilled in the art
It should be appreciated that can be realized using microprocessor or digital signal processor (DSP) in practice
Some or all parts in IP address corrective according to embodiments of the present invention some or it is complete
Portion's function.The present invention is also implemented as the part or complete for performing method as described herein
The equipment or program of device (for example, computer program and computer program product) in portion.Such reality
Existing program of the invention can be stored on a computer-readable medium, or can be with one or many
The form of individual signal.Such signal can be downloaded from internet website and obtained, or in carrier letter
There is provided on number, or provided in any other form.
It should be noted that above-described embodiment the present invention will be described is limited rather than to the present invention
Make, and those skilled in the art can design without departing from the scope of the appended claims
Alternative embodiment.In the claims, any reference symbol being located between bracket should not be configured to
Limitations on claims.Word "comprising" do not exclude the presence of element not listed in the claims or
Step.Word "a" or "an" before element does not exclude the presence of unit as multiple
Part.The present invention can be by means of the hardware for including some different elements and by means of properly programmed
Computer is realized.If some in these devices in the unit claim for listing equipment for drying
Individual can be embodied by same hardware branch.Word first, second, and third
Using not indicating that any order.These words can be construed to title.
The invention discloses A1, a kind of IP address modification method, including:
In a client access server, the access request that correspondence is sent by the client is obtained
First IP address;First IP address is obtained by access request by normal routing path;
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take and get IP address ready;The IP address of getting ready is divided according to the access request from the client to content
The hair webserver sends gets request acquisition ready;
Matching primitives are carried out to the IP address and first IP address got ready, correcting the access please
The real IP address asked.
A2, the method as described in A1, it is described in a client access server, correspondence is obtained by institute
The step of first IP address of the access request for stating client transmission, includes:
From the access request for receiving, obtain the first IP address and overall identification and recorded;Institute
State overall identification and write the access request when access request is sent by client.
A3, the method as described in A2, the client by the distance initiation access request are nearest
Content delivery network service device, acquisition is the step of get IP address ready, including:
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take getting IP address and overall identification ready and being recorded for the access request.
A4, the method as described in A3, it is described to get IP address ready and first IP address is entered to described
The step of row matching primitives, real IP address of the amendment access request, including:
Search and respectively get IP address and each first IP address ready under same overall identification;
Matching primitives are carried out to the IP address and the first IP address got ready, the first IP address correspondence is judged
Access request whether there is transfer;
If there is transfer in the corresponding access request of first IP address, according to getting IP address ready,
Correct the real IP address of the access request.
A5, the method as described in A4, it is described to get IP address ready and the first IP address is carried out to described
With calculating, the step of whether corresponding access request of the first IP address occurs transfer is judged, including:
Judge each first IP address under the overall identification and whether respectively get IP address ready identical;
If each first IP address under the overall identification with respectively get IP address ready and differ, it is determined that
There is transfer in the corresponding access request of the first IP address.
A6, the method as described in A5, the basis get IP address ready, correct the access request
The step of real IP address, including:
Judgement is respectively got ready in IP address, and whether the same number for getting IP address ready exceedes threshold value;
If in respectively getting IP address ready, the same number for getting IP address ready exceedes threshold value, then exceeding
Threshold value gets real IP address of the IP address as the access request ready.
The method of A7, root as described in A4, it is described that the IP address and the first IP address got ready is carried out
Matching primitives, judge the step of whether corresponding access request of the first IP address occurs transfer, including:
Whether part is different from IP address is respectively got ready to judge each first IP address under the overall identification;
If each first IP address under the overall identification is different from IP address part is respectively got ready, really
There is transfer in the access request in fixed first IP address corresponding to the part different from IP address is respectively got ready.
A8, the method as described in A7, the basis get IP address ready, correct the access request
The step of real IP address, including:
For the access request corresponding to part different from IP address is respectively got ready in the first IP address, repair
The real IP address of just described access request be in the first IP address with respectively get IP address same section ready
IP address.
A9, the method as described in A1, are carried out described to the IP and first IP address of getting ready
After the step of matching primitives, real IP address of the amendment access request, also include:
For the access request that have modified after real IP address, according to real IP address, retrieval and/or
Deliver the web advertisement data based on real IP address.
A10, the method as described in A1, are carried out described to the IP and first IP address of getting ready
After the step of matching primitives, real IP address of the amendment access request, also include:
For the access request that have modified after real IP address, according to real IP address, recommend with it is described
The corresponding customized information of real IP address.
The invention also discloses B11, a kind of IP address correcting device, including:
First IP address acquisition module, is suitable to, in a client access server, obtain correspondence by institute
State the first IP address of the access request of client transmission;First IP address is passed through by access request
Normal routing path is obtained;
Get IP address acquisition module ready, be suitable to nearest by the client of the distance initiation access request
Content delivery network service device, acquisition get IP address ready;The IP address of getting ready is by the client
Sent to content distributing network server according to the access request and get request acquisition ready;
Real IP address correcting module, is suitable to carry out the IP address and first IP address got ready
Matching primitives, correct the real IP address of the access request.
B12, the device as described in B11, the first IP address acquisition module include:
First IP address acquisition submodule, is suitable to from the access request for receiving, and obtains IP ground
Location and overall identification are simultaneously recorded;The overall identification is write by client when access request is sent
In the access request.
B13, the device as described in B12, the IP address acquisition module of getting ready include:
Get IP address acquisition submodule ready, be suitable to by the client apart from the initiation access request most
Near content delivery network service device, obtain the access request gets IP address and overall identification ready simultaneously
Recorded.
B14, the device as described in B13, the real IP address correcting module include:
IP address searches submodule, is suitable to search under same overall identification and respectively gets IP address and Ge ready
One IP address;
Access request transfer judging submodule, is suitable to carry out the IP address and the first IP address got ready
Matching primitives, judge whether the corresponding access request of the first IP address occurs transfer;
Real IP address amendment submodule, is suitable to access request generation corresponding in first IP address
During transfer, according to IP address is got ready, the real IP address of the access request is corrected.
B15, the device as described in B14, the access request judging submodule include:
First IP address with get IP address judging submodule ready, be suitable to judge each under the overall identification
Whether first IP address is with respectively to get IP address ready identical;
Rotor module in access request, each first IP address being suitable under the overall identification is beaten with each
When point IP address is differed, it is determined that the corresponding access request of the first IP address occurs transfer.
B16, the device as described in B15, the real IP address amendment submodule include:
Get IP address number judging submodule ready, it is same to get ready in being suitable to judge respectively to get IP address ready
Whether the number of IP address exceedes threshold value;
Real IP address replaces submodule, is suitable in respectively IP address is got ready, same to get IP address ready
Number exceed threshold value when, to get IP address as the real IP of the access request ready more than threshold value
Address.
B17, the device as described in B14, the access request transfer judging submodule include:
The IP address of part first with get IP address judging submodule ready, under being suitable to judge the overall identification
Each first IP address from respectively get ready IP address whether part it is different;
Rotor module in the access request of part, be suitable to each first IP address under the overall identification with
When respectively getting IP address part difference ready, it is determined that the portion different from IP address is respectively got ready in the first IP address
There is transfer in the access request corresponding to point.
B18, the device as described in B17, the real IP address amendment submodule include:
Part real IP address amendment submodule, be suitable to in the first IP address with respectively get IP address ready
Access request corresponding to different parts, the real IP address for correcting the access request is an IP
With the IP address for respectively getting IP address same section ready in address.
B19, the device as described in B11, after the real IP address correcting module, also include:
Retrieval putting module, is suitable to for have modified the access request after real IP address, according to true
IP address, the web advertisement data of retrieval and/or dispensing based on real IP address.
B20, the device as described in B11, after the real IP address correcting module, also include:
Recommendation of personalized information module, is suitable to for have modified the access request after real IP address, root
According to real IP address, recommend customized information corresponding with the real IP address.
The invention also discloses C21, a kind of IP address corrective, including:
Memory, is loaded with a plurality of executable instruction;
Processor, performs a plurality of executable instruction;The a plurality of instruction includes performing following steps
Method:
In a client access server, the access request that correspondence is sent by the client is obtained
First IP address;First IP address is obtained by access request by normal routing path;
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take and get IP address ready;The IP address of getting ready is divided according to the access request from the client to content
The hair webserver sends gets request acquisition ready;
Matching primitives are carried out to the IP address and first IP address got ready, correcting the access please
The real IP address asked.
Claims (10)
1. a kind of IP address modification method, including:
In a client access server, the access request that correspondence is sent by the client is obtained
First IP address;First IP address is obtained by access request by normal routing path;
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take and get IP address ready;The IP address of getting ready is divided according to the access request from the client to content
The hair webserver sends gets request acquisition ready;
Matching primitives are carried out to the IP address and first IP address got ready, correcting the access please
The real IP address asked.
2. method according to claim 1, it is characterised in that described access in a client takes
Business device when, obtain correspondence sent by the client access request the first IP address the step of wrap
Include:
From the access request for receiving, obtain the first IP address and overall identification and recorded;Institute
State overall identification and write the access request when access request is sent by client.
3. method according to claim 2, it is characterised in that described to initiate described by distance
The nearest content delivery network service device of the client of access request, the step of IP address is got in acquisition ready,
Including:
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take getting IP address and overall identification ready and being recorded for the access request.
4. method according to claim 3, it is characterised in that described to get IP address ready to described
Matching primitives are carried out with first IP address, the step of the real IP address of the access request is corrected
Suddenly, including:
Search and respectively get IP address and each first IP address ready under same overall identification;
Matching primitives are carried out to the IP address and the first IP address got ready, the first IP address correspondence is judged
Access request whether there is transfer;
If there is transfer in the corresponding access request of first IP address, according to getting IP address ready,
Correct the real IP address of the access request.
5. method according to claim 4, it is characterised in that described to get IP address ready to described
Matching primitives are carried out with the first IP address, in judging whether the corresponding access request of the first IP address occurs
The step of turning, including:
Judge each first IP address under the overall identification and whether respectively get IP address ready identical;
If each first IP address under the overall identification with respectively get IP address ready and differ, it is determined that
There is transfer in the corresponding access request of the first IP address.
6. method according to claim 5, it is characterised in that the basis gets IP address ready,
The step of correcting the real IP address of the access request, including:
Judgement is respectively got ready in IP address, and whether the same number for getting IP address ready exceedes threshold value;
If in respectively getting IP address ready, the same number for getting IP address ready exceedes threshold value, then exceeding
Threshold value gets real IP address of the IP address as the access request ready.
7. method according to claim 4, it is characterised in that described to get IP address ready to described
Matching primitives are carried out with the first IP address, in judging whether the corresponding access request of the first IP address occurs
The step of turning, including:
Whether part is different from IP address is respectively got ready to judge each first IP address under the overall identification;
If each first IP address under the overall identification is different from IP address part is respectively got ready, really
There is transfer in the access request in fixed first IP address corresponding to the part different from IP address is respectively got ready.
8. method according to claim 7, it is characterised in that the basis gets IP address ready,
The step of correcting the real IP address of the access request, including:
For the access request corresponding to part different from IP address is respectively got ready in the first IP address, repair
The real IP address of just described access request be in the first IP address with respectively get IP address same section ready
IP address.
9. a kind of IP address correcting device, including:
First IP address acquisition module, is suitable to, in a client access server, obtain correspondence by institute
State the first IP address of the access request of client transmission;First IP address is passed through by access request
Normal routing path is obtained;
Get IP address acquisition module ready, be suitable to nearest by the client of the distance initiation access request
Content delivery network service device, acquisition get IP address ready;The IP address of getting ready is by the client
Sent to content distributing network server according to the access request and get request acquisition ready;
Real IP address correcting module, is suitable to carry out the IP address and first IP address got ready
Matching primitives, correct the real IP address of the access request.
10. a kind of IP address corrective, including:
Memory, is loaded with a plurality of executable instruction;
Processor, performs a plurality of executable instruction;The a plurality of instruction includes performing following steps
Method:
In a client access server, the access request that correspondence is sent by the client is obtained
First IP address;First IP address is obtained by access request by normal routing path;
By the nearest content delivery network service device of the client of the distance initiation access request, obtain
Take and get IP address ready;The IP address of getting ready is divided according to the access request from the client to content
The hair webserver sends gets request acquisition ready;
Matching primitives are carried out to the IP address and first IP address got ready, correcting the access please
The real IP address asked.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510958936.XA CN106899703B (en) | 2015-12-17 | 2015-12-17 | IP address correction method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510958936.XA CN106899703B (en) | 2015-12-17 | 2015-12-17 | IP address correction method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106899703A true CN106899703A (en) | 2017-06-27 |
CN106899703B CN106899703B (en) | 2021-08-20 |
Family
ID=59189777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510958936.XA Active CN106899703B (en) | 2015-12-17 | 2015-12-17 | IP address correction method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106899703B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545335A (en) * | 2018-05-29 | 2019-12-06 | 阿里巴巴集团控股有限公司 | Internet protocol address acquisition method, server and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101567852A (en) * | 2009-05-20 | 2009-10-28 | 中兴通讯股份有限公司 | Method and device for switching the network address of IP message |
CN102299969A (en) * | 2011-09-16 | 2011-12-28 | 北京新媒传信科技有限公司 | Web accessing method, layer seven switching equipment and service network |
CN102394944A (en) * | 2011-09-16 | 2012-03-28 | 北京新媒传信科技有限公司 | Method and equipment for correcting IP (Internet Protocol) address in Web access |
CN102638483A (en) * | 2011-02-15 | 2012-08-15 | 中国移动通信集团公司 | Method, device and system for determining content distribution nodes |
US20120265900A1 (en) * | 2008-11-17 | 2012-10-18 | Amazon Technologies, Inc. | Updating routing information based on client location |
CN103167052A (en) * | 2011-12-16 | 2013-06-19 | 北京思博途信息技术有限公司 | Method and system for automatically optimizing internet protocol (IP) district information base |
CN103716282A (en) * | 2012-09-28 | 2014-04-09 | 北京新媒传信科技有限公司 | Method and system for correcting IP library |
CN104168341A (en) * | 2014-08-15 | 2014-11-26 | 北京百度网讯科技有限公司 | IP address locating method and CDN dispatching method and device |
CN104468502A (en) * | 2013-09-24 | 2015-03-25 | 奈飞公司 | Server selection for content distribution |
CN104717304A (en) * | 2015-03-31 | 2015-06-17 | 北京科技大学 | CDN-P2P (Content Distribution Network-Peer-to-Peer) content optimizing selecting system |
-
2015
- 2015-12-17 CN CN201510958936.XA patent/CN106899703B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120265900A1 (en) * | 2008-11-17 | 2012-10-18 | Amazon Technologies, Inc. | Updating routing information based on client location |
CN101567852A (en) * | 2009-05-20 | 2009-10-28 | 中兴通讯股份有限公司 | Method and device for switching the network address of IP message |
CN102638483A (en) * | 2011-02-15 | 2012-08-15 | 中国移动通信集团公司 | Method, device and system for determining content distribution nodes |
CN102299969A (en) * | 2011-09-16 | 2011-12-28 | 北京新媒传信科技有限公司 | Web accessing method, layer seven switching equipment and service network |
CN102394944A (en) * | 2011-09-16 | 2012-03-28 | 北京新媒传信科技有限公司 | Method and equipment for correcting IP (Internet Protocol) address in Web access |
CN103167052A (en) * | 2011-12-16 | 2013-06-19 | 北京思博途信息技术有限公司 | Method and system for automatically optimizing internet protocol (IP) district information base |
CN103716282A (en) * | 2012-09-28 | 2014-04-09 | 北京新媒传信科技有限公司 | Method and system for correcting IP library |
CN104468502A (en) * | 2013-09-24 | 2015-03-25 | 奈飞公司 | Server selection for content distribution |
CN104168341A (en) * | 2014-08-15 | 2014-11-26 | 北京百度网讯科技有限公司 | IP address locating method and CDN dispatching method and device |
CN104717304A (en) * | 2015-03-31 | 2015-06-17 | 北京科技大学 | CDN-P2P (Content Distribution Network-Peer-to-Peer) content optimizing selecting system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545335A (en) * | 2018-05-29 | 2019-12-06 | 阿里巴巴集团控股有限公司 | Internet protocol address acquisition method, server and system |
Also Published As
Publication number | Publication date |
---|---|
CN106899703B (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109067541B (en) | Data verification method and device based on block chain and electronic equipment | |
JP7108057B2 (en) | Personal data processing method and system based on blockchain | |
CN106899548A (en) | A kind of IP address modification method and device | |
CN109819443B (en) | Registration authentication method, device and system based on block chain | |
CN109684375B (en) | Method, accounting node and medium for querying transaction information in blockchain network | |
CN104410546B (en) | The method of testing and device of real time processing system | |
CN105229485B (en) | Multifactor position verification method | |
US9898621B2 (en) | Automatic application dependent anonymization | |
CN104541513B (en) | The method and apparatus for determining the viewership information that online Media is presented | |
US20170249659A1 (en) | Systems and methods to utilize subscriber history for predictive analytics and targeting marketing | |
JP6697005B2 (en) | Payment method, device and system | |
US20170011113A1 (en) | System and Method for Identifying Users on a Network | |
CN111444209B (en) | Data processing method, device, equipment and medium based on block chain | |
CN109639723A (en) | A kind of micro services access method and server based on ERP system | |
JP7157798B6 (en) | Blockchain-based systems and methods for communicating, storing, and processing data over blockchain networks | |
CN109600366A (en) | The method and device of protection user data privacy based on block chain | |
CN112448946A (en) | Log auditing method and device based on block chain | |
CN106791961A (en) | Video preference information processing method, apparatus and system | |
US20160019542A1 (en) | Method For Providing Secure E-Commerce Transactions | |
CN102915360B (en) | Present the system of the relevant information of website | |
CN106899703A (en) | A kind of IP address modification method and device | |
CN104462392B (en) | Share the statistical method and device of capacity of returns | |
Trouw et al. | The xy oracle network: The proof-of-origin based cryptographic location network | |
KR20220165670A (en) | A method for managing member information and an apparatus for the same | |
KR102235555B1 (en) | Method for managementing fake property using block chain, device and computer readable medium for performing the method |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240103 Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |