QQ IP Database of pure edition
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Text;
Using System.IO;
Using System.Web;
Using System.Configuration;
Namespace BLL
{
public class Iplocationsearch
{
private static readonly Qqwry QQ = new Qqwry (configurationmanager.appsettings["IP"] + "Qqwry.dat");
p
Discuz 5.0 do not use their own IP data, but the use of pure IP data format, access to the pure IP database a little trouble, its storage format is more special and interesting, the specific format of the analysis of the following two links, other languages to implement the link at the end of the reference article.
"P
Summary
The IP database on the network is the most popular with the pure version, LUMAQQ also uses the pure version IP database as the basis of the IP query function. However, the document on its format is very small, and then finally found a document on the Internet to und
Discuz 5.0 is not using their own IP data, but the use of pure IP data format, access to the pure IP database a little bit of trouble, its storage format is very special and interesting, specific format analysis refer to the following two links, other languages to implement the link at the end of the reference article.
following example:The reduce program sums the values of the key value, and the output is key for the client ip,value the number of IP occurrences. The result sample is shown in the following example:The above MapReduce program is similar to the WordCount program, just a simple summation of the IP, the following need to write the output format of reduce, so that
In response to customer requirements, we need to impose some restrictions on the ip addresses of Oracle databases accessing the production environment, that is, only the ip addresses that pass the review can access the database, and all other ip addresses cannot access the database
This article describes how to use php to read detailed information from a pure ip database.
This article describes how to use php to read detailed information from a pure ip database.
The Code is as follows:
/*--------------------------------------------------Ip2address [qqwry. dat]---------------------------
record area, here the position refers to the offset byte calculated from the file header)
Although the database structure works well and the efficiency is fine, I think the design is a little complicated. In addition, if record A exists in the record area, it is redirected to record B. If I delete record B, there will be problems when querying record. Of course, it is a bit of trouble to delete record B. If you change the file structure to the follow
'================================================ =====
'Return IP information Disp_IPAddressData (IP, 0)
'================================================ =====
Function Look_Ip (IP)
Dim Wry, IPType, QQWryVersion, IpCounter
'Set the Class Object
Set Wry = New TQQWry
'Start searching and return the search result
'You can determine whether the
PhpIP retrieval City API (pure IP database)
/**
* Obtain the city name pure IP database based on the IP address
* Edit: bbs.it-home.org
*/
Function convertip ($ ip ){
//
By using the database server side of the Sqlnet.ora file can be implemented to prohibit the specified IP host access to the database, which is a great help to improve the security of the database, at the same time, this technology for us to manage and constrain the database
This is a public Component Interface for reading Pure IP database. I learned about the data format of pure IP database through luma's "Explanation of pure IP database format" and based on an IPLocation on the network. the dll sour
This is a public Component Interface for reading Pure IP database. I learned about the data format of pure IP database through luma's "Explanation of pure IP database format" and based on an IPLocation on the network. the dll sour
;
To solve the problem of dynamic listening registration after modifying scan IP by restarting the database[Root-www.111cn.net@xff2 ~]# Su-oracleXff2:/home/oraclegt; srvctl Stop database-d xffdbxff2:/home/oraclegt; srvctl start database-d xffdbXff2:/home/oraclegt; exitLogout[Root-www.111cn.net@xff2 ~]# Su-gridxff2:/ho
(1) what really works in 9i is the sqlnet. ora file. Modifying sqlnet. ora is actually the best and fastest way.
Add the following content to sqlnet. ora:-----------------------------#### Attributes from protocol. ora ####
TCP. validnode_checking = Yes
# IP addresses allowed for accessTCP. invited_nodes = (IP1, ip2 ......)
# IP addresses that are not allowed to accessTCP. excluded_nodes = (IP1, ip2 ......)
Who can give me a database with a corresponding IP address and geographical location? You want to convert the visitor's IP address to the address location, such as "Hefei Telecom. Who can provide such a database? Or tell me the conversion method? Who can give me a database w
Who can give me a database with a corresponding IP address and geographical location? You want to convert the visitor's IP address to the address location, such as "Hefei Telecom. Who can provide such a database? Or tell me the conversion method? Sharing: who can give me a database
/*--------------------------------------------------
ip2address [Qqwry.dat]
--------------------------------------------------*/
Class IP {
var $fh; IP database file handle
var $first; First Index
var $last; Last index
var $total; Total indexes
constructor function
function __construct () {
$this->fh = fopen (' Qq
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.